tensorflow / tensorboard

TensorFlow's Visualization Toolkit
Apache License 2.0
6.67k stars 1.65k forks source link

Tensorboard Not Running Properly on port 6006 #3469

Open ozziejin opened 4 years ago

ozziejin commented 4 years ago

Environment information (required)

windows10 pro 64bit

Please run diagnose_tensorboard.py (link below) in the same environment from which you normally run TensorFlow/TensorBoard, and paste the output here:

'Self-diagnosis script for TensorBoard.\nInstructions: Save this script to your local machine, then execute it in\nthe same environment (virtualenv, Conda, etc.) from which you normally\nrun TensorBoard. Read the output and follow the directions.\n'

Diagnostics

Diagnostics output `````` --- check: autoidentify INFO: diagnose_tensorboard.py source unavailable INFO: diagnose_tensorboard.py source unavailable INFO: diagnose_tensorboard.py source unavailable --- check: general INFO: sys.version_info: sys.version_info(major=3, minor=7, micro=4, releaselevel='final', serial=0) INFO: sys.version_info: sys.version_info(major=3, minor=7, micro=4, releaselevel='final', serial=0) INFO: sys.version_info: sys.version_info(major=3, minor=7, micro=4, releaselevel='final', serial=0) INFO: os.name: nt INFO: os.name: nt INFO: os.name: nt INFO: os.uname(): N/A INFO: os.uname(): N/A INFO: os.uname(): N/A INFO: sys.getwindowsversion(): sys.getwindowsversion(major=10, minor=0, build=18363, platform=2, service_pack='') INFO: sys.getwindowsversion(): sys.getwindowsversion(major=10, minor=0, build=18363, platform=2, service_pack='') INFO: sys.getwindowsversion(): sys.getwindowsversion(major=10, minor=0, build=18363, platform=2, service_pack='') --- check: package_management INFO: has conda-meta: True INFO: has conda-meta: True INFO: has conda-meta: True INFO: $VIRTUAL_ENV: None INFO: $VIRTUAL_ENV: None INFO: $VIRTUAL_ENV: None --- check: installed_packages INFO: installed: tensorboard==2.1.0 INFO: installed: tensorboard==2.1.0 INFO: installed: tensorboard==2.1.0 INFO: installed: tensorflow==2.1.0 INFO: installed: tensorflow==2.1.0 INFO: installed: tensorflow==2.1.0 INFO: installed: tensorflow-estimator==2.1.0 INFO: installed: tensorflow-estimator==2.1.0 INFO: installed: tensorflow-estimator==2.1.0 --- check: tensorboard_python_version INFO: tensorboard.version.VERSION: '2.1.0' INFO: tensorboard.version.VERSION: '2.1.0' INFO: tensorboard.version.VERSION: '2.1.0' --- check: tensorflow_python_version INFO: tensorflow.__version__: '2.1.0' INFO: tensorflow.__version__: '2.1.0' INFO: tensorflow.__version__: '2.1.0' INFO: tensorflow.__git_version__: 'unknown' INFO: tensorflow.__git_version__: 'unknown' INFO: tensorflow.__git_version__: 'unknown' --- check: tensorboard_binary_path INFO: which tensorboard: b'C:\\ProgramData\\Anaconda3\\Scripts\\tensorboard.exe\r\n' INFO: which tensorboard: b'C:\\ProgramData\\Anaconda3\\Scripts\\tensorboard.exe\r\n' INFO: which tensorboard: b'C:\\ProgramData\\Anaconda3\\Scripts\\tensorboard.exe\r\n' --- check: addrinfos socket.has_ipv6 = True socket.AF_UNSPEC = socket.SOCK_STREAM = socket.AI_ADDRCONFIG = socket.AI_PASSIVE = Loopback flags: Loopback infos: [(, , 0, '', ('::1', 0, 0, 0)), (, , 0, '', ('127.0.0.1', 0))] Wildcard flags: Wildcard infos: [(, , 0, '', ('::', 0, 0, 0)), (, , 0, '', ('0.0.0.0', 0))] --- check: readable_fqdn INFO: socket.getfqdn(): 'LWPC0DAU99.cardinalhealth.net' INFO: socket.getfqdn(): 'LWPC0DAU99.cardinalhealth.net' INFO: socket.getfqdn(): 'LWPC0DAU99.cardinalhealth.net' --- check: stat_tensorboardinfo INFO: directory: C:\Users\LU8B9A~1.JIN\AppData\Local\Temp\.tensorboard-info INFO: directory: C:\Users\LU8B9A~1.JIN\AppData\Local\Temp\.tensorboard-info INFO: directory: C:\Users\LU8B9A~1.JIN\AppData\Local\Temp\.tensorboard-info INFO: os.stat(...): os.stat_result(st_mode=16895, st_ino=29273397577915171, st_dev=3525011634, st_nlink=1, st_uid=0, st_gid=0, st_size=0, st_atime=1585796722, st_mtime=1585796722, st_ctime=1585749832) INFO: os.stat(...): os.stat_result(st_mode=16895, st_ino=29273397577915171, st_dev=3525011634, st_nlink=1, st_uid=0, st_gid=0, st_size=0, st_atime=1585796722, st_mtime=1585796722, st_ctime=1585749832) INFO: os.stat(...): os.stat_result(st_mode=16895, st_ino=29273397577915171, st_dev=3525011634, st_nlink=1, st_uid=0, st_gid=0, st_size=0, st_atime=1585796722, st_mtime=1585796722, st_ctime=1585749832) INFO: mode: 0o40777 INFO: mode: 0o40777 INFO: mode: 0o40777 --- check: source_trees_without_genfiles INFO: tensorboard_roots (1): ['C:\\ProgramData\\Anaconda3\\lib\\site-packages']; bad_roots (0): [] INFO: tensorboard_roots (1): ['C:\\ProgramData\\Anaconda3\\lib\\site-packages']; bad_roots (0): [] INFO: tensorboard_roots (1): ['C:\\ProgramData\\Anaconda3\\lib\\site-packages']; bad_roots (0): [] --- check: full_pip_freeze INFO: pip freeze --all: absl-py==0.9.0 alabaster==0.7.12 anaconda-client==1.7.2 anaconda-navigator==1.9.12 anaconda-project==0.8.3 asn1crypto==1.3.0 astor==0.7.1 astroid==2.3.3 astropy==4.0 atomicwrites==1.3.0 attrs==19.3.0 Babel==2.8.0 backcall==0.1.0 backports.functools-lru-cache==1.6.1 backports.os==0.1.1 backports.shutil-get-terminal-size==1.0.0 backports.tempfile==1.0 backports.weakref==1.0.post1 beautifulsoup4==4.8.2 bitarray==1.2.1 bkcharts==0.2 bleach==3.1.0 blinker==1.4 bokeh==1.4.0 boto==2.49.0 Bottleneck==1.3.1 cachetools==3.1.1 certifi==2019.11.28 cffi==1.13.2 chardet==3.0.4 Click==7.0 cloudpickle==1.2.2 clyent==1.2.2 colorama==0.4.3 comtypes==1.1.7 conda==4.8.3 conda-build==3.18.9 conda-package-handling==1.6.0 conda-verify==3.4.2 confuse==1.0.0 contextlib2==0.6.0.post1 cryptography==2.8 cycler==0.10.0 Cython==0.29.14 cytoolz==0.10.1 dask==2.10.1 decorator==4.4.1 defusedxml==0.6.0 distributed==2.10.0 docutils==0.16 entrypoints==0.3 et-xmlfile==1.0.1 fastcache==1.1.0 filelock==3.0.12 Flask==1.1.1 fsspec==0.6.2 future==0.18.2 gast==0.2.2 gevent==1.4.0 glob2==0.7 google-auth==1.11.2 google-auth-oauthlib==0.4.1 google-pasta==0.2.0 greenlet==0.4.15 grpcio==1.27.2 h5py==2.10.0 HeapDict==1.0.1 html5lib==1.0.1 htmlmin==0.1.12 hypothesis==4.54.2 idna==2.8 imageio==2.6.1 imagesize==1.2.0 importlib-metadata==1.4.0 ipykernel==5.1.4 ipython==7.11.1 ipython-genutils==0.2.0 ipywidgets==7.5.1 isort==4.3.21 itsdangerous==1.1.0 jdcal==1.4.1 jedi==0.16.0 Jinja2==2.10.3 joblib==0.13.2 json5==0.8.5 jsonschema==3.2.0 jupyter==1.0.0 jupyter-client==5.3.4 jupyter-console==6.1.0 jupyter-core==4.6.1 jupyterlab==1.2.5 jupyterlab-server==1.0.6 Keras-Applications==1.0.8 Keras-Preprocessing==1.1.0 keyring==21.1.0 kiwisolver==1.1.0 lazy-object-proxy==1.4.3 libarchive-c==2.8 llvmlite==0.31.0 locket==0.2.0 lxml==4.4.2 Markdown==3.2.1 MarkupSafe==1.1.1 matplotlib==3.1.2 mccabe==0.6.1 menuinst==1.4.16 missingno==0.4.2 mistune==0.8.4 mkl-fft==1.0.15 mkl-random==1.1.0 mkl-service==2.3.0 mock==3.0.5 more-itertools==8.0.2 mpmath==1.1.0 msgpack==0.6.1 multipledispatch==0.6.0 navigator-updater==0.2.1 nbconvert==5.6.1 nbformat==5.0.4 networkx==2.4 nltk==3.4.5 nose==1.3.7 notebook==6.0.3 numba==0.48.0 numexpr==2.7.0 numpy==1.18.1 numpydoc==0.9.2 oauthlib==3.0.1 olefile==0.46 openpyxl==3.0.3 opt-einsum==0+untagged.53.g6ab433b.dirty packaging==20.1 pandas==1.0.0 pandas-profiling==2.4.0 pandocfilters==1.4.2 parso==0.6.0 partd==1.1.0 path==13.1.0 pathlib2==2.3.5 patsy==0.5.1 pep8==1.7.1 phik==0.9.8 pickleshare==0.7.5 Pillow==7.0.0 pip==20.0.2 pkginfo==1.5.0.1 pluggy==0.13.1 ply==3.11 prometheus-client==0.7.1 prompt-toolkit==3.0.3 protobuf==3.11.4 psutil==5.6.7 py==1.8.1 pyasn1==0.4.8 pyasn1-modules==0.2.7 pycodestyle==2.5.0 pycosat==0.6.3 pycparser==2.19 pycrypto==2.6.1 pycurl==7.43.0.4 pyflakes==2.1.1 Pygments==2.5.2 PyJWT==1.7.1 pylint==2.4.4 pyodbc==4.0.28 pyOpenSSL==19.1.0 pyparsing==2.4.6 pyreadline==2.1 pyrsistent==0.15.7 PySocks==1.7.1 pytest==5.3.4 pytest-arraydiff==0.3 pytest-astropy==0.7.0 pytest-astropy-header==0.1.1 pytest-doctestplus==0.5.0 pytest-openfiles==0.4.0 pytest-pylint==0.14.1 pytest-remotedata==0.3.2 pytest-runner==5.2 python-dateutil==2.8.1 pytz==2019.3 PyWavelets==1.1.1 pywin32==227 pywin32-ctypes==0.2.0 pywinpty==0.5.7 PyYAML==5.2 pyzmq==18.1.0 QtAwesome==0.6.1 qtconsole==4.6.0 QtPy==1.9.0 requests==2.22.0 requests-oauthlib==1.2.0 rope==0.16.0 rsa==4.0 ruamel-yaml==0.15.87 saspy==3.2.0 scikit-image==0.16.2 scikit-learn==0.21.2 scipy==1.3.2 seaborn==0.10.0 Send2Trash==1.5.0 setuptools==45.1.0.post20200127 simplegeneric==0.8.1 singledispatch==3.4.0.3 six==1.14.0 snowballstemmer==2.0.0 sortedcollections==1.1.2 sortedcontainers==2.1.0 soupsieve==1.9.5 Sphinx==2.3.1 sphinxcontrib-applehelp==1.0.1 sphinxcontrib-devhelp==1.0.1 sphinxcontrib-htmlhelp==1.0.2 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.2 sphinxcontrib-serializinghtml==1.1.3 sphinxcontrib-websupport==1.1.2 spyder==3.3.6 spyder-kernels==0.5.2 SQLAlchemy==1.3.13 statsmodels==0.11.0 sympy==1.5.1 tables==3.6.1 tabulate==0.8.3 tblib==1.6.0 tensorboard==2.1.0 tensorflow==2.1.0 tensorflow-estimator==2.1.0 termcolor==1.1.0 terminado==0.8.3 testpath==0.4.4 toolz==0.10.0 tornado==6.0.3 tqdm==4.42.0 traitlets==4.3.3 unicodecsv==0.14.1 urllib3==1.25.8 wcwidth==0.1.7 webencodings==0.5.1 Werkzeug==0.16.1 wheel==0.34.1 widgetsnbextension==3.5.1 win-inet-pton==1.1.0 win-unicode-console==0.5 wincertstore==0.2 wrapt==1.11.2 xlrd==1.2.0 XlsxWriter==1.2.7 xlwings==0.17.0 xlwt==1.3.0 xmltodict==0.12.0 zict==1.0.0 zipp==0.6.0 INFO: pip freeze --all: absl-py==0.9.0 alabaster==0.7.12 anaconda-client==1.7.2 anaconda-navigator==1.9.12 anaconda-project==0.8.3 asn1crypto==1.3.0 astor==0.7.1 astroid==2.3.3 astropy==4.0 atomicwrites==1.3.0 attrs==19.3.0 Babel==2.8.0 backcall==0.1.0 backports.functools-lru-cache==1.6.1 backports.os==0.1.1 backports.shutil-get-terminal-size==1.0.0 backports.tempfile==1.0 backports.weakref==1.0.post1 beautifulsoup4==4.8.2 bitarray==1.2.1 bkcharts==0.2 bleach==3.1.0 blinker==1.4 bokeh==1.4.0 boto==2.49.0 Bottleneck==1.3.1 cachetools==3.1.1 certifi==2019.11.28 cffi==1.13.2 chardet==3.0.4 Click==7.0 cloudpickle==1.2.2 clyent==1.2.2 colorama==0.4.3 comtypes==1.1.7 conda==4.8.3 conda-build==3.18.9 conda-package-handling==1.6.0 conda-verify==3.4.2 confuse==1.0.0 contextlib2==0.6.0.post1 cryptography==2.8 cycler==0.10.0 Cython==0.29.14 cytoolz==0.10.1 dask==2.10.1 decorator==4.4.1 defusedxml==0.6.0 distributed==2.10.0 docutils==0.16 entrypoints==0.3 et-xmlfile==1.0.1 fastcache==1.1.0 filelock==3.0.12 Flask==1.1.1 fsspec==0.6.2 future==0.18.2 gast==0.2.2 gevent==1.4.0 glob2==0.7 google-auth==1.11.2 google-auth-oauthlib==0.4.1 google-pasta==0.2.0 greenlet==0.4.15 grpcio==1.27.2 h5py==2.10.0 HeapDict==1.0.1 html5lib==1.0.1 htmlmin==0.1.12 hypothesis==4.54.2 idna==2.8 imageio==2.6.1 imagesize==1.2.0 importlib-metadata==1.4.0 ipykernel==5.1.4 ipython==7.11.1 ipython-genutils==0.2.0 ipywidgets==7.5.1 isort==4.3.21 itsdangerous==1.1.0 jdcal==1.4.1 jedi==0.16.0 Jinja2==2.10.3 joblib==0.13.2 json5==0.8.5 jsonschema==3.2.0 jupyter==1.0.0 jupyter-client==5.3.4 jupyter-console==6.1.0 jupyter-core==4.6.1 jupyterlab==1.2.5 jupyterlab-server==1.0.6 Keras-Applications==1.0.8 Keras-Preprocessing==1.1.0 keyring==21.1.0 kiwisolver==1.1.0 lazy-object-proxy==1.4.3 libarchive-c==2.8 llvmlite==0.31.0 locket==0.2.0 lxml==4.4.2 Markdown==3.2.1 MarkupSafe==1.1.1 matplotlib==3.1.2 mccabe==0.6.1 menuinst==1.4.16 missingno==0.4.2 mistune==0.8.4 mkl-fft==1.0.15 mkl-random==1.1.0 mkl-service==2.3.0 mock==3.0.5 more-itertools==8.0.2 mpmath==1.1.0 msgpack==0.6.1 multipledispatch==0.6.0 navigator-updater==0.2.1 nbconvert==5.6.1 nbformat==5.0.4 networkx==2.4 nltk==3.4.5 nose==1.3.7 notebook==6.0.3 numba==0.48.0 numexpr==2.7.0 numpy==1.18.1 numpydoc==0.9.2 oauthlib==3.0.1 olefile==0.46 openpyxl==3.0.3 opt-einsum==0+untagged.53.g6ab433b.dirty packaging==20.1 pandas==1.0.0 pandas-profiling==2.4.0 pandocfilters==1.4.2 parso==0.6.0 partd==1.1.0 path==13.1.0 pathlib2==2.3.5 patsy==0.5.1 pep8==1.7.1 phik==0.9.8 pickleshare==0.7.5 Pillow==7.0.0 pip==20.0.2 pkginfo==1.5.0.1 pluggy==0.13.1 ply==3.11 prometheus-client==0.7.1 prompt-toolkit==3.0.3 protobuf==3.11.4 psutil==5.6.7 py==1.8.1 pyasn1==0.4.8 pyasn1-modules==0.2.7 pycodestyle==2.5.0 pycosat==0.6.3 pycparser==2.19 pycrypto==2.6.1 pycurl==7.43.0.4 pyflakes==2.1.1 Pygments==2.5.2 PyJWT==1.7.1 pylint==2.4.4 pyodbc==4.0.28 pyOpenSSL==19.1.0 pyparsing==2.4.6 pyreadline==2.1 pyrsistent==0.15.7 PySocks==1.7.1 pytest==5.3.4 pytest-arraydiff==0.3 pytest-astropy==0.7.0 pytest-astropy-header==0.1.1 pytest-doctestplus==0.5.0 pytest-openfiles==0.4.0 pytest-pylint==0.14.1 pytest-remotedata==0.3.2 pytest-runner==5.2 python-dateutil==2.8.1 pytz==2019.3 PyWavelets==1.1.1 pywin32==227 pywin32-ctypes==0.2.0 pywinpty==0.5.7 PyYAML==5.2 pyzmq==18.1.0 QtAwesome==0.6.1 qtconsole==4.6.0 QtPy==1.9.0 requests==2.22.0 requests-oauthlib==1.2.0 rope==0.16.0 rsa==4.0 ruamel-yaml==0.15.87 saspy==3.2.0 scikit-image==0.16.2 scikit-learn==0.21.2 scipy==1.3.2 seaborn==0.10.0 Send2Trash==1.5.0 setuptools==45.1.0.post20200127 simplegeneric==0.8.1 singledispatch==3.4.0.3 six==1.14.0 snowballstemmer==2.0.0 sortedcollections==1.1.2 sortedcontainers==2.1.0 soupsieve==1.9.5 Sphinx==2.3.1 sphinxcontrib-applehelp==1.0.1 sphinxcontrib-devhelp==1.0.1 sphinxcontrib-htmlhelp==1.0.2 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.2 sphinxcontrib-serializinghtml==1.1.3 sphinxcontrib-websupport==1.1.2 spyder==3.3.6 spyder-kernels==0.5.2 SQLAlchemy==1.3.13 statsmodels==0.11.0 sympy==1.5.1 tables==3.6.1 tabulate==0.8.3 tblib==1.6.0 tensorboard==2.1.0 tensorflow==2.1.0 tensorflow-estimator==2.1.0 termcolor==1.1.0 terminado==0.8.3 testpath==0.4.4 toolz==0.10.0 tornado==6.0.3 tqdm==4.42.0 traitlets==4.3.3 unicodecsv==0.14.1 urllib3==1.25.8 wcwidth==0.1.7 webencodings==0.5.1 Werkzeug==0.16.1 wheel==0.34.1 widgetsnbextension==3.5.1 win-inet-pton==1.1.0 win-unicode-console==0.5 wincertstore==0.2 wrapt==1.11.2 xlrd==1.2.0 XlsxWriter==1.2.7 xlwings==0.17.0 xlwt==1.3.0 xmltodict==0.12.0 zict==1.0.0 zipp==0.6.0 INFO: pip freeze --all: absl-py==0.9.0 alabaster==0.7.12 anaconda-client==1.7.2 anaconda-navigator==1.9.12 anaconda-project==0.8.3 asn1crypto==1.3.0 astor==0.7.1 astroid==2.3.3 astropy==4.0 atomicwrites==1.3.0 attrs==19.3.0 Babel==2.8.0 backcall==0.1.0 backports.functools-lru-cache==1.6.1 backports.os==0.1.1 backports.shutil-get-terminal-size==1.0.0 backports.tempfile==1.0 backports.weakref==1.0.post1 beautifulsoup4==4.8.2 bitarray==1.2.1 bkcharts==0.2 bleach==3.1.0 blinker==1.4 bokeh==1.4.0 boto==2.49.0 Bottleneck==1.3.1 cachetools==3.1.1 certifi==2019.11.28 cffi==1.13.2 chardet==3.0.4 Click==7.0 cloudpickle==1.2.2 clyent==1.2.2 colorama==0.4.3 comtypes==1.1.7 conda==4.8.3 conda-build==3.18.9 conda-package-handling==1.6.0 conda-verify==3.4.2 confuse==1.0.0 contextlib2==0.6.0.post1 cryptography==2.8 cycler==0.10.0 Cython==0.29.14 cytoolz==0.10.1 dask==2.10.1 decorator==4.4.1 defusedxml==0.6.0 distributed==2.10.0 docutils==0.16 entrypoints==0.3 et-xmlfile==1.0.1 fastcache==1.1.0 filelock==3.0.12 Flask==1.1.1 fsspec==0.6.2 future==0.18.2 gast==0.2.2 gevent==1.4.0 glob2==0.7 google-auth==1.11.2 google-auth-oauthlib==0.4.1 google-pasta==0.2.0 greenlet==0.4.15 grpcio==1.27.2 h5py==2.10.0 HeapDict==1.0.1 html5lib==1.0.1 htmlmin==0.1.12 hypothesis==4.54.2 idna==2.8 imageio==2.6.1 imagesize==1.2.0 importlib-metadata==1.4.0 ipykernel==5.1.4 ipython==7.11.1 ipython-genutils==0.2.0 ipywidgets==7.5.1 isort==4.3.21 itsdangerous==1.1.0 jdcal==1.4.1 jedi==0.16.0 Jinja2==2.10.3 joblib==0.13.2 json5==0.8.5 jsonschema==3.2.0 jupyter==1.0.0 jupyter-client==5.3.4 jupyter-console==6.1.0 jupyter-core==4.6.1 jupyterlab==1.2.5 jupyterlab-server==1.0.6 Keras-Applications==1.0.8 Keras-Preprocessing==1.1.0 keyring==21.1.0 kiwisolver==1.1.0 lazy-object-proxy==1.4.3 libarchive-c==2.8 llvmlite==0.31.0 locket==0.2.0 lxml==4.4.2 Markdown==3.2.1 MarkupSafe==1.1.1 matplotlib==3.1.2 mccabe==0.6.1 menuinst==1.4.16 missingno==0.4.2 mistune==0.8.4 mkl-fft==1.0.15 mkl-random==1.1.0 mkl-service==2.3.0 mock==3.0.5 more-itertools==8.0.2 mpmath==1.1.0 msgpack==0.6.1 multipledispatch==0.6.0 navigator-updater==0.2.1 nbconvert==5.6.1 nbformat==5.0.4 networkx==2.4 nltk==3.4.5 nose==1.3.7 notebook==6.0.3 numba==0.48.0 numexpr==2.7.0 numpy==1.18.1 numpydoc==0.9.2 oauthlib==3.0.1 olefile==0.46 openpyxl==3.0.3 opt-einsum==0+untagged.53.g6ab433b.dirty packaging==20.1 pandas==1.0.0 pandas-profiling==2.4.0 pandocfilters==1.4.2 parso==0.6.0 partd==1.1.0 path==13.1.0 pathlib2==2.3.5 patsy==0.5.1 pep8==1.7.1 phik==0.9.8 pickleshare==0.7.5 Pillow==7.0.0 pip==20.0.2 pkginfo==1.5.0.1 pluggy==0.13.1 ply==3.11 prometheus-client==0.7.1 prompt-toolkit==3.0.3 protobuf==3.11.4 psutil==5.6.7 py==1.8.1 pyasn1==0.4.8 pyasn1-modules==0.2.7 pycodestyle==2.5.0 pycosat==0.6.3 pycparser==2.19 pycrypto==2.6.1 pycurl==7.43.0.4 pyflakes==2.1.1 Pygments==2.5.2 PyJWT==1.7.1 pylint==2.4.4 pyodbc==4.0.28 pyOpenSSL==19.1.0 pyparsing==2.4.6 pyreadline==2.1 pyrsistent==0.15.7 PySocks==1.7.1 pytest==5.3.4 pytest-arraydiff==0.3 pytest-astropy==0.7.0 pytest-astropy-header==0.1.1 pytest-doctestplus==0.5.0 pytest-openfiles==0.4.0 pytest-pylint==0.14.1 pytest-remotedata==0.3.2 pytest-runner==5.2 python-dateutil==2.8.1 pytz==2019.3 PyWavelets==1.1.1 pywin32==227 pywin32-ctypes==0.2.0 pywinpty==0.5.7 PyYAML==5.2 pyzmq==18.1.0 QtAwesome==0.6.1 qtconsole==4.6.0 QtPy==1.9.0 requests==2.22.0 requests-oauthlib==1.2.0 rope==0.16.0 rsa==4.0 ruamel-yaml==0.15.87 saspy==3.2.0 scikit-image==0.16.2 scikit-learn==0.21.2 scipy==1.3.2 seaborn==0.10.0 Send2Trash==1.5.0 setuptools==45.1.0.post20200127 simplegeneric==0.8.1 singledispatch==3.4.0.3 six==1.14.0 snowballstemmer==2.0.0 sortedcollections==1.1.2 sortedcontainers==2.1.0 soupsieve==1.9.5 Sphinx==2.3.1 sphinxcontrib-applehelp==1.0.1 sphinxcontrib-devhelp==1.0.1 sphinxcontrib-htmlhelp==1.0.2 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.2 sphinxcontrib-serializinghtml==1.1.3 sphinxcontrib-websupport==1.1.2 spyder==3.3.6 spyder-kernels==0.5.2 SQLAlchemy==1.3.13 statsmodels==0.11.0 sympy==1.5.1 tables==3.6.1 tabulate==0.8.3 tblib==1.6.0 tensorboard==2.1.0 tensorflow==2.1.0 tensorflow-estimator==2.1.0 termcolor==1.1.0 terminado==0.8.3 testpath==0.4.4 toolz==0.10.0 tornado==6.0.3 tqdm==4.42.0 traitlets==4.3.3 unicodecsv==0.14.1 urllib3==1.25.8 wcwidth==0.1.7 webencodings==0.5.1 Werkzeug==0.16.1 wheel==0.34.1 widgetsnbextension==3.5.1 win-inet-pton==1.1.0 win-unicode-console==0.5 wincertstore==0.2 wrapt==1.11.2 xlrd==1.2.0 XlsxWriter==1.2.7 xlwings==0.17.0 xlwt==1.3.0 xmltodict==0.12.0 zict==1.0.0 zipp==0.6.0 ``````

Next steps

No action items identified. Please copy ALL of the above output, including the lines containing only backticks, into your GitHub issue or comment. Be sure to redact any sensitive information.

Issue description

Please describe the bug as clearly as possible. How can we reproduce the problem without additional resources (including external data files and proprietary Python modules)?

I've been having problems with tensorboard probably due to a unclean exit in windows10. I use the below code to launch it in Jupyter:

%load_ext tensorboard

%tensorboard --logdir={dir}

this is what I got: 'ERROR: Timed out waiting for TensorBoard to start. It may still be running as pid 24472.'

and below code in cmd window to launch TB in Chrome:

$ tensorboard --logdir {dir}'

this is what I got: image

I've done some research and tried the following things: -"taskkill /im tensorboard.exe /f" to kill all live pids in command -deleted all the pid-xxxx.info files in the "%TMP%.tensorboard-info" directory. -deleted the whole "%TMP%.tensorboard-info" directly

Then I tried to change the port to 6005 by adding "--port 6005" in command window and TB could launch in Chrome under "localhost:6005. but it won't work in Jupyter.

psybuzz commented 4 years ago

Thanks for the report. I'm not 100% sure, but it sounds like there are 2 issues?

(1) Not being able to launch TensorBoard from a Jupyter notebook, using %tensorboard --logdir={dir}

One of the TensorBoard guides has a note for Jupyter users:

If you’re using a more complicated setup, like a global Jupyter installation and kernels for different Conda/virtualenv environments, then you must ensure that the tensorboard binary is on your PATH inside the Jupyter notebook context. One way to do this is to modify the kernel_spec to prepend the environment’s bin directory to PATH, as described here.

Could you please let us know if that works?

(2) When launching TensorBoard using tensorboard --logdir {dir}', it properly opens in a web browser, but no data is found. If the logdir provided is supposed to have data, could you please try the items in this FAQ:

https://github.com/tensorflow/tensorboard/blob/master/README.md#frequently-asked-questions ?

jeugregg commented 4 years ago

On my situation, Windows 10 64bits, tensorflow V2.1.1 (install with pip ), tensorboard (v2.1.1 installed maybe with anaconda... why ? I don't remember maybe it is the problem ?), I have noticed that the tensorboard process is not launch by %tensorboard command into jupyter notebook (chrome or firefox)

And we have to wait around 30 seconds for the process to be ready.

My temporary solution on Windows 10 to display tensorboard into notebook :

import time
import subprocess
logs_base_dir = #path to your run logs#
ls_output = subprocess.Popen(["tensorboard", "--logdir", logs_base_dir, 
                              "--port", "6006"])
# patch to wait process
time.sleep(30)
# Load the TensorBoard notebook extension
%load_ext tensorboard
%tensorboard --logdir {logs_base_dir} --port 6006
jeugregg commented 4 years ago

My longer solution but it is a little dirty (about platform because done without an external library) I checked this code only on Windows... One part is adapted from https://stackoverflow.com/questions/7787120/python-check-if-a-process-is-running-or-not Other part is for Linux/Mac OS" : "I don t remember where I found it".

import tensorflow as tf
import subprocess
import platform
import os

def process_exists(process_name):
    '''
    Check if process currently exists in OS System Takslist
    '''
    MY_PLATFORM = platform.system()
    if MY_PLATFORM == "Windows":
        call = 'TASKLIST /FI "IMAGENAME eq ' + process_name + '"'
        run_obj = subprocess.run(call, capture_output=True)
        if re.search(process_name, 
                     run_obj.stdout.decode('utf-8', 'backslashreplace')):
            return True
        else:
            return False
    else:
        p = subprocess.Popen(['ps', '-A'], stdout=subprocess.PIPE)
        out, err = p.communicate()
        out = out.decode('utf-8', 'backslashreplace')
        for line in out.splitlines():
            if process_name in line:
                return True
        return False

logs_base_dir = #YOUR PATH TO RUNS LOGS#

if process_exists('tensorboard.exe'):
    pass
elif process_exists('tensorboard'):
    pass
else:
    print("launch tensorboard process...")
    popen_obj = subprocess.Popen(["tensorboard", "--logdir", logs_base_dir, 
                              "--port", "6006"])
    # patch to wait process
    time.sleep(30)

# Load the TensorBoard notebook extension
%load_ext tensorboard
%tensorboard --logdir {logs_base_dir} --port 6006
wchargin commented 4 years ago

The %tensorboard magic already waits 60 seconds for the process to be ready, so waiting 30 seconds manually shouldn’t make a difference if the %tensorboard command launches promptly.

If it really takes a total of 90 seconds for your TensorBoard to initialize, let us know. Note that this initialization doesn’t entail parsing all log files, just getting everything imported and the server accepting requests. That seems kind of unlikely to me, but it’s not impossible, so if you’re really hitting that perhaps we could add an optional timeout argument to tensorboard.notebook.start.

jeugregg commented 4 years ago

Actually, on my install, %tensorboard tries to display instantly web page from server... but process didn't start. it is weird because process can be start just by executing !tensorboard.exe into a jupyter cell output :

`2020-05-12 02:28:05.314440: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll
Error: A logdir or db must be specified. For example `tensorboard --logdir mylogdir` or `tensorboard --db sqlite:~/.tensorboard.db`. Run `tensorboard --helpfull` for details and examples.`