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
Upgrade Python version to 3.11 for API. Update
docker recipe that is being used for Developer mode
to use `Python 3.11` image.
Update requirements version to enable support for Python 3.11.
Below are the required changes:
1. `httptools` that is a requirement for `uvicorn`, failed to
build for existing package version that was `0.28.1`.
```
gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.11 -I/tmp/pip-install-o_24u7rm/httptools_8955220ea3f34d0bae14ed2b27b468ae/vendor/http-parser -c httptools/parser/parser.c -o build/temp.linux-x86_64-cpython-311/httptools/parser/parser.o -O2
httptools/parser/parser.c:212:12: fatal error: longintrepr.h: No such file or directory
212 | #include "longintrepr.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for httptools
```
Fix it by using `uvicorn` version with Python 3.11 support.
2. Since `uvicorn` is one of the requirements of `fastapi`, we
need to update its version to use python 3.11 compatible version of `uvicorn`.
3. Also, upgrade `motor` version to use it with python 3.11.
Signed-off-by: Jeny Sadadia <jeny.sadadia@collabora.com>
0 commit comments