You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pip install hangs on versions after and including 3.9.0 #540
When running pip to install packages on versions after and including 3.9.0, pip seems to hang and package installs take up to 20 minutes. This issue doesn't occur with version 3.8.6 or earlier.
Can you give all the commands you ran and any relevant files or logs for reproducing the issue
I can't seem to reproduce
$ time docker build -t python:test - <<EOFFROM python:3.9.0RUN pip install sh pyprind cryptoEOFSending build context to Docker daemon 2.048kBStep 1/2 : FROM python:3.9.0 ---> dfc47c6cee13Step 2/2 : RUN pip install sh pyprind crypto ---> Running in 36c035e011c1Collecting sh Downloading sh-1.14.0-py2.py3-none-any.whl (40 kB)Collecting pyprind Downloading PyPrind-2.11.2-py3-none-any.whl (8.6 kB)Collecting crypto Downloading crypto-1.4.1-py2.py3-none-any.whl (18 kB)Collecting shellescape Downloading shellescape-3.8.1-py2.py3-none-any.whl (3.1 kB)Collecting Naked Downloading Naked-0.1.31-py2.py3-none-any.whl (590 kB)Collecting requests Downloading requests-2.24.0-py2.py3-none-any.whl (61 kB)Collecting pyyaml Downloading PyYAML-5.3.1.tar.gz (269 kB)Collecting chardet<4,>=3.0.2 Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 Downloading urllib3-1.25.10-py2.py3-none-any.whl (127 kB)Collecting certifi>=2017.4.17 Downloading certifi-2020.6.20-py2.py3-none-any.whl (156 kB)Collecting idna<3,>=2.5 Downloading idna-2.10-py2.py3-none-any.whl (58 kB)Building wheels for collected packages: pyyaml Building wheel for pyyaml (setup.py): started Building wheel for pyyaml (setup.py): finished with status 'done' Created wheel for pyyaml: filename=PyYAML-5.3.1-cp39-cp39-linux_x86_64.whl size=542361 sha256=c68b26a54a6b39aa1983e96522b8d72ffb499087e0ee398ecea3142109296932 Stored in directory: /root/.cache/pip/wheels/69/60/81/5cd74b8ee068fbe9e04ca0d53148f28f5c6e2c5b177d5dd622Successfully built pyyamlInstalling collected packages: sh, pyprind, shellescape, chardet, urllib3, certifi, idna, requests, pyyaml, Naked, cryptoSuccessfully installed Naked-0.1.31 certifi-2020.6.20 chardet-3.0.4 crypto-1.4.1 idna-2.10 pyprind-2.11.2 pyyaml-5.3.1 requests-2.24.0 sh-1.14.0 shellescape-3.8.1 urllib3-1.25.10Removing intermediate container 36c035e011c1 ---> ca62cc29b5deSuccessfully built ca62cc29b5deSuccessfully tagged python:testreal 1m1.217suser 0m0.080ssys 0m0.048s
However when I tried installing pandas as an example I did encounter the repeated Installing build dependencies: still running... which had issues opened at pandas-dev/pandas#32045 and pandas-dev/pandas#36296
Unfortunately, that was more likely to be https://www.githubstatus.com/incidents/t34640ccrmfs (it never even got around to running pip in that build -- we have several Write-Host instructions that would've printed output first if it had). 😞
I first noticed this issue running the image in a Concourse CI task:
Interestingly, the package I happened to use for testing was pandas so, I don't know if this could be related to the issue @wglambert referenced above... 🧐
This is the job I was running to recreate the issue:
Are you also using pandas or another extension that might not have everything compatible yet with 3.9? Can you give all the commands you ran and any relevant files or logs for reproducing the issue.
It seems there's still some updating to be done on a few extensions or for their dependencies, and I don't think there's anything actionable we as maintainers of the image could do to alleviate these issues
Activity
wglambert commentedon Oct 7, 2020
Can you give all the commands you ran and any relevant files or logs for reproducing the issue
I can't seem to reproduce
However when I tried installing
pandasas an example I did encounter the repeatedInstalling build dependencies: still running...which had issues opened at pandas-dev/pandas#32045 and pandas-dev/pandas#36296sam-mathews-nz commentedon Oct 7, 2020
It looks to me like this issue was present in the precommit check, which ran for 6 hours before being cancelled.
See: https://github.com/docker-library/python/runs/1217186972
tianon commentedon Oct 7, 2020
Unfortunately, that was more likely to be https://www.githubstatus.com/incidents/t34640ccrmfs (it never even got around to running
pipin that build -- we have severalWrite-Hostinstructions that would've printed output first if it had). 😞sam-mathews-nz commentedon Oct 7, 2020
I would be keen to know if @jamesmealing is encountering this issue locally or on Github Actions.
NeuroFox commentedon Oct 9, 2020
Still happens to me. 3.6.9 is ok, 3.8 ok, at that very exact moment i switch to 3.9 it hangs during spacy installation.
You can check it more detailed here
explosion/spaCy#6228
jamesmealing commentedon Oct 12, 2020
Hi guys. Sorry for the slow reply.
I first noticed this issue running the image in a Concourse CI task:
Interestingly, the package I happened to use for testing was pandas so, I don't know if this could be related to the issue @wglambert referenced above... 🧐
This is the job I was running to recreate the issue:
By changing the 'tag' to '3.8.6' the issue went away.
Let me know if there is any further information or detail you want.
ulgens commentedon Oct 12, 2020
I encountered the same issue today. Not sure how to debug that but that "hang" is around 3-4 minutes here and it's frustrating.
wglambert commentedon Oct 12, 2020
Are you also using
pandasor another extension that might not have everything compatible yet with 3.9? Can you give all the commands you ran and any relevant files or logs for reproducing the issue.It seems there's still some updating to be done on a few extensions or for their dependencies, and I don't think there's anything actionable we as maintainers of the image could do to alleviate these issues
jamesmealing commentedon Oct 12, 2020
Ah okay, so the issue is with certain third-party packages having not yet been updated to support the latest image version?
Downgrade to Python 3.8 since no wheel for 3.9
Transition other Travis jobs to Github Actions (#988)
wglambert commentedon Nov 4, 2020
Came across this support matrix for packages that support Python 3.9 https://pyreadiness.org/3.9/
Going to close since this isn't an issue with the image
fernandoracca commentedon May 25, 2021
found this issue using python:3-alpine and pandas.