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

[Bug]: Lanchain integration isn't working due to a circular dependency #9333

Closed
ryanqbc opened this issue Jun 11, 2024 · 1 comment · Fixed by #9342
Closed

[Bug]: Lanchain integration isn't working due to a circular dependency #9333

ryanqbc opened this issue Jun 11, 2024 · 1 comment · Fixed by #9342
Assignees
Labels
bug Something isn't working

Comments

@ryanqbc
Copy link

ryanqbc commented Jun 11, 2024

Short description of current behavior

Unable to install langchain integration through the GUI. Installing through PIP completes but leaves the install option with an unknown error.

"cannot import name 'SessionController' from partially initialized module 'mindsdb.api.executor.controllers' (most likely due to a circular import) (/mindsdb/./mindsdb/api/executor/controllers/init.py)"

When trying to create a ml_engine with the integration in this state throws an error:

"Unfortunately, this integration cannot be used right now."

Video or screenshots

No response

Expected behavior

No response

How to reproduce the error

Install using the latest docker image version and look under integrations for langchain.

Anything else?

No response

@ryanqbc ryanqbc added the bug Something isn't working label Jun 11, 2024
@MinuraPunchihewa MinuraPunchihewa self-assigned this Jun 13, 2024
@chandrevdw31
Copy link
Contributor

User is also getting the below error 1 validation error for ChatOpenAI __root__ Did not find openai_api_key, please add an environment variable OPENAI_API_KEYwhich contains it, or passopenai_api_key as a named parameter. (type=value_error) "

Slack thread: https://mindsdbcommunity.slack.com/archives/C01S2T35H18/p1718264201554679

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants