Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed Install Ubuntu 14.04 (Packaging error) #1086

Closed
Lucif3r opened this issue Jan 30, 2017 · 7 comments
Closed

Failed Install Ubuntu 14.04 (Packaging error) #1086

Lucif3r opened this issue Jan 30, 2017 · 7 comments

Comments

@Lucif3r
Copy link

Lucif3r commented Jan 30, 2017

root@mail:~# curl -s https://mailinabox.email/setup.sh | sudo bash
FAILED: pip3 install email_validator>=1.0.0

Traceback (most recent call last):
File "/usr/bin/pip3", line 5, in
from pkg_resources import load_entry_point
File "/usr/local/lib/python3.4/dist-packages/pkg_resources/init.py", line 70, in
import packaging.version
ImportError: No module named 'packaging'

@show0k
Copy link
Contributor

show0k commented Jan 30, 2017

Duplicate of #1080

@cromulus
Copy link
Contributor

fixed in #1083, waiting for testing and merge.

In the meantime, I think you can address this by running python3 -m pip install setuptools and then the installation script. Please report back.

@axd
Copy link

axd commented Jan 30, 2017

@cromulus I've seen that you've responded the same to everyone, the problem here is that you can't run any command using pip, for some reason is broken, you have to reinstall python-request as I mentioned here: #1080 (comment) I've tried your method and pip always return that error message, so is not a problem of setuptools only.

If you can check your fix commit and add this fix (install or re-install python3-request) would be nice.

Cheers.

@cromulus
Copy link
Contributor

The commit won't fix a broken system. The commit only enables new installations to work.

I'll spin up a new vm to see if I can figure out a way to fix a broken system. The suggestion above came from the maintainers of pip itself, and they weren't certain it would fix things.

The challenge is that the problem is a race condition, so it's unclear what state your particular machine is in. python3 -m pip install setuptools could fix your machine, or not. I just don't know.

@cromulus
Copy link
Contributor

cromulus commented Jan 30, 2017

ok, I've fixed a broken box with this:

apt-get install --reinstall python-pkg-resources
python3 -m pip install --upgrade setuptools 
python3 -m pip install --upgrade distribute
python3 -m pip install --upgrade pip

Once I get home, I'll again to ensure that this is the right fix.

@cromulus
Copy link
Contributor

Yup. tested it on another clean VM.

@JoshData
Copy link
Member

JoshData commented Feb 2, 2017

Fixed in v0.21c posted this morning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants