Re: [Pythonmac-SIG] py2app cannot move to target thread error

2009-09-21 Thread Scott Frankel
Hi all, In my last post I mentioned that the qt.conf INI file was key to fixing the "cannot move to target thread" problem, caused by multiple instances of Qt running in the same app. The following setup.py file is my encapsulation of the solution. This is my first brush with py2app, s

Re: [Pythonmac-SIG] py2app cannot move to target thread error

2009-09-20 Thread Scott Frankel
ded useful information: http://doc.trolltech.com/4.4/deployment-mac.html#linking-the-application-to-qt-as-frameworks http://doc.trolltech.com/4.4/qt-conf.html Thanks Scott On Sep 18, 2009, at 9:31 AM, Christopher Barker wrote: Scott Frankel wrote: Thanks for the info and sample code! I&

Re: [Pythonmac-SIG] py2app cannot move to target thread error

2009-09-17 Thread Scott Frankel
Hi Daniel, Thanks for the info and sample code! I've now got libqsqlpsql.bundle copying to the app bundle's frameworks dir. Reading http://doc.trolltech.com/4.4/deployment-mac.html#linking-the-application-to-qt-as-frameworks , I'm knee deep in otool and install_name_tool. I had no idea I

Re: [Pythonmac-SIG] py2app cannot move to target thread error

2009-09-16 Thread Scott Frankel
etup.py solution? Do I need to dig back into my macports installations? How can I locate the source of the offending item? Thanks in advance for any suggestions! I'd be much obliged. Scott On Aug 24, 2009, at 9:49 PM, Scott Frankel wrote: If someone has any wisdom to share regarding b

Re: [Pythonmac-SIG] py2app cannot move to target thread error

2009-08-24 Thread Scott Frankel
c @4.5.2_1+psql (active) ... Any thoughts or suggestions? Thanks! Scott On Aug 19, 2009, at 10:41 AM, Scott Frankel wrote: Hello, I'm stuck somewhere between macports and py2app. I'm hopeful that someone here may be able to offer some advice on how to rectify my build

Re: [Pythonmac-SIG] py2app cannot move to target thread error

2009-08-19 Thread Scott Frankel
qt4-mac has the psql dependency: py26-py2app-devel @0.4.2_1 (active) py26-pyqt4 @4.5.4_0 (active) qt4-mac @4.5.1_0+psql (active) Thanks in advance! Scott On Aug 10, 2009, at 8:51 AM, Scott Frankel wrote: Hello, I'm troubleshooting a PyQt-PostgreSQL py2ap

[Pythonmac-SIG] py2app cannot move to target thread error

2009-08-10 Thread Scott Frankel
Hello, I'm troubleshooting a PyQt-PostgreSQL py2app error: "Cannot move to target thread". Note that a test app builds and runs happily. The error only comes up when I add PyQt4.QtSql' to py2app's option includes. eg: This works: OPTIONS = {'argv_emulation': True, 'includes':

[Pythonmac-SIG] py2app PyQt sqldrivers

2009-06-07 Thread Scott Frankel
How does one add PyQt sqldrivers to an app created with py2app? My app relies on the QPSQL driver. Unless I'm mistaken, the QPSQL driver does not appear to have been included in the macports install. Nonetheless, I have the driver on my development machine. Does libqsqlpsql.dylib have to

Re: [Pythonmac-SIG] Interpreter not initialized

2009-06-07 Thread Scott Frankel
Yes, it turned out to be a $PATH problem. Thanks! Scott On Jun 5, 2009, at 6:54 PM, Ned Deily wrote: In article , Scott Frankel wrote: Is there a way to coerce python_select? Does python_select require bash? python_select essentially only affects the command /opt/local/bin/python. If

Re: [Pythonmac-SIG] Interpreter not initialized

2009-06-05 Thread Scott Frankel
Hi Christopher, On Jun 5, 2009, at 4:58 PM, Christopher Barker wrote: Scott Frankel wrote: Is there a way to force the use of a specific version of python for py2app? python_select appears to be getting overridden somewhere/ how. it should use the one you call it with... % python

Re: [Pythonmac-SIG] Interpreter not initialized

2009-06-05 Thread Scott Frankel
macports installed libs. I've added the macports paths to bin and sbin to my $PATH. Grepping and calling port without a path demonstrates that $PATH is set correctly. Suggestions? Thanks in advance! Scott On Jun 4, 2009, at 11:04 PM, Scott Frankel wrote: I'm using py2app

Re: [Pythonmac-SIG] Interpreter not initialized

2009-06-05 Thread Scott Frankel
ely should linking to the /system python. If you can't upgrade to py26-pyqt then consider filing a bug with macports. The last trick is to use the 'install_name_tool' to actually manually (brute force) fix the linking from the /system python to the macports python.

[Pythonmac-SIG] Interpreter not initialized

2009-06-04 Thread Scott Frankel
I'm using py2app for the first time to build a PyQt app. I get the following error msg when I launch the app: Fatal Python error: Interpreter not initialized (version mismatch?) I've downloaded macports and installed its python25, pyqt, &c. I've issued the command, sudo python_se

Re: [Pythonmac-SIG] Eclipse + SWT + Python

2007-11-19 Thread Scott Frankel
I'll take a new look at wxPython and Editra. I'll also check out SPE. Time to adopt a more robust debugging scheme than tossing print statements through Emacs ... Thanks all! Scott On Nov 19, 2007, at 2:25 PM, Christopher Barker wrote: > Scott Frankel wrote: >> W

Re: [Pythonmac-SIG] Eclipse + SWT + Python

2007-11-19 Thread Scott Frankel
. That isn't a display issue, that's literally what > gets saved > (the garbage characters). > > Jim > > > On 11/19/07 3:45 PM, "Leonardo Santagada" <[EMAIL PROTECTED]> wrote: > >> Em 19/11/2007, às 17:50, Scott Frankel escreveu: >>&g

[Pythonmac-SIG] Eclipse + SWT + Python

2007-11-19 Thread Scott Frankel
Is anyone on this list using Eclipse with Python and the SWT windowing kit? I've been looking through the MacPython.org and Eclipse pages for info on combining Python and SWT. So far, I've read about the PyDev plugin that allows Eclipse to speak Python. I'd like to know if PyDev would all

[Pythonmac-SIG] _imagingft for PIL

2007-10-24 Thread Scott Frankel
Pardon the cross-post. Would anyone on this list happen to know the appropriate way to build and install _imagingft for use with PIL? My Google searches have found references to it, source code, complaints, and disclaimers; but I have not found the info I need to build & install it. I wou

Re: [Pythonmac-SIG] objc methods to pythonese

2006-03-23 Thread Scott Frankel
Thanks for the clarifications! Scott On Mar 23, 2006, at 12:06 PM, Jordan Krushen wrote: > obj-c: > [rectangle setWidth:width height:height] > > python: > rectangle.setWidth_height_(width, height) On Mar 23, 2006, at 12:11 PM, Zachery Bir wrote: > You're not assigning the result of

[Pythonmac-SIG] objc methods to pythonese

2006-03-23 Thread Scott Frankel
Apologies in advance for this tangential question. I'm trying to wrap my head around how Objective-C methods are constructed -- and more importantly, how they're converted to Python methods. Doco I've found uses as an example a method with white space between the parts of the method name.

Re: [Pythonmac-SIG] Question on user's directory ( ~ )

2006-03-20 Thread Scott Frankel
The tilde is just UNIX shorthand for the environment variable, "home." You can access environment variables in python like this: os.getenv("HOME") Scott On Mar 18, 2006, at 4:22 PM, Stewart Midwinter wrote: > I have a question on use of the tilde symbol (~) to access the current >

Re: [Pythonmac-SIG] Postgresql

2006-03-09 Thread Scott Frankel
I use psycopg to talk to postgres via python. Was relatively painless to setup. Take a look at http://initd.org/projects/psycopg1 and make sure to follow the link the latest release, psycopg2. Good luck! Scott On Mar 8, 2006, at 9:25 PM, Lee Hinde wrote: > Hi all; > > I'm havin

Re: [Pythonmac-SIG] Unix-amateur question

2006-03-07 Thread Scott Frankel
It's also possible to launch the executable directly by typing this is a terminal window: /Applications/Safari.app/Contents/MacOS/Safari For applications that want to talk back to you by printing info in the shell window, this can be very useful. To avoid having to type & retype t

Re: [Pythonmac-SIG] getting started with PyObjC

2006-03-06 Thread Scott Frankel
back with any further > questions you have. > > --Dethe > > On 3/6/06, Scott Frankel <[EMAIL PROTECTED]> wrote: >> >> Following the simple example app that Apple provides for PyObjC has >> lead me to a number of questions ... and a failed build. The example >&

[Pythonmac-SIG] getting started with PyObjC

2006-03-06 Thread Scott Frankel
Following the simple example app that Apple provides for PyObjC has lead me to a number of questions ... and a failed build. The example demonstrates using Xcode & InterfaceBuilder to build a simple app, PyAverager. My attempts at a build yield "Build failed for target "Development" erro

Re: [Pythonmac-SIG] PyObjC versions

2006-03-03 Thread Scott Frankel
Got it. Thanks! On Mar 3, 2006, at 12:15 PM, Bob Ippolito wrote: > > On Mar 3, 2006, at 12:02 PM, Scott Frankel wrote: > >> >> Exploring the brave new world of Python GUIs with PyObjC and I'm >> stymied at the download page. This doesn'

[Pythonmac-SIG] PyObjC versions

2006-03-03 Thread Scott Frankel
Exploring the brave new world of Python GUIs with PyObjC and I'm stymied at the download page. This doesn't bode well ;) Looking at http://pyobjc.sourceforge.net/software/, I've got download choices for a number of Python & OSX versions. None match my setup: Python 2.4.1 OS

Re: [Pythonmac-SIG] OT: auto launch X11 prefs

2005-09-20 Thread Scott Frankel
Disclaimer: I'm not currently using X11, nor have I ever used Open Office. That said, the first thing that comes to mind is to check the Finder's Info window on Open Office; look for the "Open with" section. I dunno about applications, but files carry with them application creator code

Re: [Pythonmac-SIG] pth file location

2005-09-16 Thread Scott Frankel
No more bad magic. Just bad memory. Forgot to comment-out an explicit python path env var. Everything seems to be working now. Thanks Scott On Sep 16, 2005, at 9:05 AM, Scott Frankel wrote: > > Still bad magic. > > Where should .pth files be placed for 3rd party modules to be

Re: [Pythonmac-SIG] pth file location

2005-09-16 Thread Scott Frankel
correspond to the path specified in the .pth file. This is on a system upgraded from 10.3 to 10.4 and python 2.3 to 2.4.1 yesterday. I've installed TigerPython24Fix and TigerPython23Compat. Thanks in advance! Scott On Sep 15, 2005, at 5:27 PM, Scott Frankel wrote: > > Where do .pth

[Pythonmac-SIG] pth file location

2005-09-15 Thread Scott Frankel
Where do .pth files go in python 2.4.1 running on osx 10.4.2? My best guess (after a few not-so-good-ones) was: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/ But my python is still looking in the wrong place for its newly compiled modules. Thanks in

[Pythonmac-SIG] bad magic

2005-09-15 Thread Scott Frankel
I am just now, finally, able to upgrade osx & python to latest release versions: 10.4.2 & 2.4.1, respectively). I've had half an eye on the traffic on this list, so installation went well. 2.4.1 is humming smoothly. I'm running into the following error, though, when my scripts import my own

[Pythonmac-SIG] late start with tiger

2005-07-28 Thread Scott Frankel
I've just migrated a machine to Tiger and have a question about the "official unofficial" mac version of python.2.4.1. Why would /usr/bin/python still be linked to python2.3 after the install? I downloaded and installed MacPython 2.4.1 from undefined.org. I also downloaded and installed both