Skip to content

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

Description

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'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions