MySQL Forums
Forum List  »  Connector/Python

ImportError: module does not define init function (init_mysql)
Posted by: joel maranhao
Date: June 10, 2008 08:40PM

Hi,

Environment: Mac OS X Leopard

Server version: 5.0.51b MySQL Community Server (GPL)

Downloaded MySQL-Python 1.2.2

Compiled and and installed fine after applying some recommendations from another thread.

I get this error when I try to use MySQLdb.


>>> import MySQLdb
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.macosx-10.5-i386/egg/MySQLdb/__init__.py", line 19, in <module>
File "build/bdist.macosx-10.5-i386/egg/_mysql.py", line 7, in <module>
File "build/bdist.macosx-10.5-i386/egg/_mysql.py", line 6, in __bootstrap__
ImportError: dynamic module does not define init function (init_mysql)
>>>


any ideas out there?

cheers,

joel

Options: ReplyQuote


Subject
Written By
Posted
ImportError: module does not define init function (init_mysql)
June 10, 2008 08:40PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.