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.

setuptools: ModuleNotFoundError: No module named 'six'

See original GitHub issue

Building setuptools in the standard way I’ve used forever fails:

# /usr/pkg/bin/python3.6  setup.py  build
Traceback (most recent call last):
  File "setup.py", line 11, in <module>
    import setuptools
  File ".../setuptools-34.1.1/setuptools/__init__.py", line 10, in <module>
    from six.moves import filter, map
ModuleNotFoundError: No module named 'six'

It looks like setuptools now added a six dependency, which breaks distributions that build from scratch, because six uses setuptools for installation (dependency cycle).

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
0-wiz-0commented, Feb 8, 2017

For anyone else stumbling over this issue, my solution was:

  • install the setuptools version that is coming with python, using python -m ensurepip --user
  • build and install appdirs, six, pyparsing, and packaging with this version
  • build setuptools
  • delete the --user installation of the old version
1reaction
maxguxiaocommented, May 19, 2017

I got the same problem after I upgrade python2.7.10 to python2.7.13.

None of the above works for me. Finally, I fixed this by download six package directly from pypi, then go to the download directory, and manually installed it by using python set-up.py install.

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 >
[Fixed] ModuleNotFoundError: No module named 'setuptools'
Quick Fix: Python raises the ImportError: No module named 'setuptools' when it cannot find the library setuptools . The most frequent source of...
Read more >
No module named 'ordered_set' | StoryBoard - OpenStack
openSUSE support broken with ModuleNotFoundError: No module named ... /python3.6/site-packages/setuptools/dist.py", line 30, in <module> ...
Read more >
firewall-cmd (ModuleNotFoundError: No module named 'six')
first of all this issue happen due to python setuptools issue , by mistake or intentionally you upgrade it , and then after...
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