-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Logging error when checking for new version of pip. #11309
Labels
Comments
domdfcoding
added
S: needs triage
Issues/PRs that need to be triaged
type: bug
A confirmed bug or unintended behavior
labels
Jul 26, 2022
Looks like I have the exact same issue.
|
A PR fixing this would be welcome! |
pradyunsg
added
state: awaiting PR
Feature discussed, PR is needed
and removed
S: needs triage
Issues/PRs that need to be triaged
labels
Jul 27, 2022
As a workaround, you can set |
nmb-paperspace
added a commit
to zzweig/tensorflow2-graphcore
that referenced
this issue
Aug 4, 2022
- Add pip install --update pip to avoid logging issue in pip 22.x (pypa/pip#11309 (comment)) - Add text re Paperspace requirements for consistency with other notebook content - Remove reference to Graphcore Bow-IPU under "Build training dataset generator", reference IPU-POD16 (note this assumes the notes about throughput remain true)
nmb-paperspace
added a commit
to gradient-ai/Graphcore-HuggingFace
that referenced
this issue
Aug 10, 2022
We are using Graphcore's containers with Ubuntu 20.04 and a startup command that includes `PIP_DISABLE_PIP_VERSION_CHECK=1` (pypa/pip#11309 (comment)). Removing `pip install --upgrade pip` fixes it to 22.2.2, which works correctly, and gives us consistent usage across the notebooks presented.
nmb-paperspace
added a commit
to gradient-ai/Graphcore-Pytorch
that referenced
this issue
Aug 10, 2022
We are using Graphcore's containers with Ubuntu 20.04 and a startup command that includes `PIP_DISABLE_PIP_VERSION_CHECK=1` (pypa/pip#11309 (comment)). Removing `pip install --upgrade pip` fixes it to 22.2.2, which works correctly, and gives us consistent usage across the notebooks presented.
nmb-paperspace
added a commit
to gradient-ai/Graphcore-Tensorflow2
that referenced
this issue
Aug 10, 2022
We are using Graphcore's containers with Ubuntu 20.04 and a startup command that includes `PIP_DISABLE_PIP_VERSION_CHECK=1` (pypa/pip#11309 (comment)). Removing `pip install --upgrade pip` fixes it to 22.2.2, which works correctly, and gives us consistent usage across the notebooks presented.
1 task
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Description
When pip (22.1.2) checked for a new version it failed with an error. It's coming from the following function:
pip/src/pip/_internal/utils/entrypoints.py
Lines 46 to 62 in c4606b3
The problem call is to
os.path.samefile
on line 58, where it compares the output ofshutil.which('pip')
to<sys.prefix>/bin/pip
(in my case/usr/bin/pip
). However, on my system,pip
is installed to the user site-packages directory (so the binary is at/home/domdf/.local/bin/pip
).The solution is to check whether the file exists before calling
samefile
.I have Python 3.7 and 3.9 installed to
/usr
alongside the system's Python 3.8, and the error is present with all three versions.Expected behavior
Pip checks for a new version without an error.
pip version
22.1.2
Python version
3.9.13
OS
Ubuntu 20.04
How to Reproduce
pip install pip==22.1.2
pip install pip
<- Any package will do.Output
Code of Conduct
The text was updated successfully, but these errors were encountered: