langflow
langflow copied to clipboard
Can't query SQL db, can't pickle 'module' object
Describe the bug Can't connect to redshift database
Browser and Version
- Chrome 112
To Reproduce Steps to reproduce the behavior: Make the flow as in the screenshot using the SQL Database utility, and ask a question about the DB. I get a "cannot pickle 'module' object" error.
Screenshots
Additional context Found this issue in Langchain, which was fixed on their side already: https://github.com/hwchase17/langchain/issues/1721 Maybe this will be fixed if we use a more recent Langchain version in Langflow build.
We are updating LangChain version to be <0.1.0 so we can get the fixes ASAP.
I'm not sure this issue is related to LangChain though. I'd have to check this example because we might be pickling in the backend.
Can you upload your flow document so we can reproduce the error
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.