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

Installation failed due to dependencies #10

Closed
bnorthoff opened this issue Mar 11, 2019 · 3 comments
Closed

Installation failed due to dependencies #10

bnorthoff opened this issue Mar 11, 2019 · 3 comments

Comments

@bnorthoff
Copy link

I using Python 3.6.5, pip 19.0.3, SLE 15 and wanted to install xopen (used for cutadapt) using Python3. Installation was performed adding a proxy: sudo pip3 install xopen –proxy address.of.my.proxy.com:8080.
Setuptools (setuptools-40.8.0), setuptools_scm (3.2.0) and wheel (0.33.1) were already installed. However I have some troubles with the dependencies and network connectivity:

Collecting xopen
Using cached https://files.pythonhosted.org/packages/c4/3b/52f8a5d32c97e6301ea85419f0fc0eaed5cfaedc6a973990a2908116da31/xopen-0.5.0.tar.gz
Installing build dependencies ... error
Complete output from command /usr/bin/python3 /usr/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-a9co28rs/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel setuptools_scm:
Collecting setuptools
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f2637ec2198>: Failed to establish a new connection: [Errno 101] Das Netzwerk ist nicht erreichbar',)': /simple/setuptools/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f2637ec2208>: Failed to establish a new connection: [Errno 101] Das Netzwerk ist nicht erreichbar',)': /simple/setuptools/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f2637ea44e0>: Failed to establish a new connection: [Errno 101] Das Netzwerk ist nicht erreichbar',)': /simple/setuptools/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f2637ea4588>: Failed to establish a new connection: [Errno 101] Das Netzwerk ist nicht erreichbar',)': /simple/setuptools/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f2637ea4908>: Failed to establish a new connection: [Errno 101] Das Netzwerk ist nicht erreichbar',)': /simple/setuptools/
Could not find a version that satisfies the requirement setuptools (from versions: )
No matching distribution found for setuptools


Command "/usr/bin/python3 /usr/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-a9co28rs/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel setuptools_scm" failed with error code 1 in None

@marcelm
Copy link
Collaborator

marcelm commented Mar 11, 2019

This doesn’t look like something I can do much about. I would guess that this is a bug in pip.

Ok, after some searching I found pypa/pip#6018 which I would guess is the problem here: When pip installs build dependencies (such as setuptools_scm), it does not use the configured proxy settings.

For the time being, you could try the workaround given in the bug report:

Disabling build isolation with --no-build-isolation and manually installing the build requirements first lets you work around this issue.

Since you say that setuptools_scm was already installed, you should only need to add --no-build-isolation.

@bnorthoff
Copy link
Author

Downlaoding and installing xopen manually using setup.py solved the problem.

@marcelm
Copy link
Collaborator

marcelm commented Mar 11, 2019

Alright, thanks for letting me know. Let’s hope the pip bug gets fixed as well.

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

2 participants