joaomdmoura / crewAI-examples

2.22k stars 799 forks source link

Issue with imports #81

Open anmolgupta321 opened 3 months ago

anmolgupta321 commented 3 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 2 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.