[Pythonmac-SIG] configure failing with Python 2.4

2004-12-23 Thread Kevin Dangoor
I'm thinking that I must be doing something simple wrong... hopefully that's the case. I downloaded the Python 2.4 source and tried to run a basic ./configure to see what I get. What I got was this error: checking for C++ compiler default output file name... configure: error: C++ compiler cann

Re: [Pythonmac-SIG] configure failing with Python 2.4

2004-12-23 Thread Kevin Dangoor
f the way to be sure that those weren't causing any grief. Kevin Kevin Dangoor wrote: I'm thinking that I must be doing something simple wrong... hopefully that's the case. I downloaded the Python 2.4 source and tried to run a basic ./configure to see what I get. What I got w

Re: [Pythonmac-SIG] configure failing with Python 2.4

2004-12-23 Thread Kevin Dangoor
wrote: Reinstall Xcode and/or make sure you aren't using Fink or something which may have installed an alternate compiler (make sure "which cc" and "which gcc" point to /usr/bin). On Dec 23, 2004, at 10:23 AM, Kevin Dangoor wrote: Err, while this might be enough info for

Re: [Pythonmac-SIG] configure failing with Python 2.4

2004-12-24 Thread Kevin Dangoor
On Dec 23, 2004, at 10:23 AM, Kevin Dangoor wrote: Err, while this might be enough info for someone to go on, I just realized that there's not much there... I'm running Mac OS 10.3.6. I have XCode/Developer Tools installed, though that didn't seem to make any difference. I even tr

[Pythonmac-SIG] py2app error with _py_suffixes

2004-12-28 Thread Kevin Dangoor
First of all, thanks for all of the work put into py2app! Hard to imagine how much time it would have taken me to figure out all of the various things that it does (particularly since I'm new to Mac development). I was just going to rebuild an app and ran into this error: File "/purelib/py2app/

Re: [Pythonmac-SIG] py2app error with _py_suffixes

2004-12-28 Thread Kevin Dangoor
One more bit of relevant info... I just noticed that the file in question was a ".ptl" file (from Quixote) that was compiled into a ".pyc". Kevin Kevin Dangoor wrote: First of all, thanks for all of the work put into py2app! Hard to imagine how much time it would have taken

Re: [Pythonmac-SIG] py2app error with _py_suffixes

2004-12-28 Thread Kevin Dangoor
Bob Ippolito wrote: On Dec 28, 2004, at 12:14 PM, Kevin Dangoor wrote: Kevin Dangoor wrote: I don't see _py_suffixes defined anywhere... One more bit of relevant info... I just noticed that the file in question was a ".ptl" file (from Quixote) that was compiled into a &quo

[Pythonmac-SIG] how do I use twisted cfreactor?

2005-01-14 Thread Kevin Dangoor
I'm trying to mix Twisted and a Mac interface. I'm using PyObjC 1.2 and Twisted's trunk as of a few days back. All of this with Python 2.3. The combo appeared to be working until this morning. Intriguingly, the problem appeared when I added Cheetah (the template engine) to the mix. If I remo

Re: [Pythonmac-SIG] how do I use twisted cfreactor?

2005-01-14 Thread Kevin Dangoor
ear if I'm setting up event handling properly... Kevin Kevin Dangoor wrote: I'm trying to mix Twisted and a Mac interface. I'm using PyObjC 1.2 and Twisted's trunk as of a few days back. All of this with Python 2.3. The combo appeared to be working until this morning. Intr

Re: [Pythonmac-SIG] how do I use twisted cfreactor?

2005-01-14 Thread Kevin Dangoor
ear if I'm setting up event handling properly... Kevin Kevin Dangoor wrote: I'm trying to mix Twisted and a Mac interface. I'm using PyObjC 1.2 and Twisted's trunk as of a few days back. All of this with Python 2.3. The combo appeared to be working until this morning. Intr

Re: [Pythonmac-SIG] how do I use twisted cfreactor?

2005-01-14 Thread Kevin Dangoor
Wow. That was quick! I didn't realize that there was a gotcha with the imports. That was just a premature optimization, so I can easily avoid that :) Thanks for your help... that's certainly not the kind of thing I would have just guessed... Kevin Bob Ippolito wrote: (Kevin sent me the test off

Re: [Pythonmac-SIG] how do I use twisted cfreactor?

2005-01-14 Thread Kevin Dangoor
plicationDidFinishLaunching: (pygame, in particular) before. I have no idea if I should be blaming Cheetah, PyObjC or Python 2.3.0 (haven't tested with 2.4 or CVS), but I will try and remember to dig in later. -bob On Jan 14, 2005, at 16:56, Kevin Dangoor wrote: Wow. That was quick! I didn'

[Pythonmac-SIG] Re: Namespace conflict with WebWare and PyObjC / Import safety (Was: how do I use twisted cfreactor?)

2005-01-14 Thread Kevin Dangoor
Fun indeed. Given that I'm not using WebWare, it would most definitely be picking up PyObjC's WebKit. Maybe there's something to be said for Java's package naming conventions :) The py2app issue I was having was far less exciting. Cheetah seems to like dumping templates into /tmp and it drops i

Re: [Pythonmac-SIG] Mac User Python Newbies

2005-02-15 Thread Kevin Dangoor
Bob Ippolito wrote: On Feb 14, 2005, at 12:09 PM, has wrote: My preferred IDE architecture would be built on a completely component-oriented architecture. That way it can ship with the minimal components required to get started, and users can add, upgrade and remove components as and when they n

Re: [Pythonmac-SIG] mac python gui: Framework vs. wxPython

2005-02-19 Thread Kevin Dangoor
This question seems to come up a lot. Here's my quick summary: 1) EasyDialogs is nice but can only do really, really simple things. 2) If you're strictly doing Mac work, pyobjc is your best bet, because you can do basically anything that can be done in Objective-C. You can really use the Mac GUI t

[Pythonmac-SIG] trouble making a standalone app with Python 2.4

2005-02-23 Thread Kevin Dangoor
For a few reasons, I am moving my app to Python 2.4. It runs fine when I use py2app -A, but it doesn't work when I try to build a full standalone application. At first, "doesn't work" meant that Twisted's cfreactor couldn't find _CarbonEvt. If I specifically ask to include _CarbonEvt, I get a b

Re: [Pythonmac-SIG] trouble making a standalone app with Python 2.4

2005-02-23 Thread Kevin Dangoor
Bob Ippolito wrote: On Feb 23, 2005, at 9:08, Kevin Dangoor wrote: For a few reasons, I am moving my app to Python 2.4. It runs fine when I use py2app -A, but it doesn't work when I try to build a full standalone application. At first, "doesn't work" meant that Twisted's

Re: [Pythonmac-SIG] trouble making a standalone app with Python 2.4

2005-02-23 Thread Kevin Dangoor
Bob Ippolito wrote: On Feb 23, 2005, at 9:08, Kevin Dangoor wrote: For a few reasons, I am moving my app to Python 2.4. It runs fine when I use py2app -A, but it doesn't work when I try to build a full standalone application. At first, "doesn't work" meant that Twisted's

Re: [Pythonmac-SIG] trouble making a standalone app with Python 2.4

2005-02-23 Thread Kevin Dangoor
Bob Ippolito wrote: On Feb 23, 2005, at 10:18, Kevin Dangoor wrote: In Python, I have narrowed this down to here: cfreactor.CFReactor.getRunLoop runLoop = nsRunLoop.getCFRunLoop() Do the PyObjC Examples/Twisted examples work in your environment? I tried WebServicesTool and had

Re: [Pythonmac-SIG] trouble making a standalone app with Python 2.4

2005-02-23 Thread Kevin Dangoor
Bob Ippolito wrote: I probably won't be able to look at this until tomorrow, but try comparing sys.modules.keys() between your environment with py2app -A and py2app. in getRunLoop, I added print sys.modules.keys() and then ran the Web Services Tool with and without -A. Without -A (normal standa

Re: [Pythonmac-SIG] Trouble installing mxdatetime

2005-03-12 Thread Kevin Dangoor
Sounds like you might not have Xcode/Developer Tools installed. They don't come installed by default. Kevin Jason Van Anden wrote: Hi, I was attempting to install mxdatetime on a mac mini - but it fails when I run setup. Repeated messages tell me it was unable to execute gcc. I unzipped the r

[Pythonmac-SIG] py2app on Tiger

2005-03-16 Thread Kevin Dangoor
Given the buzz that Tiger is coming in a month, I was curious about whether it's possible to create Python apps on Tiger and run them on Panther (assuming, of course, that I'm not using Tiger features). I'm already using my own Python build, if that makes any difference. I'd really like to upgr

Re: [Pythonmac-SIG] py2app on Tiger

2005-03-16 Thread Kevin Dangoor
Bob Ippolito wrote: My recommendation is to: - Build your framework on the minimum target platform - Copy it over to your workstation - Use bdist_mpkg to build installer packages for the extensions you use from the minimum target platform - Install them on your workstation as needed So, I gues

Re: [Pythonmac-SIG] emergency python recovery

2005-03-17 Thread Kevin Dangoor
Just an FYI to anyone else who sees this... I've tarred up the files for John. Kevin John Hunter wrote: I was in the process of getting ready for a talk this morning at 9AM, one that was largely a demo of python for scientific computing, when I inadvertently did > sudo rm -rf /System/Library/Fr

Re: [Pythonmac-SIG] Re: IDE recommendation

2005-04-06 Thread Kevin Dangoor
On Mar 31, 2005 2:52 AM, Lee Cullens <[EMAIL PROTECTED]> wrote: > TextWrangler is (to me) too much like its big brother - a do-all > "develop it yourself" sandbox. Great if that's what your into, but a > sidetrack to me. For the moment I'll stick with the simpler > SubEthaEdit which I can even us

[Pythonmac-SIG] EasyDialogs and py2app

2005-05-12 Thread Kevin Dangoor
I have an application that uses EasyDialogs and is packaged up with py2app. When I run it, it seems to have trouble finding dialogs.rsrc: File "EasyDialogs.pyc", line 193, in AskYesNoCancel File "EasyDialogs.pyc", line 49, in _initialize File "macresource.pyc", line 63, in need macresource.R

Re: [Pythonmac-SIG] EasyDialogs and py2app

2005-05-12 Thread Kevin Dangoor
b the directory from there) Kevin On 5/12/05, Kevin Dangoor <[EMAIL PROTECTED]> wrote: > I have an application that uses EasyDialogs and is packaged up with > py2app. When I run it, it seems to have trouble finding dialogs.rsrc: > > File "EasyDialogs.pyc", line 193,

Re: [Pythonmac-SIG] EasyDialogs and py2app

2005-05-12 Thread Kevin Dangoor
t os > import EasyDialogs > plat_mac = os.path.dirname(EasyDialogs.__file__) > rsrcFile = os.path.join(plat_mac, 'dialogs.rsrc') > setup( > data_files=[rsrcFile], > ... > ) > > On May 12, 2005, at 3:18 PM, Kevin Dangoor wrote: > > > I should

Re: [Pythonmac-SIG] .pth use

2005-05-22 Thread Kevin Dangoor
On 5/22/05, Lee Cullens <[EMAIL PROTECTED]> wrote: > What worked (at least so far) was to put a .pth file (containing / > Users/Chinook/PythonProjects/MyUtilities) in /Library/Frameworks/ > Python.framework/Versions/2.4/lib/python2.4/site-packages Since this is a user-specific path, you should put

Re: [Pythonmac-SIG] Best way to install pysqlite on 2.4 / Tiger?

2005-05-25 Thread Kevin Dangoor
On 5/24/05, Kenneth McDonald <[EMAIL PROTECTED]> wrote: > I know that Apple includes SQLite with Tiger. My question; what is the > 'best' way to install pysqlite, with the python 2.4 upgrade, under > Tiger. Specifically; > > - should I install a newer version of SQLite, or use the one Apple provid

Re: [Pythonmac-SIG] open() does'nt work with py2app

2005-07-12 Thread Kevin Dangoor
On 7/12/05, Mathieu Renauld <[EMAIL PROTECTED]> wrote: > Hi! > First forgive me for the language mistakes (I'm french)!! Your English is more understandable than some native English writers I've seen :) > > I try to make a program using wxPython and Python 2.4. > There's a function which creates

Re: [Pythonmac-SIG] Zope.Interface won't build on 10.4

2005-07-13 Thread Kevin Dangoor
I encountered this as well. I *think* something needs to change within zope.interface to work with gcc 4.x. Anyhow, all you need to do is: sudo gcc_select 3.3 Kevin On 7/13/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Maybe I should take this to one of the Twisted or Zope lists, but t

[Pythonmac-SIG] Python Eggs and Mac OS version compatibility

2005-07-19 Thread Kevin Dangoor
I have been packaging up some of my python packages in eggs: http://peak.telecommunity.com/DevCenter/PythonEggs Basically, an egg has everything you need to use a package, ready-to-run... including binary versions of extensions. It's a nice format because it enables people to just run an "easy_ins

Re: [Pythonmac-SIG] Python Eggs and Mac OS version compatibility

2005-07-20 Thread Kevin Dangoor
On 7/19/05, Bob Ippolito <[EMAIL PROTECTED]> wrote: > Pick out the sw_vers function from here: > http://svn.red-bean.com/bob/py2app/trunk/src/bdist_mpkg/tools.py That is more comforting than going with the Darwin version. I'll wrap that up for Phillip and send him a patch. Kevin _

Re: [Pythonmac-SIG] Python Eggs and Mac OS version compatibility

2005-07-20 Thread Kevin Dangoor
On 7/20/05, Michael Maibaum <[EMAIL PROTECTED]> wrote: > On 20 Jul 2005, at 13:36, Kevin Dangoor wrote: > > That is more comforting than going with the Darwin version. I'll wrap > > that up for Phillip and send him a patch. > > > Note that the 3 or 4 people

Re: [Pythonmac-SIG] Python Eggs and Mac OS version compatibility

2005-07-20 Thread Kevin Dangoor
On 7/20/05, Ronald Oussoren <[EMAIL PROTECTED]> wrote: > You don't mention the implementation of macosx_vers, but instead of > calling /usr/bin/sw_vers you could also use platform.mac_ver, > something like: Ahh, I didn't know about that. macosx_vers is basically the sw_vers function that Bob point

Re: [Pythonmac-SIG] Solid GUI toolkits for Mac?

2005-07-27 Thread Kevin Dangoor
Actually, PyObjC is about as documented as it needs to be, particularly if you start with Bob's more recent intro doc: http://bob.pythonmac.org/archives/2005/07/05/pyobjc-first-steps/ Once you learn the PyObjC conventions, the only trickery at that point is being able to read a bit of Objective-C

[Pythonmac-SIG] noob question: handling protocols and files

2005-08-05 Thread Kevin Dangoor
I've been looking through the docs on Apple's site a bit today, and I'm not entirely certain where I *should* be looking. All I need is a pointer to the correct terminology for what I'm trying to do (and if PyObjC offers any specific bits that I should be aware of), and I should be good to go from

Re: [Pythonmac-SIG] noob question: handling protocols and files

2005-08-06 Thread Kevin Dangoor
On 8/5/05, Bob Ippolito <[EMAIL PROTECTED]> wrote: > You may have to do that with a get URL apple event handler, see here: > http://developer.apple.com/documentation/Cocoa/Conceptual/ > Scriptability/Concepts/ScriptabilityOverview.html > (you shouldn't need any Carbon) I had actually been to that

Re: [Pythonmac-SIG] noob question: handling protocols and files

2005-08-06 Thread Kevin Dangoor
On 8/5/05, Bob Ippolito <[EMAIL PROTECTED]> wrote: > You may have to do that with a get URL apple event handler, see here: > http://developer.apple.com/documentation/Cocoa/Conceptual/ > Scriptability/Concepts/ScriptabilityOverview.html > (you shouldn't need any Carbon) Before I go chasing around t

Re: [Pythonmac-SIG] noob question: handling protocols and files

2005-08-06 Thread Kevin Dangoor
Less than 5 minutes ago, I said: > I'm testing by just doing "open " at the > commandline, which does bring my app to the front but does not call my > handler method. Assuming all of the above is kosher, I'll do some more > digging around to make sure that this is, in fact, the specific > handler I

Re: [Pythonmac-SIG] noob question: handling protocols and files

2005-08-07 Thread Kevin Dangoor
> $ open pydoc:///os.open > > This will open the pydoc for os.open in the applet. I guess a href="pydoc:///os.open"> in a HTML file will also work. Wow. That should be a great example for me! Thanks! > > The important issue that kept me guessing for a while is that the > AppleEvent is GURL

Re: [Pythonmac-SIG] noob question: handling protocols and files

2005-08-07 Thread Kevin Dangoor
On 8/7/05, Ronald Oussoren <[EMAIL PROTECTED]> wrote: > > Here's the objC example from Apple's doc: > > [appleEventManager setEventHandler:self > > andSelector:@selector(handleGetURLEvent:withReplyEvent:) > > forEventClass:kAEInternetSuite andEventID:kAEISGetURL]; > > > > Here's my translation to P

Re: [Pythonmac-SIG] noob question: handling protocols and files

2005-08-07 Thread Kevin Dangoor
On 8/7/05, Bob Ippolito <[EMAIL PROTECTED]> wrote: > > I was confused by @selector(handleGetURLEvent:withReplyEvent:) and the > > error message I got when I tried my first intuition. My first attempt > > was to just pass my Python method, but that complained saying that SEL > > was expected instead

[Pythonmac-SIG] py2app trying to create a symlink that already exists

2005-08-12 Thread Kevin Dangoor
I believe I ran into this before, but I didn't document it properly so I'm doomed to repeat it. (I'll document it this time!) I have an app that is running fine (and py2app is building it fine) on Tiger. I'm working on getting a Panther build put together. On both Tiger and Panther, I'm using Bob'

Re: [Pythonmac-SIG] py2app trying to create a symlink that already exists

2005-08-16 Thread Kevin Dangoor
hen later tried to copy from /Library/Firebird.framework which had symlinks in place of some of those files. That's where it failed, because copy_tree doesn't overwrite files with symlinks. Kevin On 8/12/05, Kevin Dangoor <[EMAIL PROTECTED]> wrote: > I'm using the embedde

Re: [Pythonmac-SIG] Python 2.4.1 not replacing earlier versions.

2005-08-31 Thread Kevin Dangoor
On 8/31/05, Simon Brunning <[EMAIL PROTECTED]> wrote: > On 8/31/05, Craig Amundsen <[EMAIL PROTECTED]> wrote: > > Did you mean #! /usr/local/bin/python > > or #! /usr/local/bin python ? > > I meant the latter - the first version works for me too. Thanks. > > I extrapolated "#! /u

Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread Kevin Dangoor
> On Dec 6, 2005, at 11:07 AM, Louis Pecora wrote: > > > I see there are many other approaches (SWIG, Pyrex, Psyco -- some may > > not be available on the Mac), so I thought I would start here to ask > > what people in this email list use and recommend. Earlier in the year, Phillip Eby was optimiz