oTree Forum >

Cannot find reference 'api' in 'imported module otree'

#1 by gonarr

I'm using PyCharm successfully, and my local interpret is python 11, properly recognized. However, "from otree.api import *" gives the error: "Cannot find reference 'api' in 'imported module otree'" and hence none of the oTree-defined terms (e.g., models, page, cu) are recognized.

Any ideas what could be going wrong? Thank you.

#2 by Daniel_Frey

Did you install oTree on your computer?

Write a reply

Set forum username