question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ModuleNotFoundError: No module named 'six'

See original GitHub issue

Hi! Is this a bug or am I missing something?

levsh@book:/tmp/test $ python -m venv tenv
levsh@book:/tmp/test $ source tenv/bin/activate
(tenv) levsh@book:/tmp/test $ pip install -U pip
Collecting pip
  Using cached pip-21.1.3-py3-none-any.whl (1.5 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.2.1
    Uninstalling pip-20.2.1:
      Successfully uninstalled pip-20.2.1
Successfully installed pip-21.1.3
(tenv) levsh@book:/tmp/test $ pip install docker
Collecting docker
  Using cached docker-5.0.0-py2.py3-none-any.whl (146 kB)
Collecting websocket-client>=0.32.0
  Using cached websocket_client-1.1.0-py2.py3-none-any.whl (68 kB)
Collecting requests!=2.18.0,>=2.14.2
  Using cached requests-2.26.0-py2.py3-none-any.whl (62 kB)
Collecting urllib3<1.27,>=1.21.1
  Using cached urllib3-1.26.6-py2.py3-none-any.whl (138 kB)
Collecting certifi>=2017.4.17
  Using cached certifi-2021.5.30-py2.py3-none-any.whl (145 kB)
Collecting idna<4,>=2.5
  Using cached idna-3.2-py3-none-any.whl (59 kB)
Collecting charset-normalizer~=2.0.0
  Using cached charset_normalizer-2.0.3-py3-none-any.whl (35 kB)
Installing collected packages: urllib3, idna, charset-normalizer, certifi, websocket-client, requests, docker
Successfully installed certifi-2021.5.30 charset-normalizer-2.0.3 docker-5.0.0 idna-3.2 requests-2.26.0 urllib3-1.26.6 websocket-client-1.1.0
(tenv) levsh@book:/tmp/test $ python
Python 3.8.6 (default, Oct  6 2020, 15:18:31) 
[Clang 11.0.0 (clang-1100.0.33.16)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import docker
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/private/tmp/test/tenv/lib/python3.8/site-packages/docker/__init__.py", line 2, in <module>
    from .api import APIClient
  File "/private/tmp/test/tenv/lib/python3.8/site-packages/docker/api/__init__.py", line 2, in <module>
    from .client import APIClient
  File "/private/tmp/test/tenv/lib/python3.8/site-packages/docker/api/client.py", line 10, in <module>
    from .. import auth
  File "/private/tmp/test/tenv/lib/python3.8/site-packages/docker/auth.py", line 5, in <module>
    import six
ModuleNotFoundError: No module named 'six'
>>> 
(tenv) levsh@book:/tmp/test $ pip list
Package            Version
------------------ ---------
certifi            2021.5.30
charset-normalizer 2.0.3
docker             5.0.0
idna               3.2
pip                21.1.3
requests           2.26.0
setuptools         49.2.1
urllib3            1.26.6
websocket-client   1.1.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
dolfinuscommented, Aug 3, 2021

Could anyone just release a version with the fix merged? It’d happened almost a month ago, but latest release is still 5.0.0 since April 6.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ImportError: No module named six - python - Stack Overflow
With apt-get install python3-six I get "newest version" but with ipython I get ModuleNotFoundError: No module named 'six' . In /usr/lib/python3/dist-packages/ , ...
Read more >
ModuleNotFoundError: No module named 'six' in Python
The Python "ModuleNotFoundError: No module named 'six'" occurs when we forget to install the six module before importing it or install it in ......
Read more >
How to Solve modulenotfounderror no module named six
modulenotfounderror no module named is one of the most famous errors in Python. This type of error appears when the program can't import...
Read more >
No module named 'six' · Issue #5633 · jupyter/notebook - GitHub
When I use ipython or jupyter notebook, it still gets wrong. I have installed module 'six'. So how to fix it?
Read more >
Python - ModuleNotFoundError: No module named 'six' [Solved]
The ModuleNotFoundError: No module named 'six' error occurs one of the following reasons: Using the six module without installing it.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found