Greetings,
I'm currently running into some confusing issues developing a pyobjc
application on Apple's MacOS 10.5 Leopard platform. I've tried
emailing Apple's developer mailing lists to no avail thus far, and was
hoping someone here might have some suggestions?
My problem is as follows:
I'm writing a simple image filter application, that denoises an image.
I've using two python libraries:
Python Image Library - http://www.pythonware.com/products/pil/
Python Wavelet Library - http://wavelets.scipy.org/moin/
They both install and function correctly. When I call my denoise.py
module from the command line, it correctly denoises and displays the
image @ the specified file path. So I know, that strictly as a python
module, it works.
However, when I build a pyobjc application in XCode (Apple's IDE) and
integrate my previously functioning python module into it with a
simple GUI, I run into problems building the pyobjc app. XCode states
an unchecked exception NSInternalInconsistencyException, which is
defined by Apple as:
NSInternalInconsistencyException
Name of an exception that occurs when an internal assertion fails and
implies an unexpected condition within the called code.
Available in Mac OS X v10.0 and later.
Declared in NSException.h.
So, not exactly a very helpful or specific exception. Specifically, it
is complaining about when I import the denoise.py module I created,
which works perfectly outside of XCode. I've gone through it line-by-
line, and am now convinced that it is unlikely the issue is within the
module itself. I think there is some sort of python language
configuration issue going on. I'm using my new MacBookPro, with
Leopard 10.5 and it came with Python, pyobjc, Xcode, etc. Confusing
why it would work from terminal, but not Xcode, aren't they using the
same build of Python, the one that came with my Mac?
Thank you for any assistance / insight you can provide!
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig