ModuleNotFoundError: No module named 'fastui_chat' when using the provided dev script
juananpe opened this issue · 3 comments
juananpe commented
I uninstalled fastui-chat and tried the ./dev-install.sh (rye
) way
It starts OK:
$ ./dev-install.sh
SYNC: setup .venv
Reusing already existing virtualenv
Generating production lockfile: /private/tmp/fastui-chat/requirements.lock
Generating dev lockfile: /private/tmp/fastui-chat/requirements-dev.lock
Installing dependencies
Found existing installation: fastui-chat 0.0.2
Uninstalling fastui-chat-0.0.2:
Successfully uninstalled fastui-chat-0.0.2
Looking in indexes: https://pypi.org/simple/
Obtaining file:///. (from -r /var/folders/11/phrmvr5n0js581n6rgz37gww0000gp/T/tmpx9menndl (line 1))
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... done
Preparing editable metadata (pyproject.toml) ... done
Building wheels for collected packages: fastui-chat
Building editable for fastui-chat (pyproject.toml) ... done
Created wheel for fastui-chat: filename=fastui_chat-0.0.2-py3-none-any.whl size=1648 sha256=63ba8c4a2200cb9a9ee5bacc79ec793b4fe837f665c435ce4356b48a7cc5e157
Stored in directory: /private/var/folders/11/phrmvr5n0js581n6rgz37gww0000gp/T/pip-ephem-wheel-cache-jc0g6f02/wheels/78/12/b9/db4c72ae1aebdfd866f484b59eb7b39f206b7d7d1080ae28b1
Successfully built fastui-chat
Installing collected packages: fastui-chat
Successfully installed fastui-chat-0.0.2
Done!
ACTIVATE: activate .venv
Spawning virtualenv shell from /private/tmp/fastui-chat/.venv
Leave shell with 'exit'
But when trying to run the simple_chatbot.py
example I got this error:
$ python examples/simple_chatbot.py
Traceback (most recent call last):
File "/private/tmp/fastui-chat/examples/simple_chatbot.py", line 1, in <module>
from fastui_chat import ChatUI, basic_chat_handler
ModuleNotFoundError: No module named 'fastui_chat'
Am I doing something wrong? (first time using rye
here)
shroominic commented
Thanks for also pointing this out! Another problem I need to investigate will keep you updated!
shroominic commented
@juananpe i just updated the dev-install.sh
script and fixed the rye setup but also included the option to just use pip :)
juananpe commented
Thanks! I will try it an let you know