Re: [Pythonmac-SIG] py2app & multiprocessing

2009-08-12 Thread Daniel Ashbrook
I don't know the answer to this question, but I wanted to warn you: be careful using multiprocessing with PyObjc. I never was able to get it into a easy test case, but sometimes one or more of my multiprocessing processes would never return when used in conjunction with PyObjc, and the prog

[Pythonmac-SIG] debugging in xcode with gdb?

2009-01-21 Thread Daniel Ashbrook
I'm developing a fairly large project and have run into a crash situation. There's no exception thrown by python; it just drops into GDB. I'm developing under xcode; is there any way to use gdb to give me a hint as to where the problem is occurring? dan

Re: [Pythonmac-SIG] PYTHON PATH woes, with a twist - could a good samaritan help out?

2008-09-21 Thread Daniel Ashbrook
Hmm, strange. One thing you could try is to just download the tar.gz and install it manually - usually with "python setup.py install". I don't know how to keep easy_install from passing -q (quiet) to setup.py so you can see what's going on. dan Chris Adams wrote: Hi Dan, thanks for the quic

Re: [Pythonmac-SIG] PYTHON PATH woes, with a twist - could a good samaritan help out?

2008-09-21 Thread Daniel Ashbrook
Chris Adams wrote: I'm using bash as my shell, on Leopard 10.5.5, and in my .profile config file, I have export PYTHONPATH That line does nothing, unless you have a prior line that looks like: PYTHONPATH=/Library/Python/...:etc So what you probably want to do is: export PYTHONPATH=$PYTHON

Re: [Pythonmac-SIG] pragma mark with python in xcode?

2008-08-12 Thread Daniel Ashbrook
Hy, awesome! Who woulda thought that reading the documentation would actually come in handy? Much obliged, Mike! dan Mike Covill wrote: From Apple's "Xcode Workspace Guide:, chapter 6, section 2: http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeWorkspace/600-The_

Re: [Pythonmac-SIG] pragma mark with python in xcode?

2008-08-11 Thread Daniel Ashbrook
Nehemiah Dacres wrote: > What are u using a #pragma for in python? You See that POUND sign your using, thats a COMPILER DIRECTIVE, python is an interpreted scripting language, no PREPROCESSING allowed , (except for the .pyc code but thats compiled if you want to get technical with me) Am I mis

[Pythonmac-SIG] Can't import QTKit: Fatal Python error

2008-08-11 Thread Daniel Ashbrook
When I try to import QTKit and build and run my app, I get "Fatal Python error: Interpreter not initialized (version mismatch?)". Any ideas? dan ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-

[Pythonmac-SIG] pragma mark with python in xcode?

2008-08-07 Thread Daniel Ashbrook
Anybody know how to make #pragma mark work with python in xcode? dan ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

[Pythonmac-SIG] including python interpreter window?

2008-08-06 Thread Daniel Ashbrook
I've done some searching but can't exactly figure out how to do this. How can I include a menu item or somesuch that will bring up a live python interpreter window in my PyObjC app? I've seen the examples of injecting a python interpreter into a running app, but I want to build in the functiona

Re: [Pythonmac-SIG] PyObjC: debugging error-less crashes?

2008-07-24 Thread Daniel Ashbrook
Ronald Oussoren wrote: On 24 Jul, 2008, at 14:07, Daniel Ashbrook wrote: Ronald Oussoren wrote: Decorators like endSheetMethod aren't needed for most other methods because either the method signature is simple (all arguments are objects, as is the return value), or PyObjC can deduc

Re: [Pythonmac-SIG] PyObjC: debugging error-less crashes?

2008-07-24 Thread Daniel Ashbrook
Ronald Oussoren wrote: There was a case where I had to decorate a couple of functions with @objc.accessor or I got the same kind of no-error crash. Is it the same cause? Is there a way to know when I need to use that vs not? > That depends on the method names you're using. "Regular" accessors

Re: [Pythonmac-SIG] PyObjC: debugging error-less crashes?

2008-07-24 Thread Daniel Ashbrook
Ronald Oussoren wrote: Decorators like endSheetMethod aren't needed for most other methods because either the method signature is simple (all arguments are objects, as is the return value), or PyObjC can deduct the correct method signature from the super class or protocol definitions. There w

Re: [Pythonmac-SIG] PyObjC: debugging error-less crashes?

2008-07-23 Thread Daniel Ashbrook
related to sheet callback methods not having a fixed signature. On Wed, Jul 23, 2008 at 11:57 AM, Daniel Ashbrook <[EMAIL PROTECTED]> wrote: I'm working my way through the excellent book "Cocoa Programming for Mac OS X", but using PyObjC instead of ObjC. For the most part it's

[Pythonmac-SIG] PyObjC: debugging error-less crashes?

2008-07-23 Thread Daniel Ashbrook
SLog(u'Alert ended') if choice == NSAlertDefaultReturn: self._employeeController.remove(None) Thanks in advance for any hints, whether general or specific! Daniel Ashbrook ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig