Open sarthakkaushik opened 2 months ago
i am also facing the same issue please someone from langchain help us on this issue
Facing the same issue.
can some one please take this up and update the issue ?
Sorry for the delay, we are aware of the issue and are working on a fix for the near future
The E2B Python SDK has removed the DataAnalysis
module, and created a separate SDK for this purpose: e2b-dev/code-interpreter. Also see e2b-dev/E2B#383. However, it doesn't appear to be a drop-in replacement, and some work will be necessary to migrate the E2BDataAnalysisTool()
and associated documentation.
Checked other resources
Example Code
!pip install --upgrade langchain e2b langchain-community
Error Message and Stack Trace (if applicable)
Error Message
_ImportError: cannot import name 'DataAnalysis' from 'e2b' (c:\Users\sarthak kaushik\OneDrive\Desktop\Test_Project_Python\e2b\myenv\Lib\site-packages\e2b__init__.py)
The above exception was the direct cause of the following exception:
ImportError: Unable to import e2b, please install with
pip install e2b
_Description
When trying to use the E2BDataAnalysisTool from the _langchain_community.tools_ module, I'm encountering an ImportError. The error suggests that the DataAnalysis class cannot be imported from the e2b package.
Expected Behavior: The E2BDataAnalysisTool should initialize without any import errors.
Additional Context I have already installed the e2b package as suggested in the error message, but the issue persists.
Possible Solution It seems that there might be a discrepancy between the expected structure of the e2b package and what's actually installed. Could there be a version mismatch or a change in the package structure that hasn't been reflected in the LangChain community tools?
System Info
System Information
Package Information