python 3.x - TensorFlow. When running fully_connected_feed.py, app.py occus a 'systemexit' error -
i learning 'tensorflow mechanics 101'. error occurred when run fully_connected_feed.py trainning mnist data:
step 1800: loss = 0.30 (0.002 sec) step 1900: loss = 0.44 (0.003 sec) training data eval: num examples: 55000 num correct: 49180 precision @ 1: 0.8942 validation data eval: num examples: 5000 num correct: 4509 precision @ 1: 0.9018 test data eval: num examples: 10000 num correct: 9023 precision @ 1: 0.9023 exception has occurred, use %tb see full traceback. systemexit d:\software\anaconda\envs\tensorflow\lib\site-packages\ipython\core\interactiveshell.py:2870: userwarning: exit: use 'exit', 'quit', or ctrl-d. warn("to exit: use 'exit', 'quit', or ctrl-d.", stacklevel=1)
after typed '%tb', shows:
%tb traceback (most recent call last): file "<ipython-input-1-984b11309266>", line 1, in <module> runfile('d:/wangjc/pythontest/tensorflow/testtensorflow.py', wdir='d:/wangjc/pythontest/tensorflow') file "d:\software\anaconda\envs\tensorflow\lib\site-packages\spyder\utils\site\sitecustomize.py", line 707, in runfile execfile(filename, namespace) file "d:\software\anaconda\envs\tensorflow\lib\site-packages\spyder\utils\site\sitecustomize.py", line 101, in execfile exec(compile(f.read(), filename, 'exec'), namespace) file "d:/wangjc/pythontest/tensorflow/testtensorflow.py", line 277, in <module> tf.app.run(main=main, argv=[sys.argv[0]] + unparsed) file "d:\software\anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\platform\app.py", line 48, in run _sys.exit(main(_sys.argv[:1] + flags_passthrough)) systemexit
i have found a question me, not same problem me. error message shows different me:
typeerror: run() got unexpected keyword argument 'argv'
also, installed tensorflow 1.1.0 by'pip install'.
and, tried use several kinds of 'fully_connected_feed.py' code in different tensorflow version, other err ( if using lower version ) or same err occurs.
some people says 'systemexit' error occurs because there cmd thread problem. don't know whether root , is.
please me solve problem. thanks!
my ide environment is:
- windows 10
- anaconda python 3.5
- tensorflow 1.1.0
- tensorflow installed code: (tensorflow) wangjc@wangjc-inspiron-3668:~$ pip install --ignore-installed --upgrade https://xxxxxxxx.whl
the version shows below:
import tensorflow tf tf.version out[4]: '1.1.0'
from traceback:
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
the call main wrapped inside _sys.exit()
call kills quits program once has finished. message comes running file inside ipython iteractive shell. sys.exit()
raises systemexit
exception used quit python. ipython's shell, however, captures exception , shows warning. this, however, not affect program. ignore message or remove _sys.exit()
wrapping call main()
in script.
Comments
Post a Comment