Sunday, November 18, 2018

Fixed: ImportError: No module named utilities.common.tools

Problem:

File "/usr/bin/mysqldiff", line 28, in <module>
from mysql.utilities.common.tools import check_python_version
ImportError: No module named utilities.common.tools

Solution:


The basic problem is that the utilities and the connector refer to a different path for some packages. The workaround is to symlink one to the other:

ln -s /usr/lib/python2.7/site-packages/mysql/utilities /usr/lib64/python2.7/site-packages/mysql/utilities

https://bugs.mysql.com/bug.php?id=88376