[Pythonmac-SIG] py2app version mismatch while including a library built with Pyrex

Christopher Barker Chris.Barker at noaa.gov
Mon Jun 30 19:07:11 CEST 2008


Derrick Hendricks wrote:

> Here's the current setup of my machine.  I'm using the python 2.4 that I 
> got from python.org <http://python.org> and py2app.  In the Makefile I 
> use to compile the library, I use python 2.4. 

This is probably the source of your problem -- you really want to use 
distutils to compile your extensions -- it will get all this right, and 
probably avoid your problem.

> I have a .py program that I've run to check the library.  When run under 
> python 2.4, it executes correctly and I have no problems.  So, I'm 
> fairly confident that the library it's being created using python 2.4.  

Well, somewhere in there you probably are somehow running py2app with a 
different python that you're building your extension against.

How many version of python do you have installed? you might try cleaning 
out any extras (build-from-tarball, macports, fink, etc...)

-Chris



-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov


More information about the Pythonmac-SIG mailing list