Otheus
Otheus

Reputation: 1032

Cannot run anything from mysql-utilities: "No module named mysql.utilities.common.tools"

RedHat 6.5. Installed via RPM repos the mysql-utilities 1.3.6 and mysql-connector 1.1.6 packages. mysqlrplcheck could be executed (though I never found out if it actually worked). Then I realized that version of the suite is missing what I really need, which is mysqlrplsync. So I downloaded and installed 1.5.4 directly from Oracle. Found out mysql-connector 1.1 was too old and thus upgraded to 2.1.2 of that suite.

Now if I run any of the suites programs, I get:

Traceback (most recent call last):
  File "/usr/bin/mysqlrplcheck", line 24, in <module>
    from mysql.utilities.common.tools import check_python_version
ImportError: No module named mysql.utilities.common.tools

I think there should be a mysql.py/mysql.pyc in the <pythonlibpath>/ directory, but there is none. So is this a silly packaging error on Oracle's part?

Note: Not a duplicate of 19247867 which wasn't really answered anyway. Different environment, (significantly) different versions of the software.

Not a duplicate of 24267017 nor its referral because the connector is definitely installed. (Though that might be the problem... see my comment)

UPDATE: Possibly fixed in mysql-utilities 2.1.3. See last comment at bug report: https://bugs.mysql.com/bug.php?id=77819

Upvotes: 2

Views: 5515

Answers (1)

Padraic Cunningham
Padraic Cunningham

Reputation: 180441

For anyone getting this error on Ubuntu, installing the .deb from oracle or using apt-get did not work for me, what did work was:

wget https://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-utilities-1.5.6.tar.gz
tar -xvf mysql-utilities-1.5.6.tar.gz
cd mysql-utilities-1.5.6

sudo python2.7 setup.py install

Upvotes: 6

Related Questions