#1
by
swordchen
HI, I am new to the Otree community and I want to figure out how to put apps in public projects into my projects. I search for the forum and find a similar post(https://www.otreehub.com/forum/1077/), however, I try the method and just can not figure it out. I download the public projects from the otree hub, then unzip it, put the app(e.g. ultimatum game) file into my unzipped project files and config my settings.py. When I rename my project file from myproject.zip to myproject.otreezip, using the cmd otree zipserver launch, it will raise the error: Traceback (most recent call last): File "C:\Users\ZhuanZ\AppData\Roaming\Python\Python312\site-packages\otree\cli\zipserver.py", line 78, in autoreload_for_new_zipfiles project.unzip_to_tempdir() `````` AttributeError: 'Project' object has no attribute '_proc' while the error also has a post in the forum, but that post don't have comments to solve it. Thanks for your help!
#2
by
Chris_oTree
You are supposed to zip/unzip the project with: otree zip otree unzip Don't create a .zip yourself. I don't know if that is the reason for your current issue but you should start with that.
#3
by
swordchen
Thanks for your assistance, but there are still some issues. Otree zip filename is successful, but the otree zip filename has issues as followings.The 'fileone' is my project name. (otreetest) C:\Users\ZhuanZ\Desktop\Codes>otree unzip fileone.otreezip Unzipped file. Enter this:cd fileone (otreetest) C:\Users\ZhuanZ\Desktop\Codes\fileone>otree zip fileone usage: otree [-h] otree: error: unrecognized arguments: fileone if I cd to C:\Users\ZhuanZ\Desktop\Codes>otree zip fileone, it remains the same. (otreetest) C:\Users\ZhuanZ\Desktop\Codes>otree zip fileone usage: otree [-h] otree: error: unrecognized arguments: fileone Could you please tell me how to solve the problem. Thanks!
#4 by Daniel_Frey
you don't need to add fileone at the end, just typing otree zip (in the folder where settings.py is) works
#5
by
swordchen
Thanks a lot! That works! Thanks again!