Deploy python 3.11 error invalid syntax
Traceback (most recent call last):
File "main.py", line 9, in <module>
from tg.utils import strings, base
File "/app/tg/utils/base.py", line 8, in <module>
from tg.handlers.result_action_handler import ResultActionHandler
File "/app/tg/handlers/result_action_handler.py", line 39
match data:
^
SyntaxError: invalid syntax
Thid code works on mine pc but railway seems use old python version. I even set variable NIXPACKS_PYTHON_VERSION but it didnt help
Solution:Jump to solution
Ok guys, there was problem in version indeed. I have created runtime.txt and specified python-3.11.0 in it. All works correctly now
3 Replies