Skip to content

Conversation

@douha1995
Copy link

Summary

This PR fixes runtime errors and warnings in the starter_template crew example caused by outdated imports and missing dependencies.

Changes

  • Added requirements.txt with the following dependencies:
    • python-decouple
    • langchain
    • langchain-community
    • openai
    • duckduckgo-search
    • ddgs
    • crewai
  • Updated imports:
    • from langchain.llmsfrom langchain_community.llms
    • from langchain.toolsfrom langchain_community.tools
  • Patched agents.py and main.py to use the updated imports.

Motivation

Running python main.py in the current repo results in:

  • ImportError: Could not import ddgs python package
  • Multiple LangChainDeprecationWarning messages

With these changes, the project runs correctly out-of-the-box.

Testing

Steps tested locally:

python -m venv venv
source venv/bin/activate   # or venv\Scripts\activate on Windows
pip install -r requirements.txt
python main.py

- Added requirements.txt with correct dependencies (python-decouple, langchain, langchain-community, openai, duckduckgo-search, ddgs, crewai).
- Updated agents.py and main.py to replace deprecated imports with langchain-community equivalents.
- Ensured project runs without ImportError or DeprecationWarnings.
@github-actions
Copy link

This PR is stale because it has been open for 45 days with no activity.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant