Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: No module named connector.conversion

I'm very new to mySQL and just installed it on my Mac (OS 10.6.8). When I try to connect with the database through Terminal, I get this message:

Last login: Tue Jun 17 10:42:23 on console mysqluc -e "help utilities" GEdit-2:~ Eric$ mysqluc -e "help utilities" Traceback (most recent call last): File "/bin/mysqluc", line 23, in from mysql.utilities.common.options import license_callback, UtilitiesParser File "/Library/Python/2.6/site-packages/mysql/utilities/common/options.py", line 35, in from mysql.connector.conversion import MySQLConverter ImportError: No module named connector.conversion

After reading in this and other forums, I installed:

mySQL-connector-python 1.2.2

I also added this path:

PATH=/usr/local/git/bin:/usr/local/mysql/bin:$PATH

But, nothing has helped.

I have also tried to install:

mySQL-connector-odbc 5.3.2

but, the installation fails.


Any help would be greatly appreciated.

Eric

like image 264
user3749020 Avatar asked Jun 17 '14 14:06

user3749020


1 Answers

From Can't run MySql Utilities:

MYSQL Utilities assumes that the MySQL Connector for Python has been installed. If you install it (http://dev.mysql.com/downloads/connector/python/), MySQL Utilities should run OK.

like image 108
user1855221 Avatar answered Oct 10 '22 07:10

user1855221