Hi all,
A bit of context - When I first tried deploying my zip file, there was the "App not ready" error. I used the suggestion here on the forum (https://groups.google.com/g/otree/c/VrwxIoNI8XY) to update my otree file to version 5.8 and ensure there is only one version of python installed. I also added the following to my requirement file.
# oTree-may-not-overwrite-this-file
otree>5
django>=3.0
psycopg2>=2.8,<2.9
sentry-sdk==0.7.9
Now I get the below message even when I try to run it locally. Kindly help as I'm extremely new to coding. Thanks!
LOCAL DEVSERVER ERROR MESSAGE
Traceback (most recent call last):
File "/Users/opt/anaconda3/lib/python3.8/site-packages/otree/database.py", line 268, in init_orm
models = get_models_module(app)
File "/Users/opt/anaconda3/lib/python3.8/site-packages/otree/common.py", line 75, in get_models_module
return import_module(module_name)
File "/Users/opt/anaconda3/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/Users/Fall21exp/Stage1_v7/StartApp/__init__.py", line 2, in <module>
from otree.api import *
File "/Users/opt/anaconda3/lib/python3.8/site-packages/otree/api.py", line 10, in <module>
from otree.read_csv import read_csv
File "/Users/opt/anaconda3/lib/python3.8/site-packages/otree/read_csv.py", line 54, in <module>
def read_csv(path: str, type_model) -> list[dict]:
TypeError: 'type' object is not subscriptable
OTREE ERROR MESSAGE WHEN DEPLOYING
-----> $ python manage.py collectstatic --noinput Traceback (most recent call last): File "/tmp/build_d8b6f582/manage.py", line 9, in <module> from otree.management.cli import execute_from_command_line # pylint: disable=all ModuleNotFoundError: No module named 'otree.management' ! Error while running '$ python manage.py collectstatic --noinput'. See traceback above for details. You may need to update application code to resolve this error. Or, you can disable collectstatic for this application: $ heroku config:set DISABLE_COLLECTSTATIC=1
On May 15, 2022, at 8:03 PM, Exp Lee <lee.e...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "oTree help & discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to otree+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/otree/edb04956-6a43-425b-9740-280ff79997f3n%40googlegroups.com.
On May 15, 2022, at 8:37 PM, Exp Lee <lee.e...@gmail.com> wrote:
Thank you so much Chris. I downgraded to 5.8.1 and while it is working in the local server, there is still a problem while deploying on OtreeHub. I have attached the error message given.
To view this discussion on the web, visit https://groups.google.com/d/msgid/otree/9fd0ac61-3484-4939-bc84-4cece0380eb8n%40googlegroups.com.