Closed
Description
Found this error while using django but managed to isolate it to mysqlclient.
After installing mysqlclient using pip it throws the following error:
Python 3.7.4 (default, Jul 10 2019, 21:14:36)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux
>>> import MySQLdb
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.7/site-packages/MySQLdb/__init__.py", line 18, in <module>
from . import _mysql
ImportError: /usr/local/lib/python3.7/site-packages/MySQLdb/_mysql.cpython-37m-x86_64-linux-gnu.so: undefined symbol: SSL_get_error
>>>
I inspected the file _mysql.cpython-37m-x86_64-linux-gnu.so
using nm and it seems to have a lot of undefined symbols. Compilation error?
[user@n]$ nm -u /usr/local/lib/python3.7/site-packages/MySQLdb/_mysql.cpython-37m-x86_64-linux-gnu.so
U access@@GLIBC_2.2.5
U __assert_fail@@GLIBC_2.2.5
...
U SSL_get_current_cipher
U SSL_get_error
U SSL_get_ex_data
...
U X509_STORE_set_flags
U X509_verify_cert_error_string
mysqlclient version 1.4.2.post1
Centos 7
Mariadb 10.4.7
Metadata
Metadata
Assignees
Labels
No labels