Can anyone help me with the following error that I receive in the command line (Mac)? I get it since this morning for any oTree project for which I try to open devserver. Python and oTree are both up to date and the code is working, so I'm not sure what to do to solve it.
Many thanks,
Eva
System check identified no issues (0 silenced).
Creating new database
Open your browser to
http://localhost:8000/ To quit the server, press Control+C.
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/bin/otree", line 33, in <module>
sys.exit(load_entry_point('otree==3.3.9', 'console_scripts', 'otree')())
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/otree_startup/__init__.py", line 181, in execute_from_command_line
fetch_command(subcmd).run_from_argv(argv)
File "/Users/eva/Library/Python/3.8/lib/python/site-packages/django/core/management/base.py", line 323, in run_from_argv
self.execute(*args, **cmd_options)
File "/Users/eva/Library/Python/3.8/lib/python/site-packages/django/core/management/base.py", line 364, in execute
output = self.handle(*args, **options)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/otree/management/commands/devserver_inner.py", line 155, in handle
run_asgi_server(addr, port, is_devserver=True)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/otree/management/commands/prodserver1of2.py", line 14, in run_asgi_server
run_hypercorn(addr, port, is_devserver=is_devserver)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/otree/management/commands/prodserver1of2.py", line 41, in run_hypercorn
loop.run_until_complete(serve(application, config))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/hypercorn_otree/asyncio/__init__.py", line 39, in serve
await worker_serve(app, config, shutdown_trigger=shutdown_trigger)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/hypercorn_otree/asyncio/run.py", line 69, in worker_serve
sockets = config.create_sockets()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/hypercorn_otree/config.py", line 165, in create_sockets
insecure_sockets = self._create_sockets(self.bind)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/hypercorn_otree/config.py", line 213, in _create_sockets
sock.bind(binding)
OSError: [Errno 48] Address already in use
ERROR Task was destroyed but it is pending!
task: <Task pending name='Task-2' coro=<Lifespan.handle_lifespan() running at /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/hypercorn_otree/asyncio/lifespan.py:30> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f82218c4bb0>()]>>