openui icon indicating copy to clipboard operation
openui copied to clipboard

ModuleNotFoundError: No module named 'openui.db'

Open hiptodude2 opened this issue 1 year ago • 1 comments

error:

PS C:\Users\alright\Desktop\that is him> python -m openui Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in run_code File "C:\Users\alright\anaconda3\Lib\site-packages\openui_main.py", line 3, in from . import server File "C:\Users\alright\anaconda3\Lib\site-packages\openui\server.py", line 30, in from .session import DBSessionStore, SessionData File "C:\Users\alright\anaconda3\Lib\site-packages\openui\session.py", line 5, in from .db.models import Session, ensure_migrated, Usage ModuleNotFoundError: No module named 'openui.db'

how could you fix it?

hiptodude2 avatar Apr 03 '24 11:04 hiptodude2

Hmm, this is odd. You might be able to add openui.db to this list and rebuild but not sure you want to bark up that tree. The other thing to do would be to run the following and see if this works:

pip uninstall openui
cd ./backend
pip install -e .
python -m openui

Let me know if you're still getting the error, seems like it's something funky with your python environment.

vanpelt avatar Apr 03 '24 19:04 vanpelt