-
Notifications
You must be signed in to change notification settings - Fork 1k
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
webserver_1 | NameError: name '_mysql' is not defined #54
Comments
Same thing. is this issue solved already? |
I have this same issue. I have mySQL 8.0.26, Postgres 12, Kubernetes and SQLite. I installed those packages manually and still have this issue. I have used mySQL for other projects before and never got this issue, however I'm a novice at using Docker containers. |
I followed the instructions on a separate issue (linked below) and they helped me with the _msql issue. Roughly the fix was making sure apache-airflow was installed, updating the puckel/docker-airflow from version 1.10.1 to 1.10.9, and updating sqlalchemy from 1.2.0 to 1.3.0. The exact docker-compose-yml is available in the comment linked below. |
correct, this #51 (comment) as well as this #52 (comment) are the same fixes to the same issue. In case @tuanavu is still around, you can probable close these two issues after updating that docker-compose file. |
I'm still having this issue even though I have made the following updates:
Are those the only two things to update? I also have apache-airflow installed. I'm running docker-compose up from the terminal within VS code - is that the correct approach? Do I need to install mySQL? |
Upgrading docker compose worked for me. If you look at https://github.com/puckel/docker-airflow, they state that docker-compose 1.29.1 is required. I had 1.29.0, and upgraded and that fixed the problem. I then ran into the wtforms issue, which is solved by explicitly putting wtforms 2.3.3 in the docker-compose.yml file. |
I was having the same _mysql is not defined error as above so I updated the docker-compose.yml file as mentioned above. It fixed the mysql issue but another one came up...ImportError: cannot import name 'soft_unicode' from 'markupsafe', I noticed the python version running is now 3.7 instead of python3.6 from before the .yml file update. Did anyone encounter this as well and how did you fix the issue? I have the following: |
Fo fix this issue, please add:
Works for me. All the best! |
I can confirm this! Be careful to change 1.10.1 to 1.10.9 at both positions
Docker version 20.10.7, docker-compose version 1.29.2 |
I am getting the same error: |
Hi, thanks for the recommendations. I have combined two cases to solve this problem after reading your instructions, you can just follow them here. If you encountered the _mysql problem, please don't forget to download apache-airflow using the keywords "pip install apache-airflow" or depending on the terminal you're using. After that update the docker-compose.yml file from the cloned repository. version: '3' webserver: After this, don't forget to close the terminal first, save the .yml file and open the terminal again. Just to be sure HAHA. It works 100% |
Worked for me, thanks, maintain the indentation. |
webserver_1 | NameError: name '_mysql' is not defined
The text was updated successfully, but these errors were encountered: