Wrong python version

gaborlakatosTRIAL

a year ago

I have an importerror: ImportError: cannot import name 'Annotated' from 'typing' (/root/.nix-profile/lib/python3.8/typing.py)

It says on the internet that I need to use python 3.9. In development i used python 3.12 so I assume the problem is somewhere on your side of python version. Thank you for looking into it.

View Deploy details

ⓘ Deployment information is only viewable by Project members and Railway admins.

2 Replies

a year ago

Nixpacks doesn't have support for Python 3.12 yet, only 3.11.

As per standard, add a runtime.txt file to your project with just 3.11 in it.


gaborlakatosTRIAL

a year ago

thanks


Wrong python version - Railway Help Station