Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Requirements and Fix: Add requirements.txt and update imports for LangChain 0.2.0+imports#284

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
douha1995 wants to merge2 commits intocrewAIInc:main
base:main
Choose a base branch
Loading
fromdouha1995:requirements-and-imports

Conversation

douha1995
Copy link

Summary

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

Changes

  • Addedrequirements.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
  • Patchedagents.py andmain.py to use the updated imports.

Motivation

Runningpython main.py in the current repo results in:

  • ImportError: Could not import ddgs python package
  • MultipleLangChainDeprecationWarning messages

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

Testing

Steps tested locally:

python -m venv venvsource venv/bin/activate# or venv\Scripts\activate on Windowspip install -r requirements.txtpython 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.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@douha1995

[8]ページ先頭

©2009-2025 Movatter.jp