You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
打印如下:
(venv) root@lyy-virtual-machine:/home/lyy/v2x/dandelion# uvicorn --reload --reload-dir dandelion --port 28300 --log-level debug dandelion.main:app --host 0.0.0.0
INFO: Will watch for changes in these directories: ['/home/lyy/v2x/dandelion/dandelion']
INFO: Uvicorn running on http://0.0.0.0:28300 (Press CTRL+C to quit)
INFO: Started reloader process [95578] using statreload
Process SpawnProcess-1:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/lyy/v2x/dandelion/.tox/venv/lib/python3.10/site-packages/uvicorn/subprocess.py", line 76, in subprocess_started
target(sockets=sockets)
File "/home/lyy/v2x/dandelion/.tox/venv/lib/python3.10/site-packages/uvicorn/server.py", line 60, in run
return asyncio.run(self.serve(sockets=sockets))
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/home/lyy/v2x/dandelion/.tox/venv/lib/python3.10/site-packages/uvicorn/server.py", line 67, in serve
config.load()
File "/home/lyy/v2x/dandelion/.tox/venv/lib/python3.10/site-packages/uvicorn/config.py", line 458, in load
self.loaded_app = import_from_string(self.app)
File "/home/lyy/v2x/dandelion/.tox/venv/lib/python3.10/site-packages/uvicorn/importer.py", line 21, in import_from_string
module = importlib.import_module(module_str)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/lyy/v2x/dandelion/./dandelion/main.py", line 32, in
from dandelion.api.api_v1.api import api_router
File "/home/lyy/v2x/dandelion/./dandelion/api/api_v1/api.py", line 19, in
from dandelion.api.api_v1.endpoints import (
File "/home/lyy/v2x/dandelion/./dandelion/api/api_v1/endpoints/edge_site.py", line 34, in
PORT = deps.get_gunicorn_port()
File "/home/lyy/v2x/dandelion/./dandelion/api/deps.py", line 180, in get_gunicorn_port
spec.loader.exec_module(module)
File "", line 879, in exec_module
File "", line 1016, in get_code
File "", line 1073, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/etc/dandelion/gunicorn.py'
Desktop (please complete the following information):
OS: [ubuntu 22.04]
Browser [chrome]
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
系统环境问题,在搭建Dandelion环境时,按照文档操作出现文件缺失的问题
To Reproduce
Steps to reproduce the behavior:
Expected behavior
期待按照操作能够正常编译
Screenshots
Log Information
打印如下:
(venv) root@lyy-virtual-machine:/home/lyy/v2x/dandelion# uvicorn --reload --reload-dir dandelion --port 28300 --log-level debug dandelion.main:app --host 0.0.0.0
INFO: Will watch for changes in these directories: ['/home/lyy/v2x/dandelion/dandelion']
INFO: Uvicorn running on http://0.0.0.0:28300 (Press CTRL+C to quit)
INFO: Started reloader process [95578] using statreload
Process SpawnProcess-1:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/lyy/v2x/dandelion/.tox/venv/lib/python3.10/site-packages/uvicorn/subprocess.py", line 76, in subprocess_started
target(sockets=sockets)
File "/home/lyy/v2x/dandelion/.tox/venv/lib/python3.10/site-packages/uvicorn/server.py", line 60, in run
return asyncio.run(self.serve(sockets=sockets))
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/home/lyy/v2x/dandelion/.tox/venv/lib/python3.10/site-packages/uvicorn/server.py", line 67, in serve
config.load()
File "/home/lyy/v2x/dandelion/.tox/venv/lib/python3.10/site-packages/uvicorn/config.py", line 458, in load
self.loaded_app = import_from_string(self.app)
File "/home/lyy/v2x/dandelion/.tox/venv/lib/python3.10/site-packages/uvicorn/importer.py", line 21, in import_from_string
module = importlib.import_module(module_str)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/lyy/v2x/dandelion/./dandelion/main.py", line 32, in
from dandelion.api.api_v1.api import api_router
File "/home/lyy/v2x/dandelion/./dandelion/api/api_v1/api.py", line 19, in
from dandelion.api.api_v1.endpoints import (
File "/home/lyy/v2x/dandelion/./dandelion/api/api_v1/endpoints/edge_site.py", line 34, in
PORT = deps.get_gunicorn_port()
File "/home/lyy/v2x/dandelion/./dandelion/api/deps.py", line 180, in get_gunicorn_port
spec.loader.exec_module(module)
File "", line 879, in exec_module
File "", line 1016, in get_code
File "", line 1073, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/etc/dandelion/gunicorn.py'
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: