Mysterious pip install failure with updated packages
See original GitHub issueI get a very strange error when trying to install. The error is:
ModuleNotFoundError: No module named 'cffi.setuptools_ext'
This is what I do:
# pip3 install --no-cache-dir cairocffi
Collecting cairocffi
Downloading https://files.pythonhosted.org/packages/62/be/ad4d422b6f38d99b09ad6d046ab725e8ccac5fefd9ca256ca35a80dbf3c6/cairocffi-0.9.0.tar.gz (84kB)
100% |ββββββββββββββββββββββββββββββββ| 92kB 1.4MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-jq4orjvu/cairocffi/setup.py", line 51, in <module>
'test': ['pytest-runner', 'pytest-cov'],
File "/usr/lib/python3.6/site-packages/setuptools/__init__.py", line 140, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.6/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python3.6/site-packages/setuptools/dist.py", line 370, in __init__
k: v for k, v in attrs.items()
File "/usr/lib/python3.6/distutils/dist.py", line 281, in __init__
self.finalize_options()
File "/usr/lib/python3.6/site-packages/setuptools/dist.py", line 529, in finalize_options
ep.load()(self, ep.name, value)
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2343, in load
return self.resolve()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2349, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
ModuleNotFoundError: No module named 'cffi.setuptools_ext'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-jq4orjvu/cairocffi/
Iβm quite confident Iβm using the latest of everything, but it seem that something is missing or perhaps interfering. Please see links below for more details of my installation.
This problem is also tracked here: https://github.com/pygobject/pycairo/issues/135 and here: https://github.com/pyca/bcrypt/issues/157
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Strange error when trying to install PIP - Stack Overflow
Trying install PIP. I have python 2.7 installed on Windows 7 (32-bit). I created a file called get-pip.py as instructed here:Β ...
Read more >How to install modules with PIP (and fix it when it fails) - Medium
Assuming that, the first thing to do is to check if the module exists. The main way to do this is to go...
Read more >Install TensorFlow with pip
This guide is for the latest stable version of TensorFlow. For the preview build (nightly), use the pip package named tf-nightly . Refer...
Read more >Troubleshooting - pipx
pipx uses pip to install and manage packages. If you see pipx exhibiting strange behavior on install or upgrade, check that you don't...
Read more >Installation β PyEMMA 2.5.7 documentation
To install the PyEMMA Python package, you need a few Python package dependencies. If these dependencies are not available in their required versions,Β ......
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 Free
Top 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
Today I updated everything and managed to re-install cffi properly with:
π
when I try to install cairocffi i got:
Please advice