Skip to content

Instantly share code, notes, and snippets.

@shearichard
Created September 15, 2022 03:54
Show Gist options
  • Save shearichard/08dd438628c63e9d782c15988f91bb28 to your computer and use it in GitHub Desktop.
Save shearichard/08dd438628c63e9d782c15988f91bb28 to your computer and use it in GitHub Desktop.
#0 19.60 Downloading gunicorn-19.8.1-py2.py3-none-any.whl (112 kB)
#0 19.61 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 112.9/112.9 KB 10.8 MB/s eta 0:00:00
#0 19.67 INFO: pip is looking at multiple versions of gunicorn to determine which version is compatible with other requirements. This could take a while.
#0 19.71 Downloading gunicorn-19.8.0-py2.py3-none-any.whl (112 kB)
#0 19.73 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 112.8/112.8 KB 10.3 MB/s eta 0:00:00
#0 19.83 Downloading gunicorn-19.7.1-py2.py3-none-any.whl (111 kB)
#0 19.85 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 112.0/112.0 KB 12.0 MB/s eta 0:00:00
#0 19.93 Downloading gunicorn-19.7.0-py2.py3-none-any.whl (112 kB)
#0 19.94 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 112.1/112.1 KB 10.5 MB/s eta 0:00:00
#0 20.03 Downloading gunicorn-19.6.0-py2.py3-none-any.whl (114 kB)
#0 20.05 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 114.3/114.3 KB 8.7 MB/s eta 0:00:00
#0 20.14 Downloading gunicorn-19.5.0-py2.py3-none-any.whl (113 kB)
#0 20.18 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 113.7/113.7 KB 2.7 MB/s eta 0:00:00
#0 20.23 INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.
#0 20.27 Downloading gunicorn-19.4.5-py2.py3-none-any.whl (112 kB)
#0 20.28 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 112.8/112.8 KB 9.0 MB/s eta 0:00:00
#0 20.37 Downloading gunicorn-19.4.4-py2.py3-none-any.whl (112 kB)
#0 20.38 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 112.8/112.8 KB 9.8 MB/s eta 0:00:00
#0 20.47 Downloading gunicorn-19.4.3-py2.py3-none-any.whl (112 kB)
#0 20.48 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 112.8/112.8 KB 11.0 MB/s eta 0:00:00
#0 20.57 Downloading gunicorn-19.4.2-py2.py3-none-any.whl (112 kB)
#0 20.58 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 112.9/112.9 KB 11.5 MB/s eta 0:00:00
#0 20.67 Downloading gunicorn-19.4.1-py2.py3-none-any.whl (112 kB)
#0 20.68 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 112.7/112.7 KB 12.5 MB/s eta 0:00:00
#0 20.77 Downloading gunicorn-19.4.0-py2.py3-none-any.whl (112 kB)
#0 20.78 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 112.7/112.7 KB 13.6 MB/s eta 0:00:00
#0 20.87 Downloading gunicorn-19.3.0-py2.py3-none-any.whl (110 kB)
#0 20.88 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 110.5/110.5 KB 13.3 MB/s eta 0:00:00
#0 20.97 Downloading gunicorn-19.2.1-py2.py3-none-any.whl (110 kB)
#0 20.98 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 110.2/110.2 KB 12.5 MB/s eta 0:00:00
#0 21.08 Downloading gunicorn-19.2.0-py2.py3-none-any.whl (110 kB)
#0 21.10 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 110.2/110.2 KB 13.6 MB/s eta 0:00:00
#0 21.18 Downloading gunicorn-19.1.1-py2.py3-none-any.whl (104 kB)
#0 21.19 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 104.4/104.4 KB 12.8 MB/s eta 0:00:00
#0 21.28 Downloading gunicorn-19.1.0-py2.py3-none-any.whl (102 kB)
#0 21.29 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 102.4/102.4 KB 12.5 MB/s eta 0:00:00
#0 21.38 Downloading gunicorn-19.0.0.tar.gz (382 kB)
#0 21.56 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 382.9/382.9 KB 2.2 MB/s eta 0:00:00
#0 21.68 Preparing metadata (setup.py): started
#0 22.02 Preparing metadata (setup.py): finished with status 'done'
#0 22.12 Downloading gunicorn-18.0-py33-none-any.whl (93 kB)
#0 22.14 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 93.7/93.7 KB 6.5 MB/s eta 0:00:00
#0 22.23 Downloading gunicorn-17.5.tar.gz (367 kB)
#0 22.35 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 367.3/367.3 KB 3.0 MB/s eta 0:00:00
#0 22.48 Preparing metadata (setup.py): started
#0 22.78 Preparing metadata (setup.py): finished with status 'done'
#0 22.88 Downloading gunicorn-0.17.4.tar.gz (372 kB)
#0 22.94 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 372.7/372.7 KB 8.4 MB/s eta 0:00:00
#0 23.05 Preparing metadata (setup.py): started
#0 23.37 Preparing metadata (setup.py): finished with status 'done'
#0 23.48 Downloading gunicorn-0.17.3.tar.gz (372 kB)
#0 23.56 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 372.8/372.8 KB 5.3 MB/s eta 0:00:00
#0 23.67 Preparing metadata (setup.py): started
#0 24.00 Preparing metadata (setup.py): finished with status 'done'
#0 24.10 Downloading gunicorn-0.17.2.tar.gz (360 kB)
#0 24.14 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 360.1/360.1 KB 10.2 MB/s eta 0:00:00
#0 24.25 Preparing metadata (setup.py): started
#0 24.55 Preparing metadata (setup.py): finished with status 'done'
#0 24.64 Downloading gunicorn-0.17.1.tar.gz (359 kB)
#0 24.71 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 359.6/359.6 KB 5.4 MB/s eta 0:00:00
#0 24.83 Preparing metadata (setup.py): started
#0 25.13 Preparing metadata (setup.py): finished with status 'done'
#0 25.23 Downloading gunicorn-0.17.0.tar.gz (357 kB)
#0 25.27 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 357.8/357.8 KB 10.1 MB/s eta 0:00:00
#0 25.38 Preparing metadata (setup.py): started
#0 25.71 Preparing metadata (setup.py): finished with status 'done'
#0 25.81 Downloading gunicorn-0.16.1.tar.gz (344 kB)
#0 25.85 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 344.9/344.9 KB 9.4 MB/s eta 0:00:00
#0 25.96 Preparing metadata (setup.py): started
#0 26.29 Preparing metadata (setup.py): finished with status 'done'
#0 26.39 Downloading gunicorn-0.16.0.tar.gz (130 kB)
#0 26.40 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 130.5/130.5 KB 11.6 MB/s eta 0:00:00
#0 26.49 Preparing metadata (setup.py): started
#0 26.69 Preparing metadata (setup.py): finished with status 'error'
#0 26.70 error: subprocess-exited-with-error
#0 26.70
#0 26.70 × python setup.py egg_info did not run successfully.
#0 26.70 │ exit code: 1
#0 26.70 ╰─> [6 lines of output]
#0 26.70 Traceback (most recent call last):
#0 26.70 File "<string>", line 2, in <module>
#0 26.70 File "<pip-setuptools-caller>", line 34, in <module>
#0 26.70 File "/tmp/pip-install-hjrblfix/gunicorn_97436e3bd94b4156a9d8467503f15a9b/setup.py", line 43, in <module>
#0 26.70 with open(fname) as f:
#0 26.70 FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-install-hjrblfix/gunicorn_97436e3bd94b4156a9d8467503f15a9b/requirements_dev.txt'
#0 26.70 [end of output]
#0 26.70
#0 26.70 note: This error originates from a subprocess, and is likely not a problem with pip.
#0 26.71 error: metadata-generation-failed
#0 26.71
#0 26.71 × Encountered error while generating package metadata.
#0 26.71 ╰─> See above for output.
#0 26.71
#0 26.71 note: This is an issue with the package mentioned above, not pip.
#0 26.71 hint: See above for details.
#0 26.72 WARNING: You are using pip version 22.0.4; however, version 22.2.2 is available.
#0 26.72 You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
------
failed to solve: executor failed running [/bin/sh -c pip install -r requirements.txt]: exit code: 1
@shearichard
Copy link
Author

This is the output from doing manage up on https://github.com/wip-abramson/aries-acapy-fullstack-starter . The docker build seems to be cycling through all the gunicorn versions it can find and rejecting all of them. This is, I assume, due to the requirements.txt not specifying a version.

@shearichard
Copy link
Author

This is the output of a 'normal' pip install of gunicorn.

2022-09-15_16-14 normal gunicorn pip install

@shearichard
Copy link
Author

shearichard commented Sep 15, 2022

Here's a screen dump of the text shown in the inital part of this gist, it may be a little easier ...
2022-09-15_15-52-weird-docker-problem

@shearichard
Copy link
Author

Tried to replicate this by making a mini project using gunicorn and, when cloning it, removing the version from gunicorn requirement in requirements.txt. However this didn't result in anything abnormal occurring ...

2022-09-15_16-40-install requirements with no version on the gunicorn

@shearichard
Copy link
Author

There's a question/answer here https://stackoverflow.com/a/49287903 which provides quite a good setup if you a test of https://github.com/shearichard/python-docker-gunicorn-weirdness was going to be done.

@shearichard
Copy link
Author

For ease of reference here are the Dockerfile and requirements.txt from the part of the original project which was causing problems .

2022-09-15_16-49 - relevant files in the original problem project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment