I switched to Python 2.7 (am running Mac OS X 10.5.8) and found that I have to re-install MySQLdb. When I did this, and tried to import MySQLdb, I find that I get the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.macosx-10.5-fat3/egg/MySQLdb/__init__.py", line 19, in <module>
File "build/bdist.macosx-10.5-fat3/egg/_mysql.py", line 7, in <module>
File "build/bdist.macosx-10.5-fat3/egg/_mysql.py", line 6, in __bootstrap__
ImportError: dynamic module does not define init function (init_mysql)
I looked this up with Google, and found that some people get this error when mySQL and the package architectures are different (64bit vs. 32bit). However, this doesn't seem to be the case for me, since I have 32bit versions of both.
Any clues?
Thanks.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.macosx-10.5-fat3/egg/MySQLdb/__init__.py", line 19, in <module>
File "build/bdist.macosx-10.5-fat3/egg/_mysql.py", line 7, in <module>
File "build/bdist.macosx-10.5-fat3/egg/_mysql.py", line 6, in __bootstrap__
ImportError: dynamic module does not define init function (init_mysql)
I looked this up with Google, and found that some people get this error when mySQL and the package architectures are different (64bit vs. 32bit). However, this doesn't seem to be the case for me, since I have 32bit versions of both.
Any clues?
Thanks.