-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Error MissingGreenlet: greenlet_spawn has not been called when using MySQL #5495
Comments
The "MissingGreenlet: greenlet_spawn has not been called" error typically occurs when using SQLAlchemy's async features with an incompatible DBAPI or when the calling pattern does not allow for the use of the Here are some steps you can take to resolve this issue:
If these steps do not resolve the issue, you may need to look into the specific parts of the code where the error is occurring to ensure that the async context is correctly established and maintained throughout the database operations. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
LANGFLOW_DATABASE_URL is mysql+aiomysql://xxxx:[email protected]:3306/langflow @dosu |
Hey @liquor96! It looks like you're sharing your database URL setup. While I can help with technical questions and bug fixes, I'm not equipped to handle this type of request. If you think I should be able to assist with this, feel free to reach out to the Dosu Team. They'll be happy to hear your feedback! 😊 To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Hi @liquor96, how are you? Have you ever solved this problem? |
I tried commenting out this line(await database_service.run_migrations(fix=fix_migration))in langflow\services\database\util.py line 37, because the migration is synchronous.then run success @MarceloNunesAlves |
Bug Description
If I set the LANGFLOW_DATABASE_URL start with "mysql+aiomysql://",err MissingGreenlet: greenlet_spawn has not been called; can't call await_only() here. Was IO attempted in an unexpected place? (Background on this error at: https://sqlalche.me/e/20/xd2s)
Reproduction
set the environment variable LANGFLOW_DATABASE_URL with "mysql+aiomysql://"。 then execute cmd python -m langflow run
Expected behavior
langflow works normallly
Who can help?
No response
Operating System
window
Langflow Version
1.1.1
Python Version
3.11
Screenshot
Flow File
No response
The text was updated successfully, but these errors were encountered: