-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I've recently gotten back into local xaibo dev, and following the guide, after making updates to the ui side, I ran the xaibo dev from the root project.
https://xaibo.ai/how-to/contribute/contributing/?h=local+dev#running-a-xaibo-instance
And ran into this error:
uv run xaibo dev
Traceback (most recent call last):
File "/home/fahreza/Github/xaibo-test/.venv/bin/xaibo", line 10, in <module>
sys.exit(main())
File "/home/fahreza/Github/xaibo-test/src/xaibo/cli/__init__.py", line 534, in main
args.func(args, unknown_args)
File "/home/fahreza/Github/xaibo-test/src/xaibo/cli/__init__.py", line 488, in dev
server = XaiboWebServer(xaibo, ['xaibo.server.adapters.OpenAiApiAdapter'],'./agents', '127.0.0.1', 9001, True)
TypeError: 'NoneType' object is not callable
Adding a few debuggers show this:
uv run xaibo dev
DEBUG: Failed to import XaiboWebServer: No module named 'fastapi'
Traceback (most recent call last):
File "/home/fahreza/Github/xaibo-test/src/xaibo/cli/__init__.py", line 15, in <module>
from xaibo.server.web import XaiboWebServer
File "/home/fahreza/Github/xaibo-test/src/xaibo/server/web.py", line 1, in <module>
from fastapi import FastAPI
ModuleNotFoundError: No module named 'fastapi'
Error: XaiboWebServer is not available.
The webserver dependencies are required for 'xaibo dev'.
Install them with: uv add xaibo[webserver]
There's a few things to take from here:
- It seems like without the webserver installed, xaibo can't be ran at all? While I understand the concept of modularity, fastapi seems like a core package to have if without it, xaibo itself can't be ran.
- The error wasn't immediately obvious without logs.
- slightly minor but thought to report it - the option to install it wasn't presented when running uv run xaibo dev without a venv active. I assume it's expected to work like this, but it currently breaks because some packages (eg the fastapi) aren't present.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels