Zitat von: bertl am 07 Mai 2026, 20:49:081) Der Aufruf von "FULLY_Start" im "FULLY_Set" ist falsch geschrieben - "Fully_Start"Danke für den Hinweis und Sorry für den Typo!
((.venv) ) soundcork@pi3:~/soundcork/soundcork $ fastapi run main.py
FastAPI Starting production server 🚀
Searching for package file structure from directories with __init__.py files
2026-05-07 22:42:18,863 [soundcork.datastore] INFO: Initiating Datastore
2026-05-07 22:42:19,034 [soundcork.datastore] INFO: Initiating Datastore
2026-05-07 22:42:20,059 [soundcork.datastore] INFO: Initiating Datastore
Importing from /home/soundcork/soundcork
module 📁 soundcork
├── 🐍 __init__.py
└── 🐍 main.py
code Importing the FastAPI app object from the module with the following code:
from soundcork.main import app
app Using import string: soundcork.main:app
server Server started at http://0.0.0.0:8000
server Documentation at http://0.0.0.0:8000/docs
Logs:
INFO Started server process [67449]
2026-05-07 22:42:25,142 [uvicorn.error] INFO: Started server process [67449]
INFO Waiting for application startup.
2026-05-07 22:42:25,146 [uvicorn.error] INFO: Waiting for application startup.
INFO Application startup complete.
2026-05-07 22:42:25,150 [uvicorn.error] INFO: Application startup complete.
INFO Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
2026-05-07 22:42:25,156 [uvicorn.error] INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO 192.168.178.48:61900 - "GET /docs HTTP/1.1" 200
INFO 192.168.178.48:61900 - "GET /openapi.json HTTP/1.1" 200
INFO 192.168.178.48:61903 - "GET / HTTP/1.1" 500
ERROR Exception in ASGI application
Traceback (most recent call last):
File "/home/soundcork/soundcork/.venv/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 1002, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/soundcork/soundcork/soundcork/main.py", line 142, in read_root
for speaker in speakers.all_devices().values():
^^^^^^^^^^^^^^^^^^^^^^
File "/home/soundcork/soundcork/soundcork/ui/speakers.py", line 85, in all_devices
account_ids = self._datastore.list_accounts()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/soundcork/soundcork/soundcork/datastore.py", line 651, in list_accounts
for account_id in next(walk(self.data_dir))[1]:
^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/soundcork/soundcork/.venv/lib/python3.12/site-packages/uvicorn/protocols/http/httptools_impl.py", line 421, in run_asgi
result = await app( # type: ignore[func-returns-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/soundcork/soundcork/.venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 56, in __call__
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/soundcork/soundcork/.venv/lib/python3.12/site-packages/fastapi/applications.py", line 1159, in __call__
await super().__call__(scope, receive, send)
File "/home/soundcork/soundcork/.venv/lib/python3.12/site-packages/starlette/applications.py", line 90, in __call__
await self.middleware_stack(scope, receive, send)
File "/home/soundcork/soundcork/.venv/lib/python3.12/site-packages/starlette/middleware/errors.py", line 186, in __call__
raise exc
File "/home/soundcork/soundcork/.venv/lib/python3.12/site-packages/starlette/middleware/errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "/home/soundcork/soundcork/.venv/lib/python3.12/site-packages/starlette/middleware/cors.py", line 88, in __call__
await self.app(scope, receive, send)...
define UI FHEMWEB 8083 global
define allowedUI allowed
attr allowedUI validFor UI
attr allowedUI allowedCommands ,
define dummy Dummy