R
Railway11mo ago
Breakout

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:
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
Jump to solution
3 Replies
Percy
Percy11mo ago
Project ID: f99ad04c-9240-4d6e-9d26-fddffc7ecbcb
Breakout
Breakout11mo ago
f99ad04c-9240-4d6e-9d26-fddffc7ecbcb
Solution
Breakout
Breakout11mo ago
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