I am trying to run Bare Metal webui.
When i run poetry run gunicorn -b 0.0.0.0:5000 server:app i get error:
ModuleNotFoundError: No module named 'yaml' even if i had ran the poetry dependency installation.
Attach full error
[2024-05-31 12:47:33 +0200] [33031] [INFO] Starting gunicorn 20.1.0
[2024-05-31 12:47:33 +0200] [33031] [INFO] Listening at: http://0.0.0.0:5000 (33031)
[2024-05-31 12:47:33 +0200] [33031] [INFO] Using worker: sync
[2024-05-31 12:47:33 +0200] [33034] [INFO] Booting worker with pid: 33034
[2024-05-31 12:47:34 +0200] [33034] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 589, in spawn_worker
worker.init_process()
File "/usr/lib/python3/dist-packages/gunicorn/workers/base.py", line 134, in init_process
self.load_wsgi()
File "/usr/lib/python3/dist-packages/gunicorn/workers/base.py", line 146, in load_wsgi
self.wsgi = self.app.wsgi()
^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/gunicorn/app/wsgiapp.py", line 58, in load
return self.load_wsgiapp()
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
return util.import_app(self.app_uri)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/gunicorn/util.py", line 384, in import_app
mod = importlib.import_module(module)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1206, in _gcd_import
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/gian/headscale-webui/server.py", line 3, in
import headscale, helper, json, os, pytz, renderer, secrets, requests, logging
File "/home/gian/headscale-webui/headscale.py", line 3, in
import requests, json, os, logging, yaml
ModuleNotFoundError: No module named 'yaml'
[2024-05-31 12:47:34 +0200] [33034] [INFO] Worker exiting (pid: 33034)
[2024-05-31 12:47:34 +0200] [33031] [INFO] Shutting down: Master
[2024-05-31 12:47:34 +0200] [33031] [INFO] Reason: Worker failed to boot
I am trying to run Bare Metal webui. When i run
poetry run gunicorn -b 0.0.0.0:5000 server:app
i get error:ModuleNotFoundError: No module named 'yaml'
even if i had ran the poetry dependency installation. Attach full error