Re: [Pythonmac-SIG] setuptools/distutils/py2app bug? (solved)

2007-10-23 Thread has
On 21 Oct 2007, at 20:33, has wrote:

> I should also mention that the error doesn't occur if I delete the  
> CFBundleDocumentTypes entry in setup.py.

Meh. That should've told me the solution straightaway - I put the  
CFBundleDocumentTypes entry in the wrong place. Fixed now.

In my defense, I got thrown by the quite cryptic setuptools/distutils/ 
py2app-generated traceback [1], which made it look like the problem  
was further down. Also, having nephew and niece no.1 dropped on the  
doorstep at 4am this morning while youngest sister headed off to  
hospital to have niece no.2 may have taken the edge off me today. ;)

Apologies for the bother,

has

[1] Any chance of implementing better error reporting here at some  
point in the future?

-- 
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org

___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Anyone having luck py2app on wxPython (wxGlade)?

2007-10-23 Thread Christopher Barker


Richard Bronosky wrote:
> A few things:

That all looks good.

> stripping ...
> /usr/bin/strip: object:

Here's that error:

stripping datetime.so
/usr/bin/strip: object: 
/PersonalStorage/Code/src/wxGlade-0.6/dist/wxglade.app/Contents/MacOS/python 
truncated or malformed object (linked_modules.offset field of 
LC_PREBIND_DYLIB command 10 extends past the end of the file)


I know NOTHING about stripping, but it looks like it's having a problem 
stripping datatime.so. (or is the problem with whatever is next?)

I'd try a little app with nothing much but datetime, and see if that 
works. Also, you might try python2.5, just for the heck of it.

Bob or Ronald, any ideas?

Also, can you turn off stripping with py2app?

-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

[EMAIL PROTECTED]
___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] ctypes and OS X CF types?

2007-10-23 Thread Bill Janssen
> However, it seems that I'll have to unearth and write
> ctypes definitions for a number of Core Foundation C++ types, in order
> to do that.  Has anyone already done this?  Created ctypes definitions
> for the standard CF types, and made them available somewhere?

OK, I've build and run Thomas Heller's tool, and you can for the
moment get the generated ctypes CoreFoundation.py file from
http://www.parc.com/janssen/transient/CoreFoundation.py.

Bill
___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] ctypes and OS X CF types?

2007-10-23 Thread Gary Poster

On Oct 23, 2007, at 1:49 PM, Bill Janssen wrote:

>> However, it seems that I'll have to unearth and write
>> ctypes definitions for a number of Core Foundation C++ types, in  
>> order
>> to do that.  Has anyone already done this?  Created ctypes  
>> definitions
>> for the standard CF types, and made them available somewhere?
>
> OK, I've build and run Thomas Heller's tool, and you can for the
> moment get the generated ctypes CoreFoundation.py file from
> http://www.parc.com/janssen/transient/CoreFoundation.py.

I just wanted to compare the output with my experience of this tool  
for another bit of C, but I get a Forbidden:

Forbidden

You don't have permission to access /isl/members/janssen/transient/ 
CoreFoundation.py on this server.



Apache/1.3.26 Server at www2.parc.com Port 80


Gary
___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] ctypes and OS X CF types?

2007-10-23 Thread Bill Janssen
I don't know what's going on there.  I'll track it down.

Meanwhile,

http://wiki.python.org/moin/MacPython/ctypes/CoreFoundation

Bill
___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig