I have an import problem after installation of MySQLdb:
I've seen similar threads for this problem on a windows os but unfortunately not mac.
The problem is as follows:
Python 2.4.4 (#1, Oct 18 2006, 10:34:39)
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import MySQLdb
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File #"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/MySQLdb/init.py", line #27, in ?
import _mysql
ImportError: Inappropriate file type for dynamic loading
I assume its trying to import the binary file _mysql.so in site_packages.
I know there is a similar error in windows where the actual mysql version becomes a problem.
The current version that i have is:
mysql +> mysql Ver 14.12 Distrib 5.0.37, for apple-darwin8.6.0 (powerpc) using readline 5.0
MySQLdb +> revision = """$Revision: 1.37 $"""[11:-2]
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I have an import problem after installation of MySQLdb:
I've seen similar threads for this problem on a windows os but unfortunately not mac.
The problem is as follows:
Python 2.4.4 (#1, Oct 18 2006, 10:34:39)
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import MySQLdb
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File #"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/MySQLdb/init.py", line #27, in ?
import _mysql
ImportError: Inappropriate file type for dynamic loading
I assume its trying to import the binary file _mysql.so in site_packages.
I know there is a similar error in windows where the actual mysql version becomes a problem.
The current version that i have is:
mysql +> mysql Ver 14.12 Distrib 5.0.37, for apple-darwin8.6.0 (powerpc) using readline 5.0
MySQLdb +> revision = """$Revision: 1.37 $"""[11:-2]