[Brett Powley wrote] > I have ActivePython 2.4.2.10 for Mac OS X (Intel) installed, and am > attempting to use MySQLdb (http://sourceforge.net/projects/mysql- > python/) 1.2.1c7. I get the following error when trying to import > the module: > > Traceback (most recent call last): > File "foobar.py", line 12, in ? > import MySQLdb > File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > site-packages/MySQLdb/__init__.py", line 19, in ? > import _mysql > ImportError: Failure linking new module: /Library/Frameworks/ > Python.framework/Versions/2.4/lib/python2.4/site-packages/_mysql.so: > Symbol not found: _mysql_get_host_info > Referenced from: /Library/Frameworks/Python.framework/Versions/2.4/ > lib/python2.4/site-packages/_mysql.so > Expected in: dynamic lookup > > This works with no problems on: > - Mac OS X (PowerPC) > - Mac OS X (Intel), using Apple's bundled version of Python > > Is this an issue with ActivePython on Intel, or is it something to do > with the way that MySQLdb is built?
That may be because you are trying to use a python built just for Intel (ActivePython) with an extension module built just for PowerPC (_mysql.so). What does this yield: file /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/_mysql.so I'm not sure that this is the problem, though. Trent -- Trent Mick [EMAIL PROTECTED] _______________________________________________ ActivePython mailing list ActivePython@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython