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

Editable install of local package fails without network connectivity #5417

Closed
jmbowman opened this issue May 16, 2018 · 4 comments
Closed

Editable install of local package fails without network connectivity #5417

jmbowman opened this issue May 16, 2018 · 4 comments
Labels
auto-locked Outdated issues that have been locked by automation C: editable Editable installations

Comments

@jmbowman
Copy link

Environment

  • pip version: 10.0.1
  • Python version: 3.6.3
  • OS: Mac OS X 10.11.6

Description

An editable installation of a local setuptools checkout fails when there is no network access under pip 10.0.0 and pip 10.0.1. It works under pip 9.0.3, so this seems to be a regression. Also reproduced on another developer's notebook at the PyCon sprints.

This is particularly problematic because it blocks offline execution of tests via tox when usedevelop=True (which is relatively common).

Expected behavior

$ pip install -e /Users/jeremybowman/Source/setuptools
Obtaining file:///Users/jeremybowman/Source/setuptools
Installing collected packages: setuptools
  Found existing installation: setuptools 39.1.0.post20180516
    Uninstalling setuptools-39.1.0.post20180516:
      Successfully uninstalled setuptools-39.1.0.post20180516
  Running setup.py develop for setuptools
Successfully installed setuptools

How to Reproduce

  1. Clone the setuptools git repo: git clone git@github.com:pypa/setuptools.git
  2. Change into the setuptools project directory: cd setuptools
  3. Then run pip install -e .
  4. The error shown below occurs.

Output

$ git clone git@github.com:pypa/setuptools.git
$ cd setuptools
$ pip install -e .
Obtaining file:///Users/jeremybowman/Source/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 0x1040d4cc0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',)': /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 0x10409ce80>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',)': /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 0x1040c1eb8>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',)': /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 0x1040c1fd0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',)': /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 0x1040c1be0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',)': /simple/setuptools/
  Could not find a version that satisfies the requirement setuptools (from versions: )
No matching distribution found for setuptools
@benoit-pierre
Copy link
Member

This could be because setuptools now has a pyproject.toml, and this trigger PEP 518 support. Does it work with --no-build-isolation?

@jmbowman
Copy link
Author

Yes, pip install --no-build-isolation -e . does seem to reliably work without network access under the same circumstances. And it looks like there's some pending PEP 518 related work in tox: tox-dev/tox#573

@pradyunsg pradyunsg added the S: needs triage Issues/PRs that need to be triaged label May 18, 2018
@benoit-pierre
Copy link
Member

For reference: pypa/setuptools#1404

I think this issue can be closed.

@cjerdonek cjerdonek added the C: editable Editable installations label Aug 20, 2018
@lock
Copy link

lock bot commented May 31, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label May 31, 2019
@triage-new-issues triage-new-issues bot removed the S: needs triage Issues/PRs that need to be triaged label May 31, 2019
@lock lock bot locked as resolved and limited conversation to collaborators May 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation C: editable Editable installations
Projects
None yet
Development

No branches or pull requests

5 participants