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

When testing researcher.py, there is a BUG ModuleNotFoundError: No module named 'sparkai', hoping to have a big boss to solve the confusion #1697

Open
1729256800 opened this issue Feb 17, 2025 · 1 comment

Comments

@1729256800
Copy link

I have tried pip install sparkai, but this only results in missing sparkai.core
That seems to be the main problem spark_api.py,but I use the moonshot

Traceback (most recent call last):
File "D:\Code\python\pycharm\MetaGPT\metagpt\roles\researcher.py", line 13, in
from metagpt.actions import Action, CollectLinks, ConductResearch, WebBrowseAndSummarize
File "D:\Code\python\pycharm\MetaGPT\metagpt\actions_init_.py", line 10, in
from metagpt.actions.action import Action
File "D:\Code\python\pycharm\MetaGPT\metagpt\actions\action.py", line 15, in
from metagpt.actions.action_node import ActionNode
File "D:\Code\python\pycharm\MetaGPT\metagpt\actions\action_node.py", line 22, in
from metagpt.llm import BaseLLM
File "D:\Code\python\pycharm\MetaGPT\metagpt\llm.py", line 11, in
from metagpt.context import Context
File "D:\Code\python\pycharm\MetaGPT\metagpt\context.py", line 16, in
from metagpt.provider.base_llm import BaseLLM
File "D:\Code\python\pycharm\MetaGPT\metagpt\provider_init_.py", line 16, in
from metagpt.provider.spark_api import SparkLLM
File "D:\Code\python\pycharm\MetaGPT\metagpt\provider\spark_api.py", line 4, in
from sparkai.core.messages import _convert_to_message, convert_to_messages
ModuleNotFoundError: No module named 'sparkai'

@1729256800
Copy link
Author

找到问题了是包没安装对,可以参考requirement.txt文件,还得更改一下安装路径字数上限

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

1 participant