ImportError: sys.meta_path is None, Python is likely shutting down
I've followed all the instructions in the README.md but I still get this error when I run pipenv run hypercorn run:app:
File "/home/simon/.local/share/virtualenvs/litecord-S46i08wT/bin/hypercorn", line 8, in <module>
sys.exit(main())
File "/home/simon/.local/share/virtualenvs/litecord-S46i08wT/lib/python3.8/site-packages/hypercorn/__main__.py", line 265, in main
run(config)
File "/home/simon/.local/share/virtualenvs/litecord-S46i08wT/lib/python3.8/site-packages/hypercorn/run.py", line 34, in run
worker_func(config)
File "/home/simon/.local/share/virtualenvs/litecord-S46i08wT/lib/python3.8/site-packages/hypercorn/asyncio/run.py", line 172, in asyncio_worker
_run(
File "/home/simon/.local/share/virtualenvs/litecord-S46i08wT/lib/python3.8/site-packages/hypercorn/asyncio/run.py", line 229, in _run
loop.run_until_complete(main(shutdown_trigger=shutdown_trigger))
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/home/simon/.local/share/virtualenvs/litecord-S46i08wT/lib/python3.8/site-packages/hypercorn/asyncio/run.py", line 69, in worker_serve
sockets = config.create_sockets()
File "/home/simon/.local/share/virtualenvs/litecord-S46i08wT/lib/python3.8/site-packages/hypercorn/config.py", line 166, in create_sockets
insecure_sockets = self._create_sockets(self.bind)
File "/home/simon/.local/share/virtualenvs/litecord-S46i08wT/lib/python3.8/site-packages/hypercorn/config.py", line 214, in _create_sockets
sock.bind(binding)
OSError: [Errno 98] Address already in use
Traceback (most recent call last):
File "/home/simon/.local/share/virtualenvs/litecord-S46i08wT/lib/python3.8/site-packages/logbook/handlers.py", line 216, in handle
self.emit(record)
File "/home/simon/.local/share/virtualenvs/litecord-S46i08wT/lib/python3.8/site-packages/logbook/handlers.py", line 582, in emit
msg = self.format(record)
File "/home/simon/.local/share/virtualenvs/litecord-S46i08wT/lib/python3.8/site-packages/logbook/handlers.py", line 195, in format
return self.formatter(record, self)
File "/home/simon/.local/share/virtualenvs/litecord-S46i08wT/lib/python3.8/site-packages/logbook/handlers.py", line 387, in __call__
line = self.format_record(record, handler)
File "/home/simon/.local/share/virtualenvs/litecord-S46i08wT/lib/python3.8/site-packages/logbook/handlers.py", line 371, in format_record
return self._formatter.format(record=record, handler=handler)
ImportError: sys.meta_path is None, Python is likely shutting down
Logged from file /usr/lib/python3.8/asyncio/base_events.py, line 1707
Edited by Titaniumtown