MySQLdb for 3.6 on RHEL7

Larry Martell larry.martell at gmail.com
Tue Aug 13 09:53:08 EDT 2019


On Tue, Aug 13, 2019 at 9:43 AM Inada Naoki <songofacandy at gmail.com> wrote:
>
> Why do you use RHEL?

That is not my choice.

> I believe people use RHEL to get support from Red Hat, instead of community support.

I do not believe Red Hat supports this package.

>
> 2019年8月13日(火) 22:32 Larry Martell <larry.martell at gmail.com>:
>>
>> I am trying to install MySQLdb (https://pypi.org/project/mysqlclient/)
>> for python3.6 on RHEL7.
>>
>> When I import it, it fails:
>>
>> # python3.6
>> Python 3.6.8 (default, Jun 11 2019, 15:15:01)
>> [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
>> Type "help", "copyright", "credits" or "license" for more information.
>> >>> import MySQLdb
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in <module>
>>   File "/usr/local/lib64/python3.6/site-packages/mysqlclient-1.4.4-py3.6-linux-x86_64.egg/MySQLdb/__init__.py",
>> line 18, in <module>
>>     from . import _mysql
>> ImportError: /usr/local/lib64/python3.6/site-packages/mysqlclient-1.4.4-py3.6-linux-x86_64.egg/MySQLdb/_mysql.cpython-36m-x86_64-linux-gnu.so:
>> undefined symbol: mysql_kill
>>
>> Has anyone seen and resolved this?
>> --
>> https://mail.python.org/mailman/listinfo/python-list



More information about the Python-list mailing list