ImportError during pip build with Setuptools 34 and pip 6.0
See original GitHub issueThis is part of the traceback:
File "/home/travis/virtualenv/python2.6.9/lib/python2.6/site-packages/setuptools/__init__.py", line 10, in <module>
from six.moves import filter, map
ImportError: No module named six.moves
This started when 34.0.2 was released, here are some examples of the nightlies it’s causing the fail:
https://travis-ci.org/python-excel/xlrd https://travis-ci.org/Mortar/mortar_import
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:17 (10 by maintainers)
Top Results From Across the Web
`pip install` Gives Error on Some Packages - Stack Overflow
The real error in your case is: ImportError: cannot import name 'msvccompiler' from 'distutils'. It occured because setuptools has broken ...
Read more >setuptools 8.2.1 - PyPI
Easily download, build, install, upgrade, and uninstall Python packages.
Read more >History - setuptools 65.6.3.post20221216 documentation
#3678: Improve clib builds reproducibility by sorting sources – by @danigm ... #2940: Avoid KeyError in distutils hack when pip is imported during...
Read more >pip Documentation
However, not all packages use setuptools in their build scripts. To support projects that use “pure distutils”, pip injects setuptools into sys.
Read more >pip3 cannot install tabulate: ImportError: No module named ...
Version-Release number of selected component (if applicable): python34-pip-8.1.2-6.el7.noarch How reproducible: 100% Steps to Reproduce: 1.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I took a stab in python-excel/xlrd#194 and it seems to be a suitable workaround. The issue lies with pip and I’ve detailed the problem and proposed solution in pypa/pip#4253.
@mgedmin - where would I put that in a .travis.yml? What’s the real fix here?