crewAIInc / crewAI-examples

2.63k stars 977 forks source link

Issue with imports #81

Closed anmolgupta321 closed 1 week ago

anmolgupta321 commented 5 months ago

crewai-beginner % python main.py
Traceback (most recent call last): File "/Users/anmolgupta/Desktop/crewai-beginner/main.py", line 4, in from agents import StockAnalysisAgents File "/Users/anmolgupta/Desktop/crewai-beginner/agents.py", line 3, in from tools.browser_tools import BrowserTools ModuleNotFoundError: No module named 'tools'

mohsriach commented 5 months ago
  1. Ensure you have downloaded the package (for tools you can also use) -pip install 'crewai[tools]'
  2. Make sure your file structure looks like the following -
    
    crewai-beginner/
    |-- main.py
    |-- agents.py
    |-- tools
     |-- browser_tools.py

you need to have a '`tools`' folder that contains `.py` files from where you do the import. 
github-actions[bot] commented 1 week ago

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 1 week ago

This issue was closed because it has been stale for 5 days with no activity.