#1 by Eden_Heilprin
Hi there, Enclosed please find a text from my Windows PowerShell. I followed a very basic tutorial of yours and try to run one of the default games you have there, but an unexpected error message is showing up every time, although I followed the instructions very carefully. Basically all I did is define the path, open a new otree project and run it. Here is the sequence of the things (from Windows PowerShell): PS C:\Users\eden2\Desktop\otree1\edenproject> cd C:\Users\eden2\Desktop\otree1 PS C:\Users\eden2\Desktop\otree1> otree startproject testproject Include sample games? (y or n): y Created project folder. Enter "cd testproject" to move inside the project folder, then start the server with "otree devserver". PS C:\Users\eden2\Desktop\otree1> cd testproject PS C:\Users\eden2\Desktop\otree1\testproject> otree devserver Traceback (most recent call last): File "C:\Users\eden2\AppData\Local\Programs\Python\Python39\Scripts\otree-script.py", line 33, in <module> sys.exit(load_entry_point('otree==5.8.4', 'console_scripts', 'otree')()) File "c:\users\eden2\appdata\local\programs\python\python39\lib\site-packages\otree\main.py", line 108, in execute_from_command_line setup() File "c:\users\eden2\appdata\local\programs\python\python39\lib\site-packages\otree\main.py", line 137, in setup init_i18n(settings.LANGUAGE_CODE_ISO) AttributeError: module 'otree.settings' has no attribute 'LANGUAGE_CODE_ISO' I'll be so happy if you could reply to this one and let me know what I did wrong. Thanks in advance, Eden Heilprin
#2 by Chris_oTree
This is an interesting one. First, run this: pip3 uninstall otree pip3 install otree Then try running devserver again. If you still get the error, run "python" to get the Python command prompt, then do: >>> import otree.settings >>> otree.settings.__file__ This will output a file path. Find the file at that path, and post that file as an attachment here.
#3 by Chris_oTree
Also, in the Python command prompt, do this: dir(otree.settings) And post the output here.