Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

import MySQLdb fails with undefined symbol: SSL_get_error #379

Copy link
Copy link
Closed
@EarthenSky

Description

@EarthenSky
Issue body actions

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.