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

ImportError in run_flow.py #915

Closed
yingdongucas opened this issue Mar 23, 2025 · 0 comments
Closed

ImportError in run_flow.py #915

yingdongucas opened this issue Mar 23, 2025 · 0 comments
Labels
bug Something isn't working ⭐ top bug Top bug. ⭐ top issue Top issue.

Comments

@yingdongucas
Copy link

yingdongucas commented Mar 23, 2025

Bug Description

When I ran run_flow.py with the command python run_flow.py, the following error appeared.

INFO     [browser_use] BrowserUse logging setup complete with level info
INFO     [root] Anonymized telemetry enabled. See https://docs.browser-use.com/development/telemetry for more information.
Traceback (most recent call last):
  File "/Users/yingdong/Desktop/llm/OpenManus-main/run_flow.py", line 5, in <module>
    from app.flow.base import FlowType
ImportError: cannot import name 'FlowType' from 'app.flow.base' (/Users/yingdong/Desktop/llm/OpenManus-main/app/flow/base.py)

Bug solved method

I replaced the following import:

from app.flow.base import FlowType

with:

from app.flow.flow_factory import FlowType.

This resolved the issue.

Environment information

  • Python version: 3.12
  • Installation method: pip install -r requirements.txt

Extra information

No response

@yingdongucas yingdongucas added the bug Something isn't working label Mar 23, 2025
@github-actions github-actions bot added the ⭐ top bug Top bug. label Mar 23, 2025
@github-actions github-actions bot added the ⭐ top issue Top issue. label Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ⭐ top bug Top bug. ⭐ top issue Top issue.
Projects
None yet
Development

No branches or pull requests

2 participants