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

Set project name to UNKNOWN when empty #9838

Merged
merged 2 commits into from
Apr 25, 2021

Conversation

uranusjr
Copy link
Member

For compatibility with distutils. This should fix the flood of incoming reports in #9617.

@ktomk
Copy link

ktomk commented Apr 24, 2021

Solves the issue for me.

/E: my original report

@rotu

This comment has been minimized.

@uranusjr

This comment has been minimized.

@rotu

This comment has been minimized.

@rotu

This comment has been minimized.

@uranusjr

This comment has been minimized.

@uranusjr uranusjr force-pushed the sysconfig-header-with-none-project branch from c157449 to a5ded57 Compare April 24, 2021 22:59
For compatibility with distutils. This is only done when pip is not
inside a virtual environment due to a quirk in pip's previous
implementation to the header path.
@uranusjr uranusjr force-pushed the sysconfig-header-with-none-project branch from a5ded57 to e7b1722 Compare April 24, 2021 23:09
@rotu

This comment has been minimized.

@uranusjr

This comment has been minimized.

@netopsengineer
Copy link

Hello, just reporting the following: Mac OS 11.2.3, using pyenv, fresh 3.9.4 install, updated PIP to 21.1, went to update setuptools and wheel and got the following, let me know if I can provide any further details that might assist you:

Successfully installed pip-21.1
❯ pip install --upgrade setuptools wheel
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/9617>
distutils: /Users/myUser/.pyenv/versions/3.9.4/include/python3.9/UNKNOWN
sysconfig: /Users/myUser/.pyenv/versions/3.9.4/include/python3.9
WARNING: Additional context:
user = False
home = None
root = None
prefix = None

@uranusjr
Copy link
Member Author

let me know if I can provide any further details that might assist you

Please read this: #9617 (comment)

@uranusjr uranusjr added this to the 21.1 milestone Apr 25, 2021
@sbidoul sbidoul modified the milestones: 21.1, 21.1.1 Apr 25, 2021
@sbidoul
Copy link
Member

sbidoul commented Apr 25, 2021

Side note: we apparently don't do much with "scheme.headers" except passing them to the legacy setup.py install command ? Does that mean there are user expectations around that and we should take care of it when deprecating the setup.py install code path ?

@sbidoul sbidoul merged commit 914bcc3 into pypa:main Apr 25, 2021
@thanapol199717
Copy link

Hi everyone, I run into a problem on my Raspberry Pi, I don't know how to fix it. I have hope that someone can help me.

image

image

@starfoxbeta
Copy link

starfoxbeta commented Apr 26, 2021

got this while installing conda on macOS Catalina 10.15.7.

% pip3 install conda
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/9617>
distutils: /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/UNKNOWN
sysconfig: /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8
WARNING: Additional context:
user = False
home = None
root = None
prefix = None
.....
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/9617>
distutils: /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/UNKNOWN
sysconfig: /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8
WARNING: Additional context:
user = False
home = None
root = None
prefix = None
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
anyio 2.2.0 requires idna>=2.8, but you have idna 2.7 which is incompatible.
Successfully installed conda-4.3.16 idna-2.7 pycosat-0.6.3 ruamel.yaml-0.17.4 ruamel.yaml.clib-0.2.2


@uranusjr uranusjr deleted the sysconfig-header-with-none-project branch April 26, 2021 05:24
@ihebJl
Copy link

ihebJl commented Apr 26, 2021

On windows using 3.9.4 python, when importing the module later it gives error

image

@pradyunsg
Copy link
Member

Please see #9617.

@pypa pypa locked as resolved and limited conversation to collaborators Apr 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants