#1
by
LIDONGDONG
Hello oTree team, I am using an old oTree Hub account/site that appears to have been created around 2018–2019. My existing Heroku site can no longer be deployed because Heroku has deprecated Python 3.9. The build log shows: “Using Python 3.9.16 specified in runtime.txt” and the deployment fails due to Python 3.9 being end-of-life. However, in my oTree Hub interface: - I cannot edit or override the Python version. - There is no option to create a new site. - runtime.txt is not accessible or editable by the user. - Local changes (runtime.txt, .python-version, otree zip) do not affect the deployment. It seems that the Python version is hard-coded in the legacy oTree Hub site configuration. Could you please advise whether my account/site can be: 1) migrated to the current oTree Hub infrastructure (Python ≥ 3.11), or 2) provided with a new site under the new runtime? This is purely a deployment/runtime issue; the experiment code and design are unchanged. Thank you very much for your help. Attached is the information showed after I upload my new experiment Build result Failed Time 14 seconds ago Build output -----> Building on the Heroku-22 stack -----> Using buildpack: heroku/python -----> Python app detected -----> Using Python 3.9.16 specified in runtime.txt [1;31m ! Error: The requested Python version has reached end-of-life.[0m [1;31m ! [0m [1;31m ! Python 3.9 has reached its upstream end-of-life, and is[0m [1;31m ! therefore no longer receiving security updates:[0m [1;31m ! https://devguide.python.org/versions/#supported-versions[0m [1;31m ! [0m [1;31m ! As such, it's no longer supported by this buildpack:[0m [1;31m ! https://devcenter.heroku.com/articles/python-support#supported-python-versions[0m [1;31m ! [0m [1;31m ! Please upgrade to at least Python 3.10 by changing the[0m [1;31m ! version in your runtime.txt file.[0m [1;31m ! [0m [1;31m ! If possible, we recommend upgrading all the way to Python 3.14,[0m [1;31m ! since it contains many performance and usability improvements.[0m ! Push rejected, failed to compile Python app. ! Push failed Thank you
#2
by
Chris_oTree
You can resolve the problem either by upgrading oTree, or by manually editing your runtime.txt file (and when prompted tell oTree not to overwrite it). The new oTree version uses .python-version instead of runtime.txt.
#3
by
Eirini
I have the same problem. How can you upgrade oTree or how exactly can you manually edit your runtime.txt file ? What exactly do you need to add? Thanks in advance
#4
by
Eirini
I see in my otree code opened through pycharm that I have the python-version 3.12