Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: catching classes that do not inherit from BaseException is not allowed #21269

Open
5 tasks done
musakhawaja opened this issue May 3, 2024 · 2 comments
Open
5 tasks done
Labels
🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature 🔌: neo4j Primarily related to Neo4j integrations

Comments

@musakhawaja
Copy link

Checked other resources

  • I added a very descriptive title to this issue.
  • I searched the LangChain documentation with the integrated search.
  • I used the GitHub search to find a similar question and didn't find it.
  • I am sure that this is a bug in LangChain rather than my code.
  • The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code

from langchain_community.graphs import Neo4jGraph
url = "neo4j+s://..."
username ="neo4j"
password = ""
graph = Neo4jGraph(
    url=url,
    username=username,
    password=password
)

Error Message and Stack Trace (if applicable)

Exception ignored in: <function Driver.del at 0x7dee71153b00>
Traceback (most recent call last):
File "/home/musa/anaconda3/lib/python3.11/site-packages/neo4j/_sync/driver.py", line 525, in del
File "/home/musa/anaconda3/lib/python3.11/site-packages/neo4j/_sync/driver.py", line 609, in close
TypeError: catching classes that do not inherit from BaseException is not allowed

Description

I am trying to connect to my neo4j aura database but can't seem to get it to work. Any help will be appreciated

System Info

langchain==0.1.17
langchain-community==0.0.36
langchain-core==0.1.50
langchain-experimental==0.0.57
langchain-openai==0.1.6
langchain-pinecone==0.0.3
langchain-text-splitters==0.0.1
langchainhub==0.1.15

OS: Ubuntu

@dosubot dosubot bot added 🔌: neo4j Primarily related to Neo4j integrations 🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature labels May 3, 2024
@sgautam666
Copy link

I am experiencing the same issue. I am running a simple vector retriever with langchain.
In the jupyter notebook it runs fine. When I execute with a script, it's throwing this error.

@JayLiu7319
Copy link

I am experiencing the same issue. I am running a simple vector retriever with langchain. In the jupyter notebook it runs fine. When I execute with a script, it's throwing this error.

same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature 🔌: neo4j Primarily related to Neo4j integrations
Projects
None yet
Development

No branches or pull requests

3 participants