#1
by
Juliana
Hi, I am running into a problem when resetting the database on oTree Hub, which I don't experience when I test the app locally on my computer. Does anyone know what's the issue and how to solve it? Thank you! Starting process with command `otree resetdb --noinput` State changed from starting to up Traceback (most recent call last): File "/app/.heroku/python/lib/python3.9/site-packages/otree/database.py", line 275, in init_orm models = get_models_module(app) File "/app/.heroku/python/lib/python3.9/site-packages/otree/common.py", line 75, in get_models_module return import_module(module_name) File "/app/.heroku/python/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "/app/quiz/__init__.py", line 2, in from glob2 import glob ModuleNotFoundError: No module named 'glob2' Process exited with status 1 State changed from up to complete
#2
by
Chris_oTree
See here: File "/app/quiz/__init__.py", line 2, in from glob2 import glob ModuleNotFoundError: No module named 'glob2' It seems you are using a package called glob2, which is not installed on heroku. you need to add it to your requirements.txt so that Heroku knows to install it. Or if glob2 is not necessary, you should delete the code that uses it.