Skip to content

ModuleNotFoundError: No module named 'six' when starting Tensorboard #6595

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Nerogar opened this issue Sep 22, 2023 · 2 comments
Closed

ModuleNotFoundError: No module named 'six' when starting Tensorboard #6595

Nerogar opened this issue Sep 22, 2023 · 2 comments
Assignees

Comments

@Nerogar
Copy link

Nerogar commented Sep 22, 2023

Environment information (required)

Diagnostics

Diagnostics output
--- check: autoidentify
INFO: diagnose_tensorboard.py version df7af2c6fc0e4c4a5b47aeae078bc7ad95777ffa

--- check: general
INFO: sys.version_info: sys.version_info(major=3, minor=10, micro=8, releaselevel='final', serial=0)
INFO: os.name: nt
INFO: os.uname(): N/A
INFO: sys.getwindowsversion(): sys.getwindowsversion(major=10, minor=0, build=19045, platform=2, service_pack='')

--- check: package_management
INFO: has conda-meta: False
INFO: $VIRTUAL_ENV: 'H:\\stable-diffusion\\one-trainer\\venv2'

--- check: installed_packages
INFO: installed: tensorboard==2.14.0
WARNING: no installation among: ['tensorflow', 'tensorflow-gpu', 'tf-nightly', 'tf-nightly-2.0-preview', 'tf-nightly-gpu', 'tf-nightly-gpu-2.0-preview']
WARNING: no installation among: ['tensorflow-estimator', 'tensorflow-estimator-2.0-preview', 'tf-estimator-nightly']
INFO: installed: tensorboard-data-server==0.7.1

--- check: tensorboard_python_version
INFO: tensorboard.version.VERSION: '2.14.0'

--- check: tensorflow_python_version
Traceback (most recent call last):
  File "H:\stable-diffusion\one-trainer\diagnose_tensorboard.py", line 511, in main
    suggestions.extend(check())
  File "H:\stable-diffusion\one-trainer\diagnose_tensorboard.py", line 81, in wrapper
    result = fn()
  File "H:\stable-diffusion\one-trainer\diagnose_tensorboard.py", line 267, in tensorflow_python_version
    import tensorflow as tf
ModuleNotFoundError: No module named 'tensorflow'

--- check: tensorboard_data_server_version
INFO: data server binary: None

--- check: tensorboard_binary_path
INFO: which tensorboard: b'H:\\stable-diffusion\\one-trainer\\venv2\\Scripts\\tensorboard.exe\r\n'

--- check: addrinfos
socket.has_ipv6 = True
socket.AF_UNSPEC = <AddressFamily.AF_UNSPEC: 0>
socket.SOCK_STREAM = <SocketKind.SOCK_STREAM: 1>
socket.AI_ADDRCONFIG = <AddressInfo.AI_ADDRCONFIG: 1024>
socket.AI_PASSIVE = <AddressInfo.AI_PASSIVE: 1>
Loopback flags: <AddressInfo.AI_ADDRCONFIG: 1024>
Loopback infos: [(<AddressFamily.AF_INET6: 23>, <SocketKind.SOCK_STREAM: 1>, 0, '', ('::1', 0, 0, 0)), (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 0, '', ('127.0.0.1', 0))]
Wildcard flags: <AddressInfo.AI_PASSIVE: 1>
Wildcard infos: [(<AddressFamily.AF_INET6: 23>, <SocketKind.SOCK_STREAM: 1>, 0, '', ('::', 0, 0, 0)), (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 0, '', ('0.0.0.0', 0))]

--- check: readable_fqdn
INFO: socket.getfqdn(): '*'

--- check: stat_tensorboardinfo
INFO: directory: C:\Users\*\AppData\Local\Temp\.tensorboard-info
INFO: os.stat(...): os.stat_result(st_mode=16895, st_ino=125256364636272418, st_dev=2690837688, st_nlink=1, st_uid=0, st_gid=0, st_size=28672, st_atime=1695401732, st_mtime=1695401732, st_ctime=1682849872)
INFO: mode: 0o40777

--- check: source_trees_without_genfiles
INFO: tensorboard_roots (1): ['H:\\stable-diffusion\\one-trainer\\venv2\\lib\\site-packages']; bad_roots (0): []

--- check: full_pip_freeze
INFO: pip freeze --all:
absl-py==2.0.0
cachetools==5.3.1
certifi==2023.7.22
charset-normalizer==3.2.0
google-auth==2.23.0
google-auth-oauthlib==1.0.0
grpcio==1.58.0
idna==3.4
Markdown==3.4.4
MarkupSafe==2.1.3
numpy==1.26.0
oauthlib==3.2.2
pip==22.2.2
protobuf==4.24.3
pyasn1==0.5.0
pyasn1-modules==0.3.0
requests==2.31.0
requests-oauthlib==1.3.1
rsa==4.9
setuptools==63.2.0
tensorboard==2.14.0
tensorboard-data-server==0.7.1
urllib3==1.26.16
Werkzeug==2.3.7
wheel==0.41.2

Issue description

Starting Tensorboard throws the following error ModuleNotFoundError: No module named 'six'

To reproduce:

  1. Set up a new venv: python -m venv venv
  2. Activate the venv: venv\scripts\activate
  3. Install tensorboard: pip install tensorboard==2.14.0
  4. Run Tensorboard: tensorboard (with or without a --logdir, this doesn't make a difference)

The issue only appeared recently, I had tensorboard version 2.13.0 installed without any issue. After a reinstall today (version 2.13.0 or 2.14.0) this error appeared.

@bmd3k
Copy link
Contributor

bmd3k commented Sep 22, 2023

Thanks for calling this out. We noticed the problem earlier and fixed in #6581. Unfortunately we didn't consider making a patch release.

We'll work on making a patch release early next week but in the meantime you should be able to work around the problem with pip install six.

@groszewn
Copy link
Contributor

groszewn commented Oct 6, 2023

This should be resolved with the 2.14.1 release.

@groszewn groszewn closed this as completed Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants