#1 by gmauter
Hi,
I've been successfully running a project on Prolific for a while now, but I recently made some slight changes (added an app at the end of the project), and now I'm getting an error when running otree devserver.
Here is the error:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/bin/otree", line 33, in <module>
sys.exit(load_entry_point('otree==5.10.3', 'console_scripts', 'otree')())
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/otree/main.py", line 112, in execute_from_command_line
call_command(cmd, *argv[2:])
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/otree/cli/base.py", line 32, in call_command
module.Command().outer_handle(args)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/otree/cli/base.py", line 10, in outer_handle
return self.handle(**vars(options))
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/otree/cli/devserver_inner.py", line 39, in handle
run_checks()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/otree/checks.py", line 267, in run_checks
errors, warnings = get_checks_output()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/otree/checks.py", line 260, in get_checks_output
check_function(helper, app_name)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/otree/checks.py", line 209, in pages_function
if ViewCls.__name__ == 'Page':
AttributeError: 'str' object has no attribute '__name__'. Did you mean: '__ne__'?
As I mentioned, the only change I made is adding one app. The new app is a simple instructions screen which is basically a copy of a previous instructions app at the beginning of the project. I've added new apps before with no issues, so hoping someone here has an idea about how to fix this. Thanks in advance!
#2 by gmauter
Fixed it, just some quotation marks in the wrong spot. My bad!