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.

ImportError during pip build with Setuptools 34 and pip 6.0

See original GitHub issue

This 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:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:17 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
jaracocommented, Jan 25, 2017

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.

1reaction
cjw296commented, Jan 25, 2017

@mgedmin - where would I put that in a .travis.yml? What’s the real fix here?

Read more comments on GitHub >

github_iconTop 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 >

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