salt-pack icon indicating copy to clipboard operation
salt-pack copied to clipboard

MySQL Python2.7 packages not in repo for EL6

Open replicant0wnz opened this issue 8 years ago • 0 comments

The MySQL Python2.7 packages are not included for EL6 which causes the mysql_user and other functions to error out with the following:

Reason: 'mysql_user' virtual returned False

Installing via pip2.7 barfed out even with GCC installed.

I was able to install the python27-MySQL-python-1.2.3-10.sc1.el6.x86_64 package from CentOS and then manually copy over the following:

/opt/rh/python27/root/usr/lib64/python2.7/site-packages/_mysql_exceptions.pyc /opt/rh/python27/root/usr/lib64/python2.7/site-packages/_mysql_exceptions.pyo /opt/rh/python27/root/usr/lib64/python2.7/site-packages/_mysql_exceptions.py /opt/rh/python27/root/usr/lib64/python2.7/site-packages/_mysql.so /opt/rh/python27/root/usr/lib64/python2.7/site-packages/MySQLdb

to the /usr/lib64/python2.7/site-packages dir to fix the issue.

replicant0wnz avatar Dec 21 '17 21:12 replicant0wnz