Skip to content

ImportError: cannot import name 'tool' from 'crewai_tools' due to dependency conflicts and missing system dependencies #2

@ayeshaaask

Description

@ayeshaaask

I am trying to set up the TravelPlanner-streamlit project, but I am facing multiple issues related to dependencies and system requirements.

  1. ImportError in crewai_tools
    When running the project, I get the following error:
    ImportError: cannot import name 'tool' from 'crewai_tools' (E:\TravelPlanner-streamlit\TravelPlanner-streamlit\venv\lib\site-packages\crewai_tools\__init__.py)
    This suggests that either:
    crewai_tools does not have the required tool module, or
    The installed version of crewai_tools is outdated/incompatible.

  2. Dependency Conflicts
    When installing dependencies, I see the following conflicts:
    crewai 0.100.1 requires chromadb>=0.5.23, but you have chromadb 0.4.24 which is incompatible. instructor 1.7.2 requires tenacity<10.0.0,>=9.0.0, but you have tenacity 8.5.0 which is incompatible. langchain-experimental 0.3.4 requires langchain-community<0.4.0,>=0.3.0, but you have langchain-community 0.0.38 which is incompatible.
    This means that the requirements.txt file might contain outdated or conflicting versions.

  3. pysqlite3 Installation Failure
    When trying to install pysqlite3, I get this error:
    C:\Users\Ayeshashaikh\AppData\Local\Programs\Python\Python310\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
    This suggests:
    The package requires compilation using Visual Studio Build Tools, but my system is missing io.h.
    Running winget install Microsoft.VisualStudio.2022.BuildTools did not resolve the issue.
    Please look into these issues and let me know if there are any workarounds or updates required for a successful setup. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions