Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-02 Thread Richard Jones
On 03/02/2005, at 6:12 PM, Bob Ippolito wrote: On Feb 2, 2005, at 19:08, Richard Jones wrote: OK, starting at it again this morning, I've made some progress getting things configured correctly to start up Zope. I've hit another roadblock though -- Zope needs to fork/exec off new processes. I c

Re: [Pythonmac-SIG] Zope py2app, some progress

2005-02-02 Thread Bob Ippolito
On Feb 2, 2005, at 19:08, Richard Jones wrote: OK, starting at it again this morning, I've made some progress getting things configured correctly to start up Zope. I've hit another roadblock though -- Zope needs to fork/exec off new processes. I can't actually find a Python interpreter in the ap

[Pythonmac-SIG] Re: [Matplotlib-users] Binary Matplotlib package

2005-02-02 Thread John Hunter
> "Chris" == Chris Barker <[EMAIL PROTECTED]> writes: Chris> Hi all, I think I've successfully build a binary matplotlib Chris> package for use with Apple's Python on OS-X 10.3.* In Chris> theory the only other thing it requires is Numeric, and I Chris> have a package for that

[Pythonmac-SIG] Binary Matplotlib package

2005-02-02 Thread Chris Barker
Hi all, I think I've successfully build a binary matplotlib package for use with Apple's Python on OS-X 10.3.* In theory the only other thing it requires is Numeric, and I have a package for that too (courtesy of Bob Ippolito). It's almost 5 MB, so I haven't included it here. I also don't have a

[Pythonmac-SIG] Zope py2app, some progress

2005-02-02 Thread Richard Jones
OK, starting at it again this morning, I've made some progress getting things configured correctly to start up Zope. I've hit another roadblock though -- Zope needs to fork/exec off new processes. I can't actually find a Python interpreter in the app generated by py2app, and I suspect one isn't

[Pythonmac-SIG] 'Hello World' the OSA Way

2005-02-02 Thread has
Hey, Well, it works (with thanks to Jack and Bob for getting me this far;): #!/usr/local/bin/python from Carbon.Cm import OpenDefaultComponent from OSA.OSA import OSAComponentInstance from aem.types import Codecs c=Codecs() ascpt = ''' set s to "hello" & space & "world" say s using "Zarvox" return

Re: [Pythonmac-SIG] ANN: Python 2.3->2.4 "compatibility" package

2005-02-02 Thread Bob Ippolito
On Nov 29, 2004, at 21:38, Bob Ippolito wrote: I've put together a quick set of packages that brings a few new/updated modules from Python 2.4 to Python 2.3: Cross-platform: new subprocess module new decimal module For Mac OS X: new LaunchServices wrapper new OSA wrapper updat

Re: [Pythonmac-SIG] modifying setup.py: py2exe -> py2app

2005-02-02 Thread Bob Ippolito
On Feb 2, 2005, at 8:35, Charles Hartman wrote: On Feb 2, 2005, at 1:59 AM, Chris Jerdonek wrote: Anyways, I double-clicked the hello icon. It appeared on the dock and immediately collapsed without any output. Is this the desired behavior? Something the program expects isn't available in your

Re: [Pythonmac-SIG] modifying setup.py: py2exe -> py2app

2005-02-02 Thread Charles Hartman
On Feb 2, 2005, at 1:59 AM, Chris Jerdonek wrote: Anyways, I double-clicked the hello icon. It appeared on the dock and immediately collapsed without any output. Is this the desired behavior? Something the program expects isn't available in your Mac's system. (There are two different "hello.py

Re: [Pythonmac-SIG] "Fatal Python error: PyThreadState_Get: no current thread"

2005-02-02 Thread Bob Ippolito
On Feb 2, 2005, at 4:14 AM, Richard Jones wrote: On 02/02/2005, at 8:04 PM, Bob Ippolito wrote: On Feb 2, 2005, at 4:01 AM, Richard Jones wrote: On 02/02/2005, at 7:45 PM, Bob Ippolito wrote: Creating both a zip and a directory is perfectly normal and expected. "fails to find some stuff" is prob

Re: [Pythonmac-SIG] "Fatal Python error: PyThreadState_Get: no current thread"

2005-02-02 Thread Richard Jones
On 02/02/2005, at 8:04 PM, Bob Ippolito wrote: On Feb 2, 2005, at 4:01 AM, Richard Jones wrote: On 02/02/2005, at 7:45 PM, Bob Ippolito wrote: Creating both a zip and a directory is perfectly normal and expected. "fails to find some stuff" is probably unrelated. More specifically, the "smart" xml.s

Re: [Pythonmac-SIG] "Fatal Python error: PyThreadState_Get: no current thread"

2005-02-02 Thread Bob Ippolito
On Feb 2, 2005, at 4:01 AM, Richard Jones wrote: On 02/02/2005, at 7:45 PM, Bob Ippolito wrote: Creating both a zip and a directory is perfectly normal and expected. "fails to find some stuff" is probably unrelated. More specifically, the "smart" xml.sax.saxexts module fails to find any parsers f

Re: [Pythonmac-SIG] "Fatal Python error: PyThreadState_Get: no current thread"

2005-02-02 Thread Richard Jones
On 02/02/2005, at 7:45 PM, Bob Ippolito wrote: Creating both a zip and a directory is perfectly normal and expected. "fails to find some stuff" is probably unrelated. More specifically, the "smart" xml.sax.saxexts module fails to find any parsers for parsing XML. I need to look more closely at wha

Re: [Pythonmac-SIG] "Fatal Python error: PyThreadState_Get: no current thread"

2005-02-02 Thread Bob Ippolito
On Feb 2, 2005, at 2:12 AM, Richard Jones wrote: On 02/02/2005, at 3:10 PM, Richard Jones wrote: My app is a simple GUI thing which controls Zope through the zdaemon.zdctl module. It's attached. The Zope libs (and some supporting libs) are installed in the app's Resources folder in a "runtime"

RE: [Pythonmac-SIG] algorithm wanted

2005-02-02 Thread Ramm, Henning
has and Dethe wrote: >def bool2cm0k(lst): > """Converts a list of booleans to a CMYK color string, > e.g. [True, False, False, True] to 'C00K' > """ > return ''.join([b and c or '0' for b, c in zip(lst, 'CMYK')]) > >def cm0k2bool(s): > """Converts a CMYK color string to a l

RE: [Pythonmac-SIG] algorithm wanted

2005-02-02 Thread Ramm, Henning
[EMAIL PROTECTED] wrote: "".join(map(lambda x,y: {True:x, False:"0"}[y], _cmykMap, >[True, False, True, True])) >'C0YK' >but I'd break that down into a selector function (rather than a >lambda) or something to make it readable, since it's way too far on >the lisp side of things as far as exp

Re: [Pythonmac-SIG] modifying setup.py: py2exe -> py2app

2005-02-02 Thread Bob Ippolito
On Feb 2, 2005, at 1:59 AM, Chris Jerdonek wrote: I'm in the same boat with C. Jerdonek, though I suspect I know less. So when I saw this passage, I hung, as always, on every word from py2app's own master. Aha! I said. I think I know less, Charles. I tried the hello.py sample in the Developer