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

2005-02-01 Thread Richard Jones
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" subdirectory (historical name, will eventually cha

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

2005-02-01 Thread Chris Jerdonek
-- (530) 297-6947 http://DavisChoiceVoting.org On Feb 1, 2005, at 7:48 PM, Charles Hartman 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.

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

2005-02-01 Thread Richard Jones
On 02/02/2005, at 4:24 PM, Bob Ippolito wrote: If you zip -r9 that I bet its 10 times smaller, at least. 23MB :) I could make that available if you're willing to look at it. It could be some exception gone wrong, a bug in zope, a bug in PyObjC, etc. At the absolute least, I need to see a gdb ba

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

2005-02-01 Thread Bob Ippolito
On Feb 2, 2005, at 12:14 AM, Richard Jones wrote: On 02/02/2005, at 3:28 PM, Bob Ippolito wrote: Could be a lot of things. I can't really start to guess unless I can see it. Unfortunately: short:~/src/cg/Zope-OSX richard$ du -sk dist/ 80560 dist/ :( I've figured that it is Zope that's causing

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

2005-02-01 Thread Richard Jones
On 02/02/2005, at 3:28 PM, Bob Ippolito wrote: Could be a lot of things. I can't really start to guess unless I can see it. Unfortunately: short:~/src/cg/Zope-OSX richard$ du -sk dist/ 80560 dist/ :( I've figured that it is Zope that's causing the problems. I guess there's maybe just another m

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

2005-02-01 Thread Bob Ippolito
On Feb 1, 2005, at 11:10 PM, Richard Jones wrote: I've just switched from running py2app with -A to not using it. After fleshing out the "includes" option so that my required modules were included, I finallly got the app to start up. It promptly quits, with the following message: Fatal Python

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

2005-02-01 Thread Richard Jones
On 02/02/2005, at 3:10 PM, Richard Jones wrote: Fatal Python error: PyThreadState_Get: no current thread Abort trap Changing:: import objc to:: import objc objc.enableThreading() didn't help. Richard ___ Pythonmac-SIG maillist - Pythonma

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

2005-02-01 Thread Richard Jones
I've just switched from running py2app with -A to not using it. After fleshing out the "includes" option so that my required modules were included, I finallly got the app to start up. It promptly quits, with the following message: Fatal Python error: PyThreadState_Get: no current thread Abort t

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

2005-02-01 Thread Bob Ippolito
On Feb 1, 2005, at 10:48 PM, Charles Hartman wrote: On Feb 1, 2005, at 9:53 PM, Bob Ippolito wrote: The list of options py2app will accept is shown when you do "python setup.py py2app --help". These can be converted into setup.py speak by replacing the hyphens with underscores and passing them

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

2005-02-01 Thread Charles Hartman
On Feb 1, 2005, at 9:53 PM, Bob Ippolito wrote: The list of options py2app will accept is shown when you do "python setup.py py2app --help". These can be converted into setup.py speak by replacing the hyphens with underscores and passing them to setup() in an options dictionary (many of the exa

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

2005-02-01 Thread Bob Ippolito
On Feb 1, 2005, at 21:42, Chris Jerdonek wrote: I'm new to py2app (and also to python somewhat). I wasn't able to find any documentation, so I'm turning here. I'm trying to generate a setup.py file that I can use with py2app. I have the setup.py file that someone made tailored to py2exe. Is it s

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

2005-02-01 Thread Chris Jerdonek
Hi, I'm new to py2app (and also to python somewhat). I wasn't able to find any documentation, so I'm turning here. I'm trying to generate a setup.py file that I can use with py2app. I have the setup.py file that someone made tailored to py2exe. Is it straightforward to modify that? I haven't ha

Re: [Pythonmac-SIG] algorithm wanted

2005-02-01 Thread Dethe Elza
On 1-Feb-05, at 4:47 PM, has wrote: Henning Hraban Ramm wrote: I'm looking for a better algorithm... This is probably as terse as it gets: [snip] # zip() isn't needed in this direction def cm0k2bool(s): return [x != '0' for x in s] --Dethe "The law I sign today directs new funds and new focus t

Re: [Pythonmac-SIG] How do I make a binary matplotlib distribution on OS-X?

2005-02-01 Thread Chris Barker
Bob Ippolito wrote: 3) Statically link those libs into the matplotlib extensions This is (3) Make sure you don't have libpng.dylib or libfreetype.dylib sitting around on your link paths... Build them like this: ./configure --disable-shared --enable static That seemed to build and install both th

Re: [Pythonmac-SIG] Reading the resource fork with Python?

2005-02-01 Thread Bill Janssen
Thanks! Bill ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Matplotlib-users] Re: [Pythonmac-SIG] Compiling matplotlib on OS-X without Fink

2005-02-01 Thread Larry Meyn
On Feb 1, 2005, at 4:28 PM, Chris Barker wrote: Larry Meyn wrote: An alternative way to get freetype, libpng and zlib for OS X is to use the the i-Installer (http://ii2.sourceforge.net/) distribution application. It is primarily for TeX on OS X, but it provides several other useful binarie

Re: [Pythonmac-SIG] algorithm wanted

2005-02-01 Thread has
Henning Hraban Ramm wrote: I'm looking for a better algorithm... This is probably as terse as it gets: 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, 'CM

Re: [Matplotlib-users] Re: [Pythonmac-SIG] Compiling matplotlib on OS-X without Fink

2005-02-01 Thread Bob Ippolito
On Feb 1, 2005, at 19:28, Chris Barker wrote: Larry Meyn wrote: An alternative way to get freetype, libpng and zlib for OS X is to use the the i-Installer (http://ii2.sourceforge.net/) distribution application. It is primarily for TeX on OS X, but it provides several other useful binaries

[Pythonmac-SIG] How do I make a binary matplotlib distribution on OS-X?

2005-02-01 Thread Brendan Simons
See my previous message about building matplotlib on OS-X. Now that I've done that, I need to give it to some of my coworkers that don't have the dev tools installed, and are aghast at the idea of typing ./configure; make, make install. So, how do I make a binary distro? Wow, serendipity! I was

Re: [Matplotlib-users] Re: [Pythonmac-SIG] Compiling matplotlib on OS-X without Fink

2005-02-01 Thread Chris Barker
Larry Meyn wrote: An alternative way to get freetype, libpng and zlib for OS X is to use the the i-Installer (http://ii2.sourceforge.net/) distribution application. It is primarily for TeX on OS X, but it provides several other useful binaries for OS X. Thanks larry. I've used that for TeX

Re: [Pythonmac-SIG] How do I make a binary matplotlib distribution on OS-X?

2005-02-01 Thread Bob Ippolito
On Feb 1, 2005, at 19:04, Chris Barker wrote: See my previous message about building matplotlib on OS-X. Now that I've done that, I need to give it to some of my coworkers that don't have the dev tools installed, and are aghast at the idea of typing ./configure; make, make install. So, how do I

Re: [Pythonmac-SIG] Compiling matplotlib on OS-X without Fink

2005-02-01 Thread Larry Meyn
Chris, An alternative way to get freetype, libpng and zlib for OS X is to use the the i-Installer (http://ii2.sourceforge.net/) distribution application. It is primarily for TeX on OS X, but it provides several other useful binaries for OS X. Larry On Feb 1, 2005, at 3:50 PM, Chris Barker

[Pythonmac-SIG] How do I make a binary matplotlib distribution on OS-X?

2005-02-01 Thread Chris Barker
Hi all, See my previous message about building matplotlib on OS-X. Now that I've done that, I need to give it to some of my coworkers that don't have the dev tools installed, and are aghast at the idea of typing ./configure; make, make install. So, how do I make a binary distro? I know I can ge

[Pythonmac-SIG] Compiling matplotlib on OS-X without Fink

2005-02-01 Thread Chris Barker
Hi all, I just got matplotlib working on my box, so I thought I'd post this, so that it will be in the archives, and because I'd like others to try it and let me know if it doesn't work for you. One question for the knowledgeable folks here: I have /usr/include/zlib.h on my system, but I have no

Re: [Pythonmac-SIG] Did I bust py2app?

2005-02-01 Thread Bob Ippolito
On Feb 1, 2005, at 8:54, Charles Hartman wrote: On Jan 30, 2005, at 7:37 PM, Bob Ippolito wrote: . . . you have junk from an early version of py2app. Thanks, as always. Working on a setup.py file again, I'm realizing I need to know more (surprise!). But where to look? I've read through the Distuti

Re: [Pythonmac-SIG] algorithm wanted

2005-02-01 Thread eichin
It's certainly one of the things map+lambda are for >>> "".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 si

[Pythonmac-SIG] algorithm wanted

2005-02-01 Thread Ramm, Henning
Hi there! I'm looking for a better algorithm... In a print project I must know if some page needs every CMYK separation or just some; I keep this info in a boolean list like [True, True, False, True] for C,M,K (no Y plate). But our workflow database needs a string like "CM0K" (plate letter or z

Re: [Pythonmac-SIG] Did I bust py2app?

2005-02-01 Thread Charles Hartman
On Jan 30, 2005, at 7:37 PM, Bob Ippolito wrote: . . . you have junk from an early version of py2app. Thanks, as always. Working on a setup.py file again, I'm realizing I need to know more (surprise!). But where to look? I've read through the Distutils doc since that seems like essential backgrou

Re: [Pythonmac-SIG] Did I bust py2app?

2005-02-01 Thread Bob Ippolito
On Jan 30, 2005, at 7:31 PM, Charles Hartman wrote: I haven't used it for a while. Now when I try to make an app of the thing I've been working on -- OR of a separate package (part of appscript)! -- I get "ObjectGraph not found." ObjectGraph.py(c) *is* in /Library/Python/2.3/py2app/altgraph. So

Re: [Pythonmac-SIG] Reading the resource fork with Python?

2005-02-01 Thread Michael Hudson
Bill Janssen <[EMAIL PROTECTED]> writes: > Given a filename on an HFS volume, what call do I use to see if it has > a resource fork, and if there's anything in it? How do I read that > data? rpath = os.path.join(yourpath, '..namedfork', 'rsrc') os.path.getsize(rpath) > 0 data = open(rpath).read(