ModuleNotFoundError: No module named 'otree.common_internal'

56 views
Skip to first unread message

zhe she

unread,
Sep 20, 2021, 3:02:13 AM9/20/21
to oTree help & discussion
Dear all,

I am testing some old otree apps.   I used  pip install -U "otree<5"  to go back to version 3.4.  I got the below error message. Has anyone encountered similar issues before? If yes, could you tell me what to do? Thanks a lot. 

Best,
Vera

微信图片_20210920150116.png

Chris @ oTree

unread,
Sep 20, 2021, 4:56:06 PM9/20/21
to oTree help & discussion
That code should not import from otree.common_internal, since that is a module with internal (non-public) functionality.
There are 2 options:
(a) downgrade to the specific oTree version this was originally programmed on, e.g. otree==2.x.x
(b) remove that import statement and any use of get_models_module, which is the function that is being imported from that module. That function should really not be needed.

Chris @ oTree

unread,
Sep 20, 2021, 8:56:26 PM9/20/21
to oTree help & discussion
By the way if you send me the project, I can try to upgrade it to oTree 5 myself.

zhe she

unread,
Sep 21, 2021, 6:07:16 AM9/21/21
to oTree help & discussion
Thanks for your advice. I have sent my project to you. Thank you for considering helping me.
Reply all
Reply to author
Forward
0 new messages