Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'sparkai.llm' #74

Closed
long3012218885 opened this issue Dec 29, 2024 · 2 comments
Closed

ModuleNotFoundError: No module named 'sparkai.llm' #74

long3012218885 opened this issue Dec 29, 2024 · 2 comments

Comments

@long3012218885
Copy link

F:\python_obj\wx-bot\NGCBot>uv run main.py
Traceback (most recent call last):
File "main.py", line 1, in
from BotServer.MainServer import MainServer
File "F:\python_obj\wx-bot\NGCBot\BotServer\MainServer.py", line 1, in
from BotServer.MsgHandleServer.FriendMsgHandle import FriendMsgHandle
File "F:\python_obj\wx-bot\NGCBot\BotServer\MsgHandleServer\FriendMsgHandle.py", line 2, in
from ApiServer.AiServer.AiDialogue import AiDialogue
File "F:\python_obj\wx-bot\NGCBot\ApiServer\AiServer\AiDialogue.py", line 5, in
from sparkai.llm.llm import ChatSparkLLM, ChunkPrintHandler
ModuleNotFoundError: No module named 'sparkai.llm'

@long3012218885
Copy link
Author

image
这是vscode代码
image
这个是依赖版本,python版本是3.8.16
系统:win11

@ngc660sec
Copy link
Owner

F:\python_obj\wx-bot\NGCBot>uv run main.py Traceback (most recent call last): File "main.py", line 1, in from BotServer.MainServer import MainServer File "F:\python_obj\wx-bot\NGCBot\BotServer\MainServer.py", line 1, in from BotServer.MsgHandleServer.FriendMsgHandle import FriendMsgHandle File "F:\python_obj\wx-bot\NGCBot\BotServer\MsgHandleServer\FriendMsgHandle.py", line 2, in from ApiServer.AiServer.AiDialogue import AiDialogue File "F:\python_obj\wx-bot\NGCBot\ApiServer\AiServer\AiDialogue.py", line 5, in from sparkai.llm.llm import ChatSparkLLM, ChunkPrintHandler ModuleNotFoundError: No module named 'sparkai.llm'

卸载sparkai以及spark-ai-python,重装spark-ai-python
pip install spark-ai-python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants