yihong0618 / xiaogpt

Play ChatGPT and other LLM with Xiaomi AI Speaker
MIT License
5.85k stars 815 forks source link

import error when running `xiaogpt.py` #522

Closed xiyu23 closed 1 month ago

xiyu23 commented 1 month ago

Environment: windows 10 shell: bash

$ py xiaogpt.py --hardware L06A --use_chatgpt_api
Traceback (most recent call last):
  File "D:\code\....\....\xiaogpt\xiaogpt.py", line 18, in <module>
    from xiaogpt.bot import get_bot
  File "D:\code\....\....\xiaogpt\xiaogpt.py", line 18, in <module>
    from xiaogpt.bot import get_bot
ModuleNotFoundError: No module named 'xiaogpt.bot'; 'xiaogpt' is not a package
xiyu23 commented 1 month ago

Closed. I forgot to install the dependecies.

# in the repo foldedr, run the following command to install deps
$ pip install -r requirements.txt
xiyu23 commented 1 month ago

Close