Re: [Pythonmac-SIG] Contents of Pythonmac-SIG digest vol 39, 5

2006-07-04 Thread LALOUX Martin


I use 10.3.9 and python 2.4.1. I confirm that the versions provided by

http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474&release_id=422840
(10.4 fat binaries for OSX) version
matplotlib-0.87.3-py2.4-macosx10.4.mpkg.zip 
works perfectly with numpy, scipy and numarray installed.
I was also able to install Basemap 0.9 without problem

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Universal wxPython app fails when run on second (PPC) machine

2006-07-04 Thread Ronald Oussoren


On Jul 3, 2006, at 11:08 AM, Erik Westra wrote:


Hello, pythonmac folks.

Thanks to all the hard work you guys have been doing getting Python
to run on Intel, I have a wxPython application which runs beatifully
on my MacBook Pro.  I'm using the Framework build of Python 2.4.3
under OSX 10.4.6, with the "pre-release" universal wxPython version
2.6.3.2rc2.  This works perfectly on the Intel machine, but I now
have to create a standalone version of my system which also runs on
PPC-based Macs.

I downloaded and installed Bob Ippolito's py2app, version 0.2.5 from
http://pythonmac.org/packages/py24-fat.  To my pleasant surprise it
worked first time, successfully building a standalone version of the
application which runs on the Intel machine just fine.  But when I
try to copy the app and run it on a second (PPC-based) machine, the
application crashes with the following error message:


I cannot reproduce this with the most recent version of py2app (the  
one you'll get when installing pyobjc from subversion). That also  
claims to be 0.2.5, but I don't know how different it is from the one  
in the package repository.


I've tested by building the doodle example on an intel box and then  
running it on a PPC box (that doesn't have wxPython installled).


Ronald

smime.p7s
Description: S/MIME cryptographic signature
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


[Pythonmac-SIG] Pyobjc python in objc

2006-07-04 Thread Jonathan
How does one let objc know about a python class' methods, etc. without using a nib file?  I've gotten to the point where I can build a bundle that includes a python class subclassing NSObject, but objective-c won't run any methods (other than init).  I'm guessing the tutorial that mentions adding outlets and actions in a nib file adds them so that objc knows that they're there. (?)  
The bundle loads and running NSLog(dir(theObject)) on the python side lists the method I'm trying to call from objc...  so I could easily be doing something wrong... again.  :)Cheers,-- 
Jonathan Saggaujonathansaggau.comThis amusement engaged me so much that [friends] were obliged to force me from it; and thus it is with every inclination I give into, it continues to augment, till at length it becomes so powerful, that I lose sight of everything except the favorite amusement. - Rousseau
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] build matplotlib on 10.3.9 without a bus error?

2006-07-04 Thread Bob Ippolito

On Jul 4, 2006, at 8:26 PM, Russell E Owen wrote:

> At 4:43 PM -0700 7/3/06, Bob Ippolito wrote:
>> On Jul 3, 2006, at 4:19 PM, Russell E. Owen wrote:
>>
>>> I'm trying to build on a PPC MacOS X 10.3.9 system using Python  
>>> 2.4.1,
>>> but "import pylab" gives a bus error. (This is for a python app I
>>> distribute, so I can't give up on 10.3.9 yet. Once I solve this  
>>> problem
>>> then I can redo it with static linking).
>>
>> Try running it under gdb and get a backtrace to see where it's  
>> actually crashing.
>>
>> gdb --args /usr/local/bin/python -c "import pylab"
>> r
>> bt
>
> Here is the backtrace. I suspect just the first few lines are  
> relevant, but I wasn't sure so I include the whole mess.

Looks like some problem with C++ and static initializers. No idea how  
to help you here, I suggest trying the universal build and the latest  
pylab egg.

-bob

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Pyobjc python in objc

2006-07-04 Thread Bob Ippolito

On Jul 4, 2006, at 8:42 PM, Jonathan wrote:

> How does one let objc know about a python class' methods, etc.  
> without using a nib file?
>
> I've gotten to the point where I can build a bundle that includes a  
> python class subclassing NSObject, but objective-c won't run any  
> methods (other than init).  I'm guessing the tutorial that mentions  
> adding outlets and actions in a nib file adds them so that objc  
> knows that they're there. (?)
>
> The bundle loads and running NSLog(dir(theObject)) on the python  
> side lists the method I'm trying to call from objc...  so I could  
> easily be doing something wrong... again.  :)

Normally this is done by writing the abstract base class in Objective- 
C and subclassing it from Python. You can also do it by adding a  
category on NSObject. It's not possible to otherwise describe a class  
in Objective-C that isn't available at link time, because you'll get  
a linker error.

-bob


___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] build matplotlib on 10.3.9 without a bus error?

2006-07-04 Thread Ronald Oussoren


On Jul 5, 2006, at 6:04 AM, Bob Ippolito wrote:



On Jul 4, 2006, at 8:26 PM, Russell E Owen wrote:


At 4:43 PM -0700 7/3/06, Bob Ippolito wrote:

On Jul 3, 2006, at 4:19 PM, Russell E. Owen wrote:


I'm trying to build on a PPC MacOS X 10.3.9 system using Python
2.4.1,
but "import pylab" gives a bus error. (This is for a python app I
distribute, so I can't give up on 10.3.9 yet. Once I solve this
problem
then I can redo it with static linking).


Try running it under gdb and get a backtrace to see where it's
actually crashing.

gdb --args /usr/local/bin/python -c "import pylab"
r
bt


Here is the backtrace. I suspect just the first few lines are
relevant, but I wasn't sure so I include the whole mess.


Looks like some problem with C++ and static initializers. No idea how
to help you here, I suggest trying the universal build and the latest
pylab egg.


The readme for wxPython claims that their universal build only works  
on 10.4 and not on 10.3.9 because of some issues in dyld on 10.3.9  
that cause problems with some C++ constructs. IIRC static  
initializers was one of them. Could this be the same problem?


Ronald



smime.p7s
Description: S/MIME cryptographic signature
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig