oTree Forum >

Old oTree Hub site stuck on Python 3.9 (Heroku EOL) – cannot create new site

#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  ! Error: The requested Python version has reached end-of-life.  !   ! Python 3.9 has reached its upstream end-of-life, and is  ! therefore no longer receiving security updates:  ! https://devguide.python.org/versions/#supported-versions  !   ! As such, it's no longer supported by this buildpack:  ! https://devcenter.heroku.com/articles/python-support#supported-python-versions  !   ! Please upgrade to at least Python 3.10 by changing the  ! version in your runtime.txt file.  !   ! If possible, we recommend upgrading all the way to Python 3.14,  ! since it contains many performance and usability improvements. ! Push rejected, failed to compile Python app. ! Push failed

Thank you

Write a reply

Set forum username