oTree Forum >

Heroku Build does not work anymore

#1 by JuergenMR

I uploaded the same game (adjusted verison) before, but now it does not work anymore. Anyone has any idea?


Failed
Time
16 seconds ago

Build output
-----> Building on the Heroku-22 stack
-----> Using buildpack: heroku/python
-----> Python app detected
-----> Using Python version specified in runtime.txt
 !     
 !     A Python security update is available! Upgrade as soon as possible to: python-3.9.19
 !     See: https://devcenter.heroku.com/articles/python-runtimes
 !     
-----> Python version has changed from python-3.9.13 to python-3.9.16, clearing cache
-----> Requirements file has been changed, clearing cached dependencies
-----> Installing python-3.9.16
-----> Installing pip 24.0, setuptools 70.3.0 and wheel 0.43.0
-----> Installing SQLite3
-----> Installing requirements with pip
       ERROR: Ignored the following yanked versions: 5.9.6
       ERROR: Could not find a version that satisfies the requirement otree==6.0.0a9 (from versions: 0.0.0, 2.0.0b1, 2.0.0b2, 2.0.0b3, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4b1, 2.0.4b2, 2.0.4b3, 2.0.4, 2.0.12, 2.0.13, 2.0.14, 2.0.15, 2.0.16, 2.0.17, 2.0.18, 2.0.19, 2.0.20, 2.0.21, 2.0.22, 2.0.23, 2.0.24, 2.0.25, 2.0.26, 2.0.27, 2.0.28, 2.0.29, 2.0.34, 2.0.35, 2.0.36, 2.0.37, 2.1.0b1, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5, 2.1.6, 2.1.7, 2.1.8, 2.1.9, 2.1.10b1, 2.1.10, 2.1.11, 2.1.12b1, 2.1.12, 2.1.13, 2.1.14, 2.1.15, 2.1.16, 2.1.17, 2.1.18, 2.1.19, 2.1.20, 2.1.21, 2.1.22, 2.1.23, 2.1.24, 2.1.25, 2.1.26, 2.1.27, 2.1.28b1, 2.1.28, 2.1.29b1, 2.1.33, 2.1.34, 2.1.35, 2.1.36, 2.1.37, 2.1.38, 2.1.39, 2.1.40, 2.1.41, 2.2.0b1, 2.2.0b2, 2.2.0b3, 2.2.0b4, 2.2.0, 2.2.1, 2.2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.0a17, 5.0.0a18, 5.0.0a19, 5.0.0a20, 5.0.0a21, 5.0.0a22, 5.0.0a23, 5.0.0a24, 5.0.0a25, 5.0.0a26, 5.0.0a27, 5.0.0a28, 5.0.0a29, 5.0.0a30, 5.0.0a31, 5.0.0a32, 5.0.0a33, 5.0.0a34, 5.0.0a35, 5.0.0a36, 5.0.0a37, 5.0.0b1, 5.0.0b2, 5.0.0b3, 5.0.0b4, 5.0.0b5, 5.0.0b6, 5.0.0b7, 5.0.0b8, 5.0.0b9, 5.0.0, 5.0.1, 5.0.3, 5.0.4, 5.0.5, 5.0.6, 5.0.7, 5.0.8, 5.1.0, 5.1.1, 5.1.2, 5.1.3, 5.1.4, 5.1.5, 5.1.7, 5.1.8, 5.1.9, 5.1.10, 5.2.0, 5.2.1, 5.2.2, 5.2.3, 5.2.4, 5.2.5, 5.2.6, 5.2.7, 5.2.8, 5.3.0b1, 5.3.0, 5.3.1, 5.3.2b1, 5.3.2b2, 5.4.0, 5.4.1, 5.4.2, 5.4.3, 5.4.4, 5.4.5, 5.4.6, 5.4.7, 5.5.0, 5.6.0, 5.7.0, 5.7.1, 5.7.2, 5.8.0b1, 5.8.0b2, 5.8.0b3, 5.8.0b4, 5.8.0b5, 5.8.0, 5.8.1, 5.8.2, 5.8.3, 5.8.4, 5.8.5, 5.8.6b1, 5.9.0, 5.9.1, 5.9.2, 5.9.3, 5.9.5, 5.9.7, 5.9.8, 5.10.0b1, 5.10.0, 5.10.1, 5.10.2, 5.10.3, 5.10.4, 5.11.0b1, 5.11.0b2, 6.0.0b1, 6.0.0b2, 6.0.0b3, 6.0.0b4)
       ERROR: No matching distribution found for otree==6.0.0a9
 !     Push rejected, failed to compile Python app.

 !     Push failed

#2 by Chris_oTree

Sounds like your requirements.txt has otree==6.0.0a9 for some reason. is that the version of otree you have installed? that is not a proper official version, the "a" indicates that it is an alpha version i probably made when i was testing some things out. there is no otree version 6 yet.

#3 by JuergenMR (edited )

thanks for the quick reply. It somehow worked before (I will check on my backups as soon as I am back in the office). How can I solve it? What would be the right version?

UPDATE:
it works with otree==5.4.2 if I do not let otree overwrite my requirements.txt

#4 by Christoph

Hey, sorry for the thread necromancy. I just helped a colleague to to fix his code which he is hosting on heroku. Whenever he opened one of the study links, he got the attached error in thread.py. 

Turns out the problem was caused by having otree 6.0.0b21 installed. My colleague specified otree>=5.0.0a21 in his requirements.txt, which apparently caused heroku to install a beta version of otree 6. Trying to install an otree version >=5.0.0a21 on my PC only downloads version 5.10.3 (not 5.11, however).

I found somebody else reporting a similar issue one year ago (https://www.otreehub.com/forum/660/), so it seems that under certain conditions heroku can access alpha/beta versions.

Write a reply

Set forum username