Incompatibility between uvicorn and python images above 3.10 #1032
JoanaPedrosoDiconium
started this conversation in
General
Replies: 1 comment 5 replies
-
Besides the python versions there aren't many differences between them. I am unable to reproduce any problem of $ docker run -it --rm python:3.11.12-alpine3.20 sh
Unable to find image 'python:3.11.12-alpine3.20' locally
3.11.12-alpine3.20: Pulling from library/python
14cc43950863: Pull complete
d713be8cea52: Pull complete
0999d641008f: Pull complete
Digest: sha256:61197ffa686ff0afdff16b6dbbe2c320d31df3d8e54319c743aeecc47159d1f7
Status: Downloaded newer image for python:3.11.12-alpine3.20
/ # pip install uvicorn
Collecting uvicorn
Downloading uvicorn-0.34.1-py3-none-any.whl.metadata (6.5 kB)
Collecting click>=7.0 (from uvicorn)
Downloading click-8.1.8-py3-none-any.whl.metadata (2.3 kB)
Collecting h11>=0.8 (from uvicorn)
Downloading h11-0.14.0-py3-none-any.whl.metadata (8.2 kB)
Downloading uvicorn-0.34.1-py3-none-any.whl (62 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.4/62.4 kB 3.2 MB/s eta 0:00:00
Downloading click-8.1.8-py3-none-any.whl (98 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.2/98.2 kB 10.6 MB/s eta 0:00:00
Downloading h11-0.14.0-py3-none-any.whl (58 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.3/58.3 kB 8.8 MB/s eta 0:00:00
Installing collected packages: h11, click, uvicorn
Successfully installed click-8.1.8 h11-0.14.0 uvicorn-0.34.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[notice] A new release of pip is available: 24.0 -> 25.0.1
[notice] To update, run: pip install --upgrade pip
/ # uvicorn
Usage: uvicorn [OPTIONS] APP
Try 'uvicorn --help' for help.
Error: Missing argument 'APP'.
/ # |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using the image python python3.10.17-alpine3.20, however this notification has some CVEs. When I try to update it to any python image, either python3.11.12-alpine3.20, python3.12.10-alphine3.20 or python3.13.3-alpine3.20 I get the following error on pod start:
Error: failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "uvicorn": executable file not found in $PATH: unknown
Uvicorn version being used is 0.34.1. Is there some known incompatibility between uvicorn and any of those docker images? If so what image could I use that fixes the CVEs and is compatible with uvicorn?
Thank you
Joana
Beta Was this translation helpful? Give feedback.
All reactions