You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Juvelir97 (via GitHub)" <gi...@apache.org> on 2023/02/08 08:02:33 UTC
[GitHub] [airflow] Juvelir97 opened a new issue, #29418: ImportError: libmysqlclient.so.20
Juvelir97 opened a new issue, #29418:
URL: https://github.com/apache/airflow/issues/29418
### Apache Airflow version
Other Airflow 2 version (please specify below)
### What happened
Hello,
Trying to connect Airflow-2.4.3 to Mysql 8.0.29-1 Database
Using the string inside airflow.cfg
sql_alchemy_conn = mysql+mysqldb://USER:PASS@HOST:3306/airflow
running airflow commands (e,g, airflow db init or airflow config get-value database sql_alchemy_conn)we are facing the issue:
Traceback (most recent call last):
File "/opt/mapr/airflow/airflow-2.4.3/build/env/lib/python3.9/site-packages/MySQLdb/__init__.py", line 18, in <module>
from . import _mysql
ImportError: libmysqlclient.so.20: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/mapr/airflow/airflow-2.4.3/bin/airflow", line 4, in <module>
from airflow.__main__ import main
File "/opt/mapr/airflow/airflow-2.4.3/build/env/lib/python3.9/site-packages/airflow/__init__.py", line 46, in <module>
settings.initialize()
File "/opt/mapr/airflow/airflow-2.4.3/build/env/lib/python3.9/site-packages/airflow/settings.py", line 571, in initialize
configure_adapters()
File "/opt/mapr/airflow/airflow-2.4.3/build/env/lib/python3.9/site-packages/airflow/settings.py", line 436, in configure_adapters
import MySQLdb.converters
File "/opt/mapr/airflow/airflow-2.4.3/build/env/lib/python3.9/site-packages/MySQLdb/__init__.py", line 24, in <module>
version_info, _mysql.version_info, _mysql.__file__
NameError: name '_mysql' is not defined
Can you please assist?
Thanks in advance
### What you think should happen instead
_No response_
### How to reproduce
_No response_
### Operating System
RHEL 8.4
### Versions of Apache Airflow Providers
_No response_
### Deployment
Other
### Deployment details
Was deployed as part of Mapr cluster
### Anything else
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk closed issue #29418: ImportError: libmysqlclient.so.20
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk closed issue #29418: ImportError: libmysqlclient.so.20
URL: https://github.com/apache/airflow/issues/29418
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] boring-cyborg[bot] commented on issue #29418: ImportError: libmysqlclient.so.20
Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on issue #29418:
URL: https://github.com/apache/airflow/issues/29418#issuecomment-1422186172
Thanks for opening your first issue here! Be sure to follow the issue template!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org