Re: [Pythonmac-SIG] entire applications in python?

2007-10-03 Thread Michael Glassford
Ronald Oussoren wrote: > > On Wednesday, October 03, 2007, at 04:38PM, "Kevin Walzer" <[EMAIL > PROTECTED]> wrote: >>> I've seen the pyobjc examples, but are the people out there writing >>> complete applications just using python? Are there any open source >>> examples? >> RestEdit is open-sour

Re: [Pythonmac-SIG] Python/appscript ready for primetime?

2007-09-05 Thread Michael Glassford
Karl Sweitzer wrote: > Is Python's appscript suitable and sufficiently mature for deployment > in a commercial application? > > With the demise of VBA in Microsoft Office, we are faced with > transitioning scripts that manipulate equations in Office and manage > the interoperation of our app

Re: [Pythonmac-SIG] easy_install pyobjc: what about pyobjctools

2006-09-29 Thread Michael Glassford
Bob Ippolito wrote: > On 9/28/06, Michael Glassford <[EMAIL PROTECTED]> wrote: >> Bob Ippolito wrote: >>> On 9/28/06, Michael Glassford <[EMAIL PROTECTED]> wrote: >>>> Bob Ippolito wrote: >>>>> On 9/28/06, Michael Glassford <[EMAIL PROT

Re: [Pythonmac-SIG] easy_install pyobjc: what about pyobjctools

2006-09-28 Thread Michael Glassford
Bob Ippolito wrote: > On 9/28/06, Michael Glassford <[EMAIL PROTECTED]> wrote: >> Bob Ippolito wrote: >> > On 9/28/06, Michael Glassford <[EMAIL PROTECTED]> wrote: >> >> Bob Ippolito wrote: >> >>> On 9/28/06, Michael Glassford <[EMAIL PRO

Re: [Pythonmac-SIG] easy_install pyobjc: what about pyobjctools

2006-09-28 Thread Michael Glassford
Bob Ippolito wrote: > On 9/28/06, Michael Glassford <[EMAIL PROTECTED]> wrote: >> Bob Ippolito wrote: >>> On 9/28/06, Michael Glassford <[EMAIL PROTECTED]> wrote: >>>> I've just installed Python 2.5, then installed py2app and pyobjc using >>>

Re: [Pythonmac-SIG] easy_install pyobjc: what about pyobjctools

2006-09-28 Thread Michael Glassford
Bob Ippolito wrote: > On 9/28/06, Michael Glassford <[EMAIL PROTECTED]> wrote: >> I've just installed Python 2.5, then installed py2app and pyobjc using >> easy_install. My application built just fine, but when I run it I get >> the error "ImportError: No modul

[Pythonmac-SIG] easy_install pyobjc: what about pyobjctools

2006-09-28 Thread Michael Glassford
I've just installed Python 2.5, then installed py2app and pyobjc using easy_install. My application built just fine, but when I run it I get the error "ImportError: No module named PyObjCTools" when it tries to execute the line "from PyObjCTools import AppHelper". How does PyObjCTools get insta

Re: [Pythonmac-SIG] [pyobjc] FYI: Build error; setuptools egg missing

2006-08-09 Thread Michael Glassford
Bob Ippolito wrote: > On Aug 8, 2006, at 2:34 PM, Michael Glassford wrote: > >> I just got the PyObjC trunk from svn. When I try to build it ("$PYTHON >> setup.py build"), I get the error at the end of this message. The >> specified url, >> "http://ch

[Pythonmac-SIG] [pyobjc] FYI: Build error; setuptools egg missing

2006-08-08 Thread Michael Glassford
I just got the PyObjC trunk from svn. When I try to build it ("$PYTHON setup.py build"), I get the error at the end of this message. The specified url, "http://cheeseshop.python.org/packages/2.5/s/setuptools/setuptools-0.6c1-py2.5.egg";, is in fact invalid: there's no setuptools directory.

Re: [Pythonmac-SIG] [py2app] "An unexpected error has occurred during execution of the main script"

2006-08-08 Thread Michael Glassford
Bob Ippolito wrote: > On Aug 8, 2006, at 6:57 AM, Michael Glassford wrote: > >> I get this error running a py2app alias build (one built with option >> alias=True) of an application, with the additional information >> "AttributeError: 'NoneType' object ha

[Pythonmac-SIG] [py2app] "An unexpected error has occurred during execution of the main script"

2006-08-08 Thread Michael Glassford
I get this error running a py2app alias build (one built with option alias=True) of an application, with the additional information "AttributeError: 'NoneType' object has no attribute 'endswith'; See the Console for a detailed traceback." However, no additional information is written to the con

Re: [Pythonmac-SIG] Building python 2.4.3 on OSX 10.3.9

2006-07-14 Thread Michael Glassford
Bob Ippolito wrote: > On Jul 12, 2006, at 11:28 AM, Michael Glassford wrote: > >> Bob Ippolito wrote: >>> On Jul 12, 2006, at 7:51 AM, Michael Glassford wrote: >>> and second it's not what you're running anyway! Look at the site- >>> packages d

Re: [Pythonmac-SIG] Building python 2.4.3 on OSX 10.3.9

2006-07-12 Thread Michael Glassford
Bob Ippolito wrote: > On Jul 12, 2006, at 7:51 AM, Michael Glassford wrote: > >> 2) When I run python (either the one I built, from >> /usr/local/bin/python2.4, or the one installed by the universal binary >> installer at >> /Library/Frameworks/Python.framewor

Re: [Pythonmac-SIG] Building python 2.4.3 on OSX 10.3.9

2006-07-12 Thread Michael Glassford
w', not 'python', if running script in shell) """ If I run /Library/Frameworks/Python.framework/Versions/2.4/pythonw2.4, I get the same error. What could make this not work properly? Mike Ronald Oussoren wrote: > On Jul 11, 2006, at 7:41 PM, Bob Ippolito wro

Re: [Pythonmac-SIG] Building python 2.4.3 on OSX 10.3.9

2006-07-10 Thread Michael Glassford
Michael Glassford wrote: > Ronald Oussoren wrote: >> On Jul 8, 2006, at 5:27 PM, Piet van Oostrum wrote: >> >>>>>>>> Michael Glassford <[EMAIL PROTECTED]> (MG) wrote: >>>> MG> As far as I can tell, XCode isn't installed at all. I

Re: [Pythonmac-SIG] Building python 2.4.3 on OSX 10.3.9

2006-07-08 Thread Michael Glassford
Ronald Oussoren wrote: > > On Jul 8, 2006, at 5:27 PM, Piet van Oostrum wrote: > >>>>>>> Michael Glassford <[EMAIL PROTECTED]> (MG) wrote: >> >>> MG> As far as I can tell, XCode isn't installed at all. I ran the >>> XCode 2.3 &

Re: [Pythonmac-SIG] Building python 2.4.3 on OSX 10.3.9

2006-07-08 Thread Michael Glassford
Piet van Oostrum wrote: >>>>>> Michael Glassford <[EMAIL PROTECTED]> (MG) wrote: > >> MG> As far as I can tell, XCode isn't installed at all. I ran the XCode 2.3 >> MG> installer, but it says "You can only install this software on MacOS &

Re: [Pythonmac-SIG] Building python 2.4.3 on OSX 10.3.9

2006-07-07 Thread Michael Glassford
Bob Ippolito wrote: > On Jul 7, 2006, at 10:44 AM, Michael Glassford wrote: > >> When I try to build Python 2.4.3 on OSX 10.3.9, I get the following >> error: >> >> """ >> gcc -c -fno-strict-aliasing -Wno-long-double -no-cpp-precomp >>

Re: [Pythonmac-SIG] Pythonw 2.3.5 error on OSX 10.3.9

2006-07-07 Thread Michael Glassford
Kevin Walzer wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Michael Glassford wrote: >> When I try to run /usr/local/bin/pythonw2.3, I get the error: >> >> """ >> /usr/local/bin/pythonw2.3: line 2: >> /Library/Frameworks/Py

[Pythonmac-SIG] Building python 2.4.3 on OSX 10.3.9

2006-07-07 Thread Michael Glassford
When I try to build Python 2.4.3 on OSX 10.3.9, I get the following error: """ gcc -c -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE -DPYTHONPATH='":plat-darwin:plat-mac:plat-mac/lib-scriptpackages

[Pythonmac-SIG] Pythonw 2.3.5 error on OSX 10.3.9

2006-07-07 Thread Michael Glassford
When I try to run /usr/local/bin/pythonw2.3, I get the error: """ /usr/local/bin/pythonw2.3: line 2: /Library/Frameworks/Python.framework/Versions/2.3/Resources/Python.app/Contents/MacOS/Python: No such file or directory /usr/local/bin/pythonw2.3: line 2: exec: /Library/Frameworks/Python.frame

Re: [Pythonmac-SIG] Universal binary build of py2app application won't run on 10.3.9

2006-06-30 Thread Michael Glassford
Christopher Barker wrote: > Bob Ippolito wrote: > Would it be hard to put a little hack in Py2App to include that > particular lib, even though it is in /usr? > > Or better yet, a way to pass in a list of libs you want included > regardless of their location. > >> It's a bad id

Re: [Pythonmac-SIG] Universal binary build of py2app application won't run on 10.3.9

2006-06-30 Thread Michael Glassford
Bob Ippolito wrote: > On Jun 29, 2006, at 12:04 PM, Christopher Barker wrote: > >> Michael Glassford wrote: >>>> """ >>>>> Note that dylibs and frameworks >>>>> in vendor locations (/System and /usr - except for

Re: [Pythonmac-SIG] Universal binary build of py2app application won't run on 10.3.9

2006-06-29 Thread Michael Glassford
Ronald Oussoren wrote: > On 28-jun-2006, at 20:56, Bob Ippolito wrote: > >> >> It's not really trivial, but it's the only option you have unless >> someone else does it first. It sounds like Ronald will probably >> create another 2.4.3 installer in the future that fixes this and a >> few other iss

Re: [Pythonmac-SIG] Universal binary build of py2app application won't run on 10.3.9

2006-06-29 Thread Michael Glassford
Bob Ippolito wrote: > On Jun 29, 2006, at 8:20 AM, Michael Glassford wrote: > >> Bob Ippolito wrote: >>> The bz2 module is part of the Python distribution. The best route >>> would be to download the Python source, extract the source for the >>> bz2 extensi

Re: [Pythonmac-SIG] Universal binary build of py2app application won't run on 10.3.9

2006-06-29 Thread Michael Glassford
Bob Ippolito wrote: > The bz2 module is part of the Python distribution. The best route > would be to download the Python source, extract the source for the > bz2 extension and create a standalone setup.py for it. Tweak it such > that it links to a copy of libbz2 that you've compiled statical

Re: [Pythonmac-SIG] Universal binary build of py2app application won't run on 10.3.9

2006-06-28 Thread Michael Glassford
Ronald Oussoren wrote: > On 28-jun-2006, at 20:50, Michael Glassford wrote: > >> Ronald Oussoren wrote: >>> Its getting more and more clear that I can't get way with not >>> updating the 2.4 installer :-(. >> Would you be thinking of doing this soon? :) &g

Re: [Pythonmac-SIG] Universal binary build of py2app application won't run on 10.3.9

2006-06-28 Thread Michael Glassford
Bob Ippolito wrote: > In your situation, I would just give up on 10.3 users until the issue > with Python is resolved (which is either going to happen when 2.5 > comes out, or when the 2.4.3 installer gets updated). OK, thanks for the help. I guess this is the solution we'll go with for now

Re: [Pythonmac-SIG] Universal binary build of py2app application won't run on 10.3.9

2006-06-28 Thread Michael Glassford
Ronald Oussoren wrote: > On 28-jun-2006, at 19:02, Michael Glassford wrote: > >> I've built a universal binary build of an application that runs >> great on >> the Tiger machines that I've tested it on (both PowerPC and >> Intel). >> However,

Re: [Pythonmac-SIG] Universal binary build of py2app application won't run on 10.3.9

2006-06-28 Thread Michael Glassford
Bob Ippolito wrote: > On Jun 28, 2006, at 10:02 AM, Michael Glassford wrote: > >> I've built a universal binary build of an application that runs >> great on >> the Tiger machines that I've tested it on (both PowerPC and >> Intel). >> However,

[Pythonmac-SIG] Universal binary build of py2app application won't run on 10.3.9

2006-06-28 Thread Michael Glassford
I've built a universal binary build of an application that runs great on the Tiger machines that I've tested it on (both PowerPC and Intel). However, when I try to run it on PowerPC 10.3.9 (which I've been led to believe should work from comments in the PyObjC svn log), I get this error: ""

Re: [Pythonmac-SIG] psyco and Mac OS X i386

2006-06-06 Thread Michael Glassford
Bob Ippolito wrote: [snip] > I went through and confirmed that indeed the stack alignment is the > reason why psyco doesn't function properly on Mac OS X i386. You can > confirm this by running the bpnn.py example under gdb. You'll > eventually get an Illegal Instruction (GP(0) exception) dur

Re: [Pythonmac-SIG] A couple of universal binary questions

2006-06-06 Thread Michael Glassford
Ronald Oussoren wrote: > On 6-jun-2006, at 18:33, Michael Glassford wrote: > >> Is it possible to build a universal binary version of a Py2App/PyObjC >> based application that runs on pre-Tiger Macs? I assume this would >> require doing the build on a non-Intel Mac, since

Re: [Pythonmac-SIG] A couple of universal binary questions

2006-06-06 Thread Michael Glassford
Bob Ippolito wrote: > On Jun 6, 2006, at 9:33 AM, Michael Glassford wrote: > >> Is it possible to build a universal binary version of a Py2App/PyObjC >> based application that runs on pre-Tiger Macs? I assume this would >> require doing the build on a non-Intel Mac, since

[Pythonmac-SIG] A couple of universal binary questions

2006-06-06 Thread Michael Glassford
Is it possible to build a universal binary version of a Py2App/PyObjC based application that runs on pre-Tiger Macs? I assume this would require doing the build on a non-Intel Mac, since you generally have to build it on the earliest system version you want to run it on to get the right Foundat

Re: [Pythonmac-SIG] PyObjC/Py2App build problem

2006-06-05 Thread Michael Glassford
Bob Ippolito wrote: > On Jun 5, 2006, at 12:21 PM, Michael Glassford wrote: [snip] >> Well, you're right about that; apparently I wasn't using it there. >> However, I am using it most of the time, including earlier today >> when I >> said I got it working

Re: [Pythonmac-SIG] PyObjC/Py2App build problem

2006-06-05 Thread Michael Glassford
Ronald Oussoren wrote: > On 5-jun-2006, at 20:42, Michael Glassford wrote: > >> Ronald Oussoren wrote: >>> On 2-jun-2006, at 22:39, Michael Glassford wrote: >>>> This seems to have worked for me. I'm now getting another error >>>> (at the end

Re: [Pythonmac-SIG] PyObjC/Py2App build problem

2006-06-05 Thread Michael Glassford
Ronald Oussoren wrote: > > On 2-jun-2006, at 22:39, Michael Glassford wrote: > >> This seems to have worked for me. I'm now getting another error (at >> the end of this message). I haven't had time to look at it yet because >> of other things that came up

Re: [Pythonmac-SIG] PyObjC/Py2App build problem

2006-06-02 Thread Michael Glassford
On Friday, June 02, 2006, at 02:22AM, Michael Glassford <[EMAIL PROTECTED]> > wrote: > >> Ronald Oussoren wrote: >>> On 1-jun-2006, at 18:32, Michael Glassford wrote: >>> >>>> My main problem is that when I run "setup.py bdist_mpkg --open&q

Re: [Pythonmac-SIG] PyObjC/Py2App build problem

2006-06-01 Thread Michael Glassford
Ronald Oussoren wrote: > On 1-jun-2006, at 18:32, Michael Glassford wrote: > >> My main problem is that when I run "setup.py bdist_mpkg --open", after >> building for a while, I get this error: > > That's my bad. I've renamed subdirectories in sourc

[Pythonmac-SIG] PyObjC/Py2App build problem

2006-06-01 Thread Michael Glassford
To try building a universal binary version of an application I'm working on, I'm trying to get and build a new version of PyObjC and Py2App. I've successfully installed the correct version of Python from http://pythonmac.org/packages/py24-fat/ and have gotten the latest PyObjC from http://svn.r

Re: [Pythonmac-SIG] PyObjC: dragImageForRowsWithIndexes_tableColumns_event_offset_() causes "PyObjCPointer created" error

2006-03-14 Thread Michael Glassford
Ronald Oussoren wrote: > On 13-mrt-2006, at 19:51, Michael Glassford wrote: > >> I added a dragImageForRowsWithIndexes_tableColumns_event_offset_() >> method to an NSTableView subclass that I have created. It's working >> OK, >> but every time it is called, a

Re: [Pythonmac-SIG] PyObjC: dragImageForRowsWithIndexes_tableColumns_event_offset_() causes "PyObjCPointer created" error

2006-03-14 Thread Michael Glassford
Ronald Oussoren wrote: > On 13-mrt-2006, at 19:51, Michael Glassford wrote: > >> I added a dragImageForRowsWithIndexes_tableColumns_event_offset_() >> method to an NSTableView subclass that I have created. It's working >> OK, >> but every time it is called, a

[Pythonmac-SIG] PyObjC: dragImageForRowsWithIndexes_tableColumns_event_offset_() causes "PyObjCPointer created" error

2006-03-13 Thread Michael Glassford
I added a dragImageForRowsWithIndexes_tableColumns_event_offset_() method to an NSTableView subclass that I have created. It's working OK, but every time it is called, a message like this is printed to the error log: "PyObjCPointer created: at 0xbfffcb50 of type {_NSPoint=ff}16 dragImageForRows

Re: [Pythonmac-SIG] PyObjC: Errors initializing NSAttributedString using initWithHTML

2006-01-11 Thread Michael Glassford
Bob Ippolito wrote: > On Jan 10, 2006, at 2:16 PM, Michael Glassford wrote: > > >>When trying to initialize an NSAttributedString like this: >> >>attributedString = >>AppKit.NSAttributedString.alloc >>().initWithHTML_baseURL_documentAttributes_(data, >&

[Pythonmac-SIG] PyObjC: Errors initializing NSAttributedString using initWithHTML

2006-01-10 Thread Michael Glassford
When trying to initialize an NSAttributedString like this: attributedString = AppKit.NSAttributedString.alloc().initWithHTML_baseURL_documentAttributes_(data, url, None) I get the error "TypeError: Need 2 arguments, got 3", although the documentation makes it pretty clear that there are in fa

[Pythonmac-SIG] "PyObjCPointer created" messages and crash from tooltip handlers

2005-11-16 Thread Michael Glassford
I recently added outlineView_toolTipForCell_rect_tableColumn_item_mouseLocation_() and tableView_toolTipForCell_rect_tableColumn_row_mouseLocation_() handlers to a Py2App-based application and started seeing errors like the following being written to the console log: 2005-11-10 11:08:53.891 Go