oTree Forum >

Inheriting global player class

#1 by talio (edited )

Im new to otree and I am trying to create an app where there are three different instances of the real effort task, where the task is Matrix.
Using version of otree 3.x I used to have a python file in the app folder where I could declare the global player, subsession classes etc. Now, in version 5.x , I have created a toy subsession class, and even when I just import the python file I get the following error:

 File "C:\Users\xx\anaconda3\envs\otreetest\lib\site-packages\sqlalchemy\util\langhelpers.py", line 961, in _fallback_getattr
    raise AttributeError(key)
AttributeError: entity

Any help would pe greatly appreciated. Maybe there is a version of the real-effort task compatible with the 3.x otree version I haven't been able to find. Is there?

THank you all for maintaining this community..

Write a reply

Set forum username