ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> activepython
activepython
Re: ActivePython 2.4.2.10, Mac OS X (Intel) problems
by Trent Mick other posts by this author
Mar 10 2006 9:27AM messages near this date
view in the new Beta List Site
ActivePython 2.4.2.10, Mac OS X (Intel) problems | Re: ActivePython 2.4.2.10, Mac OS X (Intel) problems
[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/_mysq
l.so

I'm not sure that this is the problem, though.

Trent

-- 
Trent Mick
TrentM@[...].com
_______________________________________________
ActivePython mailing list
ActivePython@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython
Thread:
Brett Powley
Trent Mick
Brett Powley
David McNeill
Trent Mick
Brett Powley
Trent Mick
Brett Powley
Trent Mick

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved