langflow icon indicating copy to clipboard operation
langflow copied to clipboard

Can't query SQL db, can't pickle 'module' object

Open ATL64 opened this issue 2 years ago • 2 comments

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

Screen Shot 2023-04-27 at 7 55 05 PM

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.

ATL64 avatar Apr 27 '23 19:04 ATL64

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.

ogabrielluiz avatar Apr 27 '23 20:04 ogabrielluiz

Can you upload your flow document so we can reproduce the error

gruckion avatar May 24 '23 14:05 gruckion

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.

stale[bot] avatar Jul 08 '23 15:07 stale[bot]