oTree Forum >

Specify Python version for Heroku deployment

#1 by Vincenz

Hi, 

I want to use Python 3.10 or newer on Heroku. 
Heroku support suggests adding a 'runtime.txt' file to specify the Python version (https://devcenter.heroku.com/articles/python-runtimes). 
But when I zip the oTree project (using oTree 5.10), the 'runtime.txt' file gets removed. 

Any ideas how to resolve this? 
Thanks in advance!
Vincenz

#2 by Chris_oTree

This is not currently supported. oTree sets the Python version automatically (to 3.9 I believe). I am planning to release an update that changes this, but need to resolve some things first.

#3 by Vincenz

Thanks for the quick reaction!

Write a reply

Set forum username