oTree Forum >

[Beginner Problem] Error Message when trying to create Session on MTurk

#1 by JuergenMR

Hi everyone,

my app is running well but I cannot deploy it to mturk. I get the following error message. It is probably a beginner-mistake, but maybe you can help me?

Application error (500)
KeyError: 'mturk_hit_settings'
Traceback

File /app/.heroku/python/lib/python3.9/site-packages/otree/views/mturk.py, line 77, in vars_for_template+
File /app/.heroku/python/lib/python3.9/site-packages/otree/views/cbv.py, line 114, in get_context_data+
File /app/.heroku/python/lib/python3.9/site-packages/otree/views/cbv.py, line 148, in get_context_data+
File /app/.heroku/python/lib/python3.9/site-packages/otree/views/cbv.py, line 76, in get+
File /app/.heroku/python/lib/python3.9/site-packages/otree/views/cbv.py, line 66, in inner_dispatch+
File /app/.heroku/python/lib/python3.9/site-packages/otree/views/cbv.py, line 152, in inner_dispatch+
File .heroku/python/lib/python3.9/concurrent/futures/thread.py, line 58, in run‒
55.             return

56.

57.         try:

58.             result = self.fn(*self.args, **self.kwargs)

59.         except BaseException as exc:

60.             self.future.set_exception(exc)

61.             # Break a reference cycle with the exception 'exc'

#2 by JuergenMR

ok..found another way

#3 by ecopsy2023

What was the other way?

#4 by JuergenMR

good question...I think for this specific error, I have switched from PyCharm to Otree Studio - basically, I have copied my code in the respective buckets in otree studio...I have no idea why it worked but worked

Write a reply

Set forum username