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

Options using in requirements causing lookup error #11363

Closed
1 task done
AZ-201 opened this issue Aug 8, 2022 · 3 comments
Closed
1 task done

Options using in requirements causing lookup error #11363

AZ-201 opened this issue Aug 8, 2022 · 3 comments
Labels
type: bug A confirmed bug or unintended behavior

Comments

@AZ-201
Copy link

AZ-201 commented Aug 8, 2022

Description

cmd: /home/xxx/var/.tox/py37/bin/python -m pip install -i https://pip.nie.netease.com/simple -r/home/xxx/e2e/misc/requirements.txt >var/.tox/py37/log/py37-1.log
log:

LookupError: https://pip.nie.netease.com/packages/1a/16/441080c907df829016729e71d8bdd42d99b9bdde48b01492ed08912c0aa9/importlib_metadata-4.12.0.tar.gz#sha256=637245b8bab2b6502fcbc752cc4b7a6f6243bb02b31c5c26156ad103d3d45670 (from https://pip.nie.netease.com/simple/importlib-metadata/) (requires-python:>=3.7) is already being built: importlib-metadata from https://pip.nie.netease.com/packages/1a/16/441080c907df829016729e71d8bdd42d99b9bdde48b01492ed08912c0aa9/importlib_metadata-4.12.0.tar.gz#sha256=637245b8bab2b6502fcbc752cc4b7a6f6243bb02b31c5c26156ad103d3d45670 (from setuptools_scm>3)

the requirements:

attrs==21.2.0
certifi==2021.5.30
chardet==4.0.0
idna==2.10
iniconfig==1.1.1
Jinja2==3.0.1
MarkupSafe==2.0.1
packaging==20.9
pluggy==0.13.1
py==1.10.0
pycurl==7.45.1  --global-option=build_ext \
                --global-option="-L/usr/local/opt/openssl/lib" \
                --global-option="-I/usr/local/opt/openssl/include" # These options are causing the problem
pyparsing==2.4.7
pytest==6.2.4
pytest-html==3.1.1
pytest-metadata==1.11.0
requests==2.25.1
toml==0.10.2
urllib3==1.26.6
jsonpath==0.82
pytest-xdist==2.5.0
pytest-timeout==1.4.2
pytest-parallel
six==1.16.0
pytest-assume==2.4.3
PyMySQL==1.0.2
paramiko==2.7.2
pytest-rerunfailures==10.2

Expected behavior

pip install all requirements successfully

pip version

pip 22.1.2 from /home/xxx/var/.tox/py37/lib/python3.7/site-packages/pip (python 3.7)

Python version

Python 3.7.3

OS

Linux xxx 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64 GNU/Linux

How to Reproduce

  1. using the requirements above.
  2. run python -m pip install -i https://pip.nie.netease.com/simple -r/home/cuiweihang/niecdn-tool/e2e/misc/requirements.txt >var/.tox/py37/log/py37-1.log

Output

No response

Code of Conduct

@AZ-201 AZ-201 added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Aug 8, 2022
@AZ-201
Copy link
Author

AZ-201 commented Aug 8, 2022

I saw an issue #5739 before, not sure if they are related.

@sbidoul
Copy link
Member

sbidoul commented Aug 9, 2022

The use of --global-option implies --no-binary=:all:. These means pip only downloads source distributions and not wheels.

I suspect this creates some kind of bootstrapping / chicken and wheel issue somewhere.

You could try passing these options via --config-settings and --use-pep517, but be aware that at this moment --config-settings is a global option and there may be pecularities with the way setuptools handles config settings.

@AZ-201
Copy link
Author

AZ-201 commented Aug 9, 2022

@sbidoul
Well I messed up the production environment yesterday. Dev might not be happy if I try this again. So I changed the way I'm using it.
I 'll try your approach in a container or something later. Thanks!

@AZ-201 AZ-201 closed this as completed Aug 9, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 9, 2022
@pradyunsg pradyunsg removed the S: needs triage Issues/PRs that need to be triaged label Mar 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants