Stack Oveflow running Python using pythonnet on .Net #2554
Unanswered
luoxisteven
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have posted this on https://stackoverflow.com/questions/79439201/stack-oveflow-running-python-and-langchain-using-pythonnet-on-net.
I'm trying to run my Python script with LangChain on .NET using PythonNet and Python.Runtime, but I keep encountering an overflow error.
Issue:
The overflow occurs at different locations depending on the vector store I use:
When using Chroma or FAISS as the vector store, the overflow occurs in:
When using InMemoryVectorStore, the overflow happens when creating the vector store:
and
pass without an overflow error.
When I run the same Python script directly on a Python interpreter, everything works fine without any errors, regardless of whether I use Chroma, FAISS, or InMemoryVectorStore.
What I've Tried:
My guess is that .NET imposes a memory or stack limit when running a Python script using PythonNet.
My question is:
Error Message:
Beta Was this translation helpful? Give feedback.
All reactions