From janssen at parc.com Sat Nov 1 23:47:47 2008 From: janssen at parc.com (Bill Janssen) Date: Sat, 1 Nov 2008 15:47:47 PDT Subject: [Pythonmac-SIG] lots of Python-Cocoa errors in XCode console window... Message-ID: <41692.1225579667@parc.com> I'm trying a simple Python-Cocoa app, using Xcode and the system Python. I'm getting lots of error messages in my Xcode console of this form: 2008-11-01 15:42:48.000 cocoa-gadget[30179:1233b] *** _NSAutoreleaseNoPool(): Object 0x3f1030 of class NSCFString autoreleased with no pool in place - just leaking Should I be worried? And if not, how can I suppress these messages? Bill From hengist.podd at virgin.net Sun Nov 2 12:14:53 2008 From: hengist.podd at virgin.net (has) Date: Sun, 2 Nov 2008 11:14:53 +0000 Subject: [Pythonmac-SIG] lots of Python-Cocoa errors in XCode console window... In-Reply-To: References: Message-ID: <04DAAB94-4B5E-4B1D-A08F-EDB641344AE9@virgin.net> Bill Janssen wrote: > I'm trying a simple Python-Cocoa app, using Xcode and the system > Python. > > I'm getting lots of error messages in my Xcode console of this form: > > 2008-11-01 15:42:48.000 cocoa-gadget[30179:1233b] *** > _NSAutoreleaseNoPool(): Object 0x3f1030 of class NSCFString > autoreleased with no pool in place - just leaking > > Should I be worried? You're leaking memory, which isn't a good thing. Are you using background threads? PyObjC automatically creates an autorelease pool for the main thread only; you need to provide autorelease pools for other threads yourself. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net From sring at nd.edu Sun Nov 2 19:39:52 2008 From: sring at nd.edu (Sarah Ring) Date: Sun, 2 Nov 2008 13:39:52 -0500 Subject: [Pythonmac-SIG] py2app error 10810... In-Reply-To: <490A03C0.7020206@noaa.gov> References: <70a08d3b0810300931l3a6de6em65f085405068f593@mail.gmail.com> <490A03C0.7020206@noaa.gov> Message-ID: <70a08d3b0811021039w7c2d4127h22f9b119057d9d69@mail.gmail.com> I have Python version 2.5.1 (r251:54863, Apr 15 2008, 22:57:26) and Py2app version 0.3 I'm not using any packages for this test, but I plan to use pyqt4 in the future. I tried py2applet --make-setup hello.py (also tried py2applet hello.py --make-setup) to create a setup.py. It goes through: *** using recipe: sip ***, *** filtering dependencies ***, *** create binaries ***, *** byte compile python files ***, but when it gets to *** creating application bundle: hello ***, at the end I see: . . . File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/file_util.py", line 119, in copy_file DistutilsFileError: can't copy '/Users/xxx/Documents/epics/Fall08/--make-setup': doesn't exist or not a regular file > /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/file_util.py(119)copy_file() (Pdb) I had just said "py2applet hello.py" and it created a .app, but I guess it was missing this setup.py. Is there another call I can use to make a setup.py? Thanks! On Thu, Oct 30, 2008 at 1:58 PM, Christopher Barker wrote: > Sarah Ring wrote: > >> LSOpenFromURLSpec() failed with error -10810 for the file >> /Users/***/Documents/epics/Fall08/hello.app >> >> Does anyone know what this means and how to resolve it? >> > > I haven't seen that, but: > > Does it do the same thing when you double-click on it? > > Which version of py2app are you using? > > Which version of Python? > > What packages are you using? > > you might want to post your setup.py > > -Chris > > > > > -- > Christopher Barker, Ph.D. > Oceanographer > > Emergency Response Division > NOAA/NOS/OR&R (206) 526-6959 voice > 7600 Sand Point Way NE (206) 526-6329 fax > Seattle, WA 98115 (206) 526-6317 main reception > > Chris.Barker at noaa.gov > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > -------------- next part -------------- An HTML attachment was scrubbed... URL: From janssen at parc.com Mon Nov 3 00:02:22 2008 From: janssen at parc.com (Bill Janssen) Date: Sun, 2 Nov 2008 15:02:22 PST Subject: [Pythonmac-SIG] lots of Python-Cocoa errors in XCode console window... In-Reply-To: <04DAAB94-4B5E-4B1D-A08F-EDB641344AE9@virgin.net> References: <04DAAB94-4B5E-4B1D-A08F-EDB641344AE9@virgin.net> Message-ID: <54233.1225666942@parc.com> has wrote: > You're leaking memory, which isn't a good thing. > > Are you using background threads? PyObjC automatically creates an > autorelease pool for the main thread only; you need to provide > autorelease pools for other threads yourself. Yes, I am using background threads. I have some functions triggered by actions which make calls on remote services, and so may take arbitrarily long to execute; I fork worker threads to do that fetch. I'm using Python's threading.Thread; should my "target" function look like this? def thread_target(*args): pool = NSAutoreleasePool.alloc().init() try: ... finally: del pool Then, in the main thread: threading.Thread(target=thread_target,args=(...)).start() Bill From Jack.Jansen at cwi.nl Mon Nov 3 13:32:26 2008 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Mon, 3 Nov 2008 13:32:26 +0100 Subject: [Pythonmac-SIG] lots of Python-Cocoa errors in XCode console window... In-Reply-To: <54233.1225666942@parc.com> References: <04DAAB94-4B5E-4B1D-A08F-EDB641344AE9@virgin.net> <54233.1225666942@parc.com> Message-ID: <65E27EF0-492D-439E-A803-FF79C6C95757@cwi.nl> On 3 nov 2008, at 00:02, Bill Janssen wrote: > has wrote: > >> You're leaking memory, which isn't a good thing. >> >> Are you using background threads? PyObjC automatically creates an >> autorelease pool for the main thread only; you need to provide >> autorelease pools for other threads yourself. > > Yes, I am using background threads. I have some functions triggered > by > actions which make calls on remote services, and so may take > arbitrarily > long to execute; I fork worker threads to do that fetch. I'm using > Python's threading.Thread; should my "target" function look like this? > > def thread_target(*args): > pool = NSAutoreleasePool.alloc().init() > try: > ... > finally: > del pool I don't even think you need the try/finally and the del: def thread_target(*args): pool = NSAutoReleasePool.alloc().init() ... The pool will be discarded when the thread exits, and that's that. Of course, if you want the pool to be emptied more often you have to add code to do that. -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From janssen at parc.com Mon Nov 3 17:00:39 2008 From: janssen at parc.com (Bill Janssen) Date: Mon, 3 Nov 2008 08:00:39 PST Subject: [Pythonmac-SIG] lots of Python-Cocoa errors in XCode console window... In-Reply-To: <65E27EF0-492D-439E-A803-FF79C6C95757@cwi.nl> References: <04DAAB94-4B5E-4B1D-A08F-EDB641344AE9@virgin.net> <54233.1225666942@parc.com> <65E27EF0-492D-439E-A803-FF79C6C95757@cwi.nl> Message-ID: <63047.1225728039@parc.com> So, how does the automatic GC in ObjC-2.0 play into this? Bill Jack Jansen wrote: > > On 3 nov 2008, at 00:02, Bill Janssen wrote: > > > has wrote: > > > >> You're leaking memory, which isn't a good thing. > >> > >> Are you using background threads? PyObjC automatically creates an > >> autorelease pool for the main thread only; you need to provide > >> autorelease pools for other threads yourself. > > > > Yes, I am using background threads. I have some functions triggered > > by > > actions which make calls on remote services, and so may take > > arbitrarily > > long to execute; I fork worker threads to do that fetch. I'm using > > Python's threading.Thread; should my "target" function look like this? > > > > def thread_target(*args): > > pool = NSAutoreleasePool.alloc().init() > > try: > > ... > > finally: > > del pool > > I don't even think you need the try/finally and the del: > def thread_target(*args): > pool = NSAutoReleasePool.alloc().init() > ... > > The pool will be discarded when the thread exits, and that's that. > > Of course, if you want the pool to be emptied more often you have to > add code to do that. > > > -- > Jack Jansen, , http://www.cwi.nl/~jack > If I can't dance I don't want to be part of your revolution -- Emma > Goldman > > From Chris.Barker at noaa.gov Mon Nov 3 19:03:17 2008 From: Chris.Barker at noaa.gov (Christopher Barker) Date: Mon, 03 Nov 2008 10:03:17 -0800 Subject: [Pythonmac-SIG] py2app error 10810... In-Reply-To: <70a08d3b0811021039w7c2d4127h22f9b119057d9d69@mail.gmail.com> References: <70a08d3b0810300931l3a6de6em65f085405068f593@mail.gmail.com> <490A03C0.7020206@noaa.gov> <70a08d3b0811021039w7c2d4127h22f9b119057d9d69@mail.gmail.com> Message-ID: <490F3CE5.2050003@noaa.gov> Sarah Ring wrote: > I have Python version 2.5.1 (r251:54863, Apr 15 2008, 22:57:26) and > Py2app version 0.3 You may want to upgrade: $easy_install -U py2app should do it. > I'm not using any packages for this test, but I plan to use pyqt4 in the > future. > > I tried py2applet --make-setup hello.py That should create a setup.py for you, which you can then modify. What do you get? (also tried py2applet hello.py > --make-setup) that's not the right syntax, which explains: > '/Users/xxx/Documents/epics/Fall08/--make-setup': doesn't exist or not > a regular file to create a setup.py. It goes through: *** using recipe: > sip ***, *** filtering dependencies ***, *** create binaries ***, *** this makes me think you are using pyqt in your hello.py script -- pyqt uses SIP. You may want to start with the simplest script possible, then add in packages, so you know where the problems are. > I had just said "py2applet hello.py" and it created a .app, but I guess > it was missing this setup.py. Is there another call I can use to make a > setup.py? the above should do it -- be sure to let us know exactly what output you get. the other option is to copy and paste a setup.py from the docs, and start from there -- it's really not any harder. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker at noaa.gov From Chris.Barker at noaa.gov Mon Nov 3 19:04:53 2008 From: Chris.Barker at noaa.gov (Christopher Barker) Date: Mon, 03 Nov 2008 10:04:53 -0800 Subject: [Pythonmac-SIG] py2app doesn't work with virtualenv on Leopard In-Reply-To: References: <9c34c72e0810311026g5cf067d3y73afccb4fb8ee0b5@mail.gmail.com> <490B4B50.2010702@noaa.gov> <9c34c72e0810311322g335e6eafm57bde9efc86c8a46@mail.gmail.com> <490B7FBA.6080604@noaa.gov> Message-ID: <490F3D45.6070806@noaa.gov> Python Nutter wrote: > Go to the virtualenv website and post a bug report, its the only way > to get the issues notified to the developers. Well, the question is: is this a virtualenv bug or a py2app bug? I think it's more likely that it's a py2app issue, but I suppose it might be solved form either side. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker at noaa.gov From hengist.podd at virgin.net Mon Nov 3 19:10:34 2008 From: hengist.podd at virgin.net (has) Date: Mon, 3 Nov 2008 18:10:34 +0000 Subject: [Pythonmac-SIG] lots of Python-Cocoa errors in XCode console window... In-Reply-To: <54233.1225666942@parc.com> References: <04DAAB94-4B5E-4B1D-A08F-EDB641344AE9@virgin.net> <54233.1225666942@parc.com> Message-ID: On 2 Nov 2008, at 23:02, Bill Janssen wrote: >> Are you using background threads? PyObjC automatically creates an >> autorelease pool for the main thread only; you need to provide >> autorelease pools for other threads yourself. > > Yes, I am using background threads. I have some functions triggered > by > actions which make calls on remote services, and so may take > arbitrarily > long to execute; I fork worker threads to do that fetch. I'm using > Python's threading.Thread; should my "target" function look like this? > > def thread_target(*args): > pool = NSAutoreleasePool.alloc().init() > try: > ... > finally: > del pool I believe that's what the PyObjC documentation recommends. has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net From hengist.podd at virgin.net Mon Nov 3 19:13:57 2008 From: hengist.podd at virgin.net (has) Date: Mon, 3 Nov 2008 18:13:57 +0000 Subject: [Pythonmac-SIG] lots of Python-Cocoa errors in XCode console window... In-Reply-To: <63047.1225728039@parc.com> References: <04DAAB94-4B5E-4B1D-A08F-EDB641344AE9@virgin.net> <54233.1225666942@parc.com> <65E27EF0-492D-439E-A803-FF79C6C95757@cwi.nl> <63047.1225728039@parc.com> Message-ID: On 3 Nov 2008, at 16:00, Bill Janssen wrote: > So, how does the automatic GC in ObjC-2.0 play into this? PyObjC doesn't work with ObjC 2.0's garbage collector. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net From janssen at parc.com Mon Nov 3 19:21:14 2008 From: janssen at parc.com (Bill Janssen) Date: Mon, 3 Nov 2008 10:21:14 PST Subject: [Pythonmac-SIG] lots of Python-Cocoa errors in XCode console window... In-Reply-To: References: <04DAAB94-4B5E-4B1D-A08F-EDB641344AE9@virgin.net> <54233.1225666942@parc.com> <65E27EF0-492D-439E-A803-FF79C6C95757@cwi.nl> <63047.1225728039@parc.com> Message-ID: <65693.1225736474@parc.com> Ah, thanks. Bill has wrote: > On 3 Nov 2008, at 16:00, Bill Janssen wrote: > > > So, how does the automatic GC in ObjC-2.0 play into this? > > > PyObjC doesn't work with ObjC 2.0's garbage collector. > > HTH > > has > -- > Control AppleScriptable applications from Python, Ruby and ObjC: > http://appscript.sourceforge.net > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig From janssen at parc.com Mon Nov 3 19:22:12 2008 From: janssen at parc.com (Bill Janssen) Date: Mon, 3 Nov 2008 10:22:12 PST Subject: [Pythonmac-SIG] lots of Python-Cocoa errors in XCode console window... In-Reply-To: References: <04DAAB94-4B5E-4B1D-A08F-EDB641344AE9@virgin.net> <54233.1225666942@parc.com> Message-ID: <65709.1225736532@parc.com> has wrote: > >> Are you using background threads? PyObjC automatically creates an > >> autorelease pool for the main thread only; you need to provide > >> autorelease pools for other threads yourself. > > > > Yes, I am using background threads. I have some functions triggered > > by > > actions which make calls on remote services, and so may take > > arbitrarily > > long to execute; I fork worker threads to do that fetch. I'm using > > Python's threading.Thread; should my "target" function look like this? > > > > def thread_target(*args): > > pool = NSAutoreleasePool.alloc().init() > > try: > > ... > > finally: > > del pool > > I believe that's what the PyObjC documentation recommends. Why don't I need to "drain" the pool before releasing it? Bill From patrick at raptr.com Tue Nov 4 22:43:57 2008 From: patrick at raptr.com (Patrick Li) Date: Tue, 4 Nov 2008 13:43:57 -0800 Subject: [Pythonmac-SIG] Getting window class names on OSX? Message-ID: <2b5a48740811041343x6a3f552fhd7c92915e65fbe92@mail.gmail.com> Hi, I'm interested in finding a way to enumerate through all the open windows on OSX and getting their window title names. On windows, I can call *win32gui* .*EnumWindows to get this information. I haven't found a similar way to do it for OSX yet.* Thanks in advance, Patrick -------------- next part -------------- An HTML attachment was scrubbed... URL: From hculver at cfl.rr.com Wed Nov 5 03:08:18 2008 From: hculver at cfl.rr.com (Hunt Culver) Date: Tue, 4 Nov 2008 21:08:18 -0500 Subject: [Pythonmac-SIG] newbie questions: import site failed and proper location of site-packages Message-ID: I was trying to put my own .py modules in the site-packages folder but they were loading as expected, so I searched various threads and discovered there are many possible site-package directories on a Mac OS 10.5 system. Then after more troubleshoot I discovered that import site was not working. So I removed MacPython entirely and started over using the instructions for Python 2.5 for OS X at http://www.python.org/download/mac/ Using the traceback option as mentioned in a july 2005 thread this is a part of the diagnostics I got in terminal when I executed python -v. 'import site' failed; traceback: Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site.py", line 417, in main() File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site.py", line 402, in main paths_in_sys = addsitepackages(paths_in_sys) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site.py", line 208, in addsitepackages addsitedir(sitedir, known_paths) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site.py", line 169, in addsitedir addpackage(sitedir, name, known_paths) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site.py", line 142, in addpackage if not dircase in known_paths and os.path.exists(dir): File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/posixpath.py", line 171, in exists st = os.stat(path) TypeError: stat() argument 1 must be (encoded string without NULL bytes), not str This is a new install, so any ideas what may be the cause and how to fix this? And back to the original question; which site-package directory works with MacPython 2.5? Thanks, Hunt From Chris.Barker at noaa.gov Wed Nov 5 23:02:22 2008 From: Chris.Barker at noaa.gov (Christopher Barker) Date: Wed, 05 Nov 2008 14:02:22 -0800 Subject: [Pythonmac-SIG] newbie questions: import site failed and proper location of site-packages In-Reply-To: References: Message-ID: <491217EE.4060008@noaa.gov> Hunt Culver wrote: > I was trying to put my own .py modules in the site-packages folder but > they were loading as expected, > 'import site' failed; traceback: odd -- is this what you get when you start up python all by itself: $ python > And back to the original question; which site-package directory works > with MacPython 2.5? /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/ however, what I would do is use distutils to install your custom stuff, rather than doing it by hand. All you need is a simple setup.py file. If your stuff is under active development, then use setuptools, and: $ python setup.py --develop that will put links to your stuff in site-packages, pointing to your code, so when you change things, the changes will show up everywhere. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker at noaa.gov From rlotun at getpeer.com Wed Nov 5 16:47:21 2008 From: rlotun at getpeer.com (Reza Lotun) Date: Wed, 5 Nov 2008 15:47:21 +0000 Subject: [Pythonmac-SIG] Py2app build problem - ImportError No Module named 'AppKit' Message-ID: <356e30830811050747k783c17b7h47021aeabaaf45aa@mail.gmail.com> Hello all, I have an application that *used* to freeze to a .app without a problem, but has recently been acting up for some reason. Though it builds fine, it keeps on complaining about being unable to find AppKit even though I seem to be forcing it to package it. I'm basically using the following setup: pkgs = [..., 'objc', 'Foundation', 'AppKit'] mods = [...] setup( app=[fullpath(prepend, 'Program.py')], setup_requires=['py2app'], options=dict(py2app=dict( optimize=2, iconfile=fullpath(prepend, 'res/icon'), resources=[fullpath(prepend, 'res')], site_packages=1, argv_emulation=1, packages=pkgs, includes=mods, frameworks=['CoreFoundation', 'Foundation', 'AppKit'], )), ) I've been playing around with options as much as I can, and I have upgraded py2app to the latest version I could find: py2app - 0.4.2 modulegraph - 0.7.1 altgraph - 0.6.8 macholib - 1.2 Are there any pointers someone can fire in my direction?? Thanks, Reza -- Reza Lotun Senior Engineer GetPeer Limited reza at getpeer.com +44 (0)7521 310 763 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Chris.Barker at noaa.gov Thu Nov 6 18:13:31 2008 From: Chris.Barker at noaa.gov (Christopher Barker) Date: Thu, 06 Nov 2008 09:13:31 -0800 Subject: [Pythonmac-SIG] Py2app build problem - ImportError No Module named 'AppKit' In-Reply-To: <356e30830811050747k783c17b7h47021aeabaaf45aa@mail.gmail.com> References: <356e30830811050747k783c17b7h47021aeabaaf45aa@mail.gmail.com> Message-ID: <491325BB.7000505@noaa.gov> Reza Lotun wrote: > Hello all, > > I have an application that *used* to freeze to a .app without a problem, > but has recently been acting up for some reason. Though it builds fine, > it keeps on complaining about being unable to find AppKit even though I > seem to be forcing it to package it. Have you looked in the bundle to see if the AppKit Framework is there? -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker at noaa.gov From reza at getpeer.com Thu Nov 6 18:34:13 2008 From: reza at getpeer.com (Reza Lotun) Date: Thu, 6 Nov 2008 17:34:13 +0000 Subject: [Pythonmac-SIG] Py2app build problem - ImportError No Module named 'AppKit' In-Reply-To: <491325BB.7000505@noaa.gov> References: <356e30830811050747k783c17b7h47021aeabaaf45aa@mail.gmail.com> <491325BB.7000505@noaa.gov> Message-ID: <356e30830811060934s51920642m6430dd97d6f4087c@mail.gmail.com> Hi Chris, Well, I'm not quite sure if this answers your question, but if my app is calle MyProg.app, then in MyProg.app/Contents/Resources/lib/python2.5 drwxr-xr-x 17 rlotun staff 578 6 Nov 17:26 AppKit drwxr-xr-x 15 rlotun staff 510 6 Nov 17:26 Foundation drwxr-xr-x 6 rlotun staff 204 6 Nov 17:26 bcrypt lrwxr-xr-x 1 rlotun staff 77 6 Nov 17:26 config -> /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config drwxr-xr-x 10 rlotun staff 340 6 Nov 17:26 lib-dynload drwxr-xr-x 34 rlotun staff 1156 6 Nov 17:26 objc -rw-r--r-- 1 rlotun staff 3969855 6 Nov 17:26 site-packages.zip lrwxr-xr-x 1 rlotun staff 13 6 Nov 17:26 site.py -> ../../site.py drwxr-xr-x 18 rlotun staff 612 6 Nov 17:26 xml and AppKit and Foundation respectively I have: -rw-r--r-- 1 rlotun staff 100980 16 Sep 2007 PyObjCOverrides.bridgesupport -rw-r--r-- 1 rlotun staff 1067 16 Sep 2007 __init__.py -rw-r--r-- 1 rlotun staff 1118 17 Dec 2007 __init__.pyc -rwxr-xr-x 1 rlotun staff 38372 6 Nov 17:26 _appmain.so -rwxr-xr-x 1 rlotun staff 37352 6 Nov 17:26 _carbon.so -rwxr-xr-x 1 rlotun staff 37088 6 Nov 17:26 _inlines.so -rw-r--r-- 1 rlotun staff 658 16 Sep 2007 _nsapp.py -rw-r--r-- 1 rlotun staff 1866 17 Dec 2007 _nsapp.pyc -rwxr-xr-x 1 rlotun staff 46576 6 Nov 17:26 _nsbezierpath.so -rwxr-xr-x 1 rlotun staff 46496 6 Nov 17:26 _nsbitmap.so -rwxr-xr-x 1 rlotun staff 42244 6 Nov 17:26 _nsmatrix.so -rwxr-xr-x 1 rlotun staff 46500 6 Nov 17:26 _nsopengl.so -rwxr-xr-x 1 rlotun staff 38268 6 Nov 17:26 _nsquickdrawview.so -rwxr-xr-x 1 rlotun staff 42296 6 Nov 17:26 _nsview.so -rwxr-xr-x 1 rlotun staff 42364 6 Nov 17:26 _nswindow.so and -rw-r--r-- 1 rlotun staff 71572 16 Sep 2007 PyObjCOverrides.bridgesupport -rwxr-xr-x 1 rlotun staff 69080 6 Nov 17:26 _NSDecimal.so -rw-r--r-- 1 rlotun staff 924 16 Sep 2007 __init__.py -rw-r--r-- 1 rlotun staff 1147 17 Dec 2007 __init__.pyc -rwxr-xr-x 1 rlotun staff 42680 6 Nov 17:26 _data.so -rwxr-xr-x 1 rlotun staff 46428 6 Nov 17:26 _functioncallbacks.so -rw-r--r-- 1 rlotun staff 598 16 Sep 2007 _functiondefines.py -rw-r--r-- 1 rlotun staff 1463 17 Dec 2007 _functiondefines.pyc -rwxr-xr-x 1 rlotun staff 44060 6 Nov 17:26 _inlines.so -rwxr-xr-x 1 rlotun staff 42292 6 Nov 17:26 _netservice.so -rwxr-xr-x 1 rlotun staff 67632 6 Nov 17:26 _nscoder.so -rwxr-xr-x 1 rlotun staff 42176 6 Nov 17:26 _string.so -rwxr-xr-x 1 rlotun staff 38104 6 Nov 17:26 _typecode.so Is there anything else I can check? Thanks, Reza On Thu, Nov 6, 2008 at 5:13 PM, Christopher Barker wrote: > Reza Lotun wrote: >> >> Hello all, >> >> I have an application that *used* to freeze to a .app without a problem, >> but has recently been acting up for some reason. Though it builds fine, it >> keeps on complaining about being unable to find AppKit even though I seem to >> be forcing it to package it. > > Have you looked in the bundle to see if the AppKit Framework is there? > > -Chris > > > -- > Christopher Barker, Ph.D. > Oceanographer > > Emergency Response Division > NOAA/NOS/OR&R (206) 526-6959 voice > 7600 Sand Point Way NE (206) 526-6329 fax > Seattle, WA 98115 (206) 526-6317 main reception > > Chris.Barker at noaa.gov > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > -- Reza Lotun Senior Software Engineer GetPeer Limited reza at getpeer.com From Chris.Barker at noaa.gov Thu Nov 6 18:53:13 2008 From: Chris.Barker at noaa.gov (Christopher Barker) Date: Thu, 06 Nov 2008 09:53:13 -0800 Subject: [Pythonmac-SIG] Py2app build problem - ImportError No Module named 'AppKit' In-Reply-To: <356e30830811060934s51920642m6430dd97d6f4087c@mail.gmail.com> References: <356e30830811050747k783c17b7h47021aeabaaf45aa@mail.gmail.com> <491325BB.7000505@noaa.gov> <356e30830811060934s51920642m6430dd97d6f4087c@mail.gmail.com> Message-ID: <49132F09.8040106@noaa.gov> Reza Lotun wrote: > MyProg.app/Contents/Resources/lib/python2.5 > > drwxr-xr-x 17 rlotun staff 578 6 Nov 17:26 AppKit > drwxr-xr-x 15 rlotun staff 510 6 Nov 17:26 Foundation hmm - it looks like it's there alright. how is it imported? and what exactly is the error? > Is there anything else I can check? You might want to print sys.path, just to make sure you know what it's doing. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker at noaa.gov From hculver at cfl.rr.com Fri Nov 7 03:57:14 2008 From: hculver at cfl.rr.com (Hunt Culver) Date: Thu, 6 Nov 2008 21:57:14 -0500 Subject: [Pythonmac-SIG] newbie questions: import site failed and proper location of site-packages Message-ID: <0A4C8396-0258-48D9-8BE4-FF3596C380EA@cfl.rr.com> Yes, Chris, When I go to terminal and type in python I get this message: 'import site' failed; use -v for traceback But python proceeds to load. However, since site.py is not loaded I cannot get to the site-packages directory. Then if I return to terminal and enter python -v, I get a long list of executed commands and the one that fails I showed in a previous email. This should be a standard load of MacPython, so I don't know why arrangement is "unique" such that I am getting this message and no one else has - no other threads on this topic. With regard to your other reply, I have not used distutils so I'll have to read up on it -- after I get sites.py to load. Thanks, From nirnimesh at gmail.com Fri Nov 7 17:52:45 2008 From: nirnimesh at gmail.com (Nirnimesh) Date: Fri, 7 Nov 2008 22:22:45 +0530 Subject: [Pythonmac-SIG] py2app: Packing my modules in site-packages.py Message-ID: Hi, I'm using py2app to package my scripts into a standalone app. I have a couple of modules residing on my system which are imported by my main script (Example: module 'mymod' resides at /Users/nirnimesh/mymod). My main script (/Users/nirnimesh/my_app/main.py) alters sys.path to make the dependency modules importable (ie. sys.path.append('..')) However, I'm unable to figure out the correct way to configure the setup script so that my dependency modules get packed into the final package's site-packages.zip. I'm assuming I have to fill up some option, but I'm unable to figure out which. Alternatively, if I alter sys.path in my setup.py script itself, can I expect my dependency modules to get packaged in site-packages.zip? Any help is greatly appreciated. Thanks -- Gravitation is not responsible for people falling in love. -- Albert Einstein. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Chris.Barker at noaa.gov Fri Nov 7 22:05:36 2008 From: Chris.Barker at noaa.gov (Christopher Barker) Date: Fri, 07 Nov 2008 13:05:36 -0800 Subject: [Pythonmac-SIG] py2app: Packing my modules in site-packages.py In-Reply-To: References: Message-ID: <4914ADA0.5030603@noaa.gov> Nirnimesh wrote: > My > main script (/Users/nirnimesh/my_app/main.py) alters sys.path to make > the dependency modules importable (ie. sys.path.append('..')) Ideally, avoid that. A better alternative is to install your own modules into the system with setuptools --develop option: python setup.py develop If you really do need to add to sys.path, then: > Alternatively, if I alter sys.path in my setup.py script itself, can I > expect my dependency modules to get packaged in site-packages.zip? yes, that should work -- but you'll probably not want to add that sys.path.append in your code -- you can check for the "sys.frozen" attribute to know if the code is running inside an app bundle or not. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker at noaa.gov From alexandre at quessy.net Sat Nov 8 00:37:14 2008 From: alexandre at quessy.net (Alexandre Quessy) Date: Fri, 7 Nov 2008 18:37:14 -0500 Subject: [Pythonmac-SIG] Building an app with dependencies Message-ID: <72236ba90811071537j767e16f5vac6e26215c886ff@mail.gmail.com> Hi all, I am trying to build a Python Mac OS X application that has quite a lot of dependencies. We rely on wx, appscript, objc, zope, twisted and more. Below I provide my setup.py script. I am trying to use py2app (version py2app-0.3.6-py2.4.egg) as mentionned on the page http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html#uninstalling-py2app-0-2-x-or-earlier . When I try to build it I get the following error : "running py2app """ Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/py2app-0.3.6-py2.4.egg/py2app/build_app.py", line 548, in _run self.run_normal() File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/py2app-0.3.6-py2.4.egg/py2app/build_app.py", line 600, in run_normal mf = self.get_modulefinder() File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/py2app-0.3.6-py2.4.egg/py2app/build_app.py", line 508, in get_modulefinder debug=debug, File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/modulegraph-0.7-py2.4.egg/modulegraph/find_modules.py", line 243, in find_modules File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/modulegraph-0.7-py2.4.egg/modulegraph/find_modules.py", line 179, in find_needed_modules TypeError: unsubscriptable object > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/modulegraph-0.7-py2.4.egg/modulegraph/find_modules.py(179)find_needed_modules() (Pdb) interrupted" """ .... below is my complete setup.py script. Anyone has an idea on why i get this ? Is one of my arguments of a bad type ? Also, is there an alternative to listing the whole list of packages and modules to be included in the app? I am using Tiger, but I would like this to work also on Leopard, if possible. Thanks !! -- Alexandre Quessy http://alexandre.quessy.net/ ------------------------ import sys from distutils.core import setup import py2app # --------------------------------- # path: for p in ['../lib','../deps/eggs','../deps/suds-0.2.8']: sys.path.append(p) # --------------------------------- # packages are directories of python modules with an __init__.py file. ALLPACKAGES= ['wx','suds','appscript','mactypes','twisted','restclient','xml','objc','QTKit','AppKit'] # modules are python files. ALLMODULES= ['feedparser','ConfigParser','urlparse','htmllib', 'formatter','HTMLParser','pprint', 'os','time','copy','subprocess','glob','urllib','md5','urllib2','sys','shelve','mactypes'] # we would be better to put those in a package: MOREMODULES = ['RawItem','RawChannel','RawConfig','RawSerializable','RawFilter','RawItemsManager','RawMobileMuse','RawSiftAggregator','RawStateSaver','RawTextConvert','saveQuicktimeStream','LivecastSupport','RawHypertextImageExtractor','wxSupport','lib_rawmaterials','osc_protocol','RawHypertextStripper','RawYoutubeRipper'] for m in MOREMODULES: ALLMODULES.append(m) print "----------------------------" print "ALLMODULES:",ALLMODULES print "ALLPACKAGES:",ALLPACKAGES print "----------------------------" # --------------------------------- # Build the .app file setup( options={ 'py2app':{ 'iconfile':'resources/RawMaterials.icns', 'packages':ALLPACKAGES, 'includes':ALLMODULES, 'site_packages':True, 'resources':['resources/License.txt'], 'plist':dict( CFBundleName = "RawMaterials", CFBundleShortVersionString = "0.3.0", # must be in X.X.X format CFBundleGetInfoString = "RawMaterials 0.3.0", CFBundleExecutable = "RawMaterials", CFBundleIdentifier = "ca.qc.sat.rawmaterials", ) }, }, app=[ 'RawMaterials.py' ] ) From janssen at parc.com Sat Nov 8 03:24:16 2008 From: janssen at parc.com (Bill Janssen) Date: Fri, 7 Nov 2008 18:24:16 PST Subject: [Pythonmac-SIG] thanks for PyObjC! Message-ID: I've been using the Python-Cocoa application template in Xcode 3, and I'm just blown away by how *easy* it is to develop native Cocoa apps with Python. Simply amazing. Nicest UI toolkit I've ever played with, too. Thanks to all of you who worked on it -- it's grrrreaaat! Bill (Oh, and let me slip in a plug for Aaron Hillegass' book, COCOA PROGRAMMING FOR MAC OS X, which has nice explanations of the various patterns the toolkit uses.) From joe at strout.net Sat Nov 8 15:45:02 2008 From: joe at strout.net (Joe Strout) Date: Sat, 8 Nov 2008 07:45:02 -0700 Subject: [Pythonmac-SIG] thanks for PyObjC! In-Reply-To: References: Message-ID: On Nov 7, 2008, at 7:24 PM, Bill Janssen wrote: > I've been using the Python-Cocoa application template in Xcode 3, and > I'm just blown away by how *easy* it is to develop native Cocoa apps > with Python. Simply amazing. Nicest UI toolkit I've ever played > with, too. I agree, PyObjC rocks and its integration with XCode is very nice. > Thanks to all of you who worked on it -- it's grrrreaaat! I second that! > (Oh, and let me slip in a plug for Aaron Hillegass' book, COCOA > PROGRAMMING FOR MAC OS X, which has nice explanations of the various > patterns the toolkit uses.) I second that too; it's a good book, and it's not hard to convert from ObjC to PyObjC as you go through the examples and exercises. Best, - Joe From massimodisasha at yahoo.it Sun Nov 9 12:55:14 2008 From: massimodisasha at yahoo.it (Massimo Di Stefano) Date: Sun, 9 Nov 2008 12:55:14 +0100 Subject: [Pythonmac-SIG] thanks for PyObjC! In-Reply-To: References: Message-ID: <8A9FBFFF-51C2-46B9-9216-1F3C2DDA9F18@yahoo.it> Hi, i'm tring to runs the example files at : http://pyobjc.sourceforge.net/examples/ but unluky something is wrong in my python system, i tried from the python consolle : >>import Foundation, AppKit >>AppKit.NSBeep() it works, but tring the examples code like .. PyObjCExample-Python Address Label i've these log : sashas-macbook-pro-15:PyObjCExample-Python Address Label sasha$ python setup.py py2app running py2app creating /Users/sasha/Downloads/PyObjCExample-Python Address Label/build creating /Users/sasha/Downloads/PyObjCExample-Python Address Label/ build/bdist.macosx-10.5-i386 creating /Users/sasha/Downloads/PyObjCExample-Python Address Label/ build/bdist.macosx-10.5-i386/python2.5-semi_standalone creating /Users/sasha/Downloads/PyObjCExample-Python Address Label/ build/bdist.macosx-10.5-i386/python2.5-semi_standalone/app creating /Users/sasha/Downloads/PyObjCExample-Python Address Label/ build/bdist.macosx-10.5-i386/python2.5-semi_standalone/app/collect creating /Users/sasha/Downloads/PyObjCExample-Python Address Label/ build/bdist.macosx-10.5-i386/python2.5-semi_standalone/app/temp creating /Users/sasha/Downloads/PyObjCExample-Python Address Label/dist creating build/bdist.macosx-10.5-i386/python2.5-semi_standalone/app/ lib-dynload creating build/bdist.macosx-10.5-i386/python2.5-semi_standalone/app/ Frameworks *** filtering dependencies *** 362 total 353 filtered 3 orphaned 9 remaining *** create binaries *** creating python loader for extension 'cElementTree' *** byte compile python files *** Traceback (most recent call last): File "/Library/Python/2.5/site-packages/py2app-0.3.6-py2.5.egg/ py2app/build_app.py", line 548, in _run self.run_normal() File "/Library/Python/2.5/site-packages/py2app-0.3.6-py2.5.egg/ py2app/build_app.py", line 619, in run_normal self.create_binaries(py_files, pkgdirs, extensions, loader_files) File "/Library/Python/2.5/site-packages/py2app-0.3.6-py2.5.egg/ py2app/build_app.py", line 683, in create_binaries dry_run=self.dry_run) File "/Library/Python/2.5/site-packages/py2app-0.3.6-py2.5.egg/ py2app/util.py", line 204, in byte_compile if force or newer(mod.filename, cfile): File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/distutils/dep_util.py", line 22, in newer raise DistutilsFileError, "file '%s' does not exist" % source DistutilsFileError: file '/Library/Python/2.5/site-packages/ elementtree-1.2.7_20070827_preview-py2.5.egg/elementtree/ ElementIron.pyc' does not exist > /System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/distutils/dep_util.py(22)newer() -> raise DistutilsFileError, "file '%s' does not exist" % source (Pdb) q tring it using the -A flag : setup.py py2app -A the application is created but tring to start it it give me a message "AppKit" not found and open a consolle for to see the error message please can you help me to have it working? thanks foer any help/suggestion. regards, Massimo On Nov 9, 2008, at 12:00 PM, pythonmac-sig-request at python.org wrote: >> >> I've been using the Python-Cocoa application template in Xcode 3, and >> I'm just blown away by how *easy* it is to develop native Cocoa apps >> with Python. Simply amazing. Nicest UI toolkit I've ever played >> with, too. > > I agree, PyObjC rocks and its integration with XCode is very nice. > >> Thanks to all of you who worked on it -- it's grrrreaaat! > > I second that! > >> (Oh, and let me slip in a plug for Aaron Hillegass' book, COCOA >> PROGRAMMING FOR MAC OS X, which has nice explanations of the various >> patterns the toolkit uses.) > > I second that too; it's a good book, and it's not hard to convert > from ObjC to PyObjC as you go through the examples and exercises. Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com From Chris.Barker at noaa.gov Mon Nov 10 18:38:58 2008 From: Chris.Barker at noaa.gov (Christopher Barker) Date: Mon, 10 Nov 2008 09:38:58 -0800 Subject: [Pythonmac-SIG] Building an app with dependencies In-Reply-To: <72236ba90811071537j767e16f5vac6e26215c886ff@mail.gmail.com> References: <72236ba90811071537j767e16f5vac6e26215c886ff@mail.gmail.com> Message-ID: <491871B2.9050707@noaa.gov> Alexandre Quessy wrote: > I am trying to build a Python Mac OS X application that has quite a > lot of dependencies. We rely on wx, appscript, objc, zope, twisted and > more. That can be a challenge, I'm not sure how well all of those are supported by py2app recipes -- but some are! > Below I provide my setup.py script. You've included a while bunch of stuff by ahnd. In general, you don't want to do that. Py2app examines your code and tries to include everything you need -- it does fail on dynamically imported modules, however. Try running py2app with no explicit packages or modules included first, then add just those that py2app doesn't pick up by itself. > I am trying to use py2app > (version py2app-0.3.6-py2.4.egg) you'll want the latest version. try: $ easy_install -U py2app > I am using Tiger, but I would like this to work also on Leopard, If you build on 10.4, it should run fine on 10.5 (I get my cats confused). Make sure you use the python.org Framework build of python. Once you've tried a new py2app and simpler setup.py, then ask here for more help, if you still need it. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker at noaa.gov From janssen at parc.com Mon Nov 10 19:45:34 2008 From: janssen at parc.com (Bill Janssen) Date: Mon, 10 Nov 2008 10:45:34 PST Subject: [Pythonmac-SIG] thanks for PyObjC! In-Reply-To: <8A9FBFFF-51C2-46B9-9216-1F3C2DDA9F18@yahoo.it> References: <8A9FBFFF-51C2-46B9-9216-1F3C2DDA9F18@yahoo.it> Message-ID: <36636.1226342734@parc.com> I actually haven't used py2app -- I just use Xcode 3 and Interface Builder. Works great! I'd start there, then try these other things like py2app. Bill From dan at rosspixelworks.com Mon Nov 10 22:45:57 2008 From: dan at rosspixelworks.com (Dan Ross) Date: Mon, 10 Nov 2008 14:45:57 -0700 Subject: [Pythonmac-SIG] Error compiling with py2app Message-ID: <7300b244e46d67c2a5673ffa1d630b8b@rosspixelworks.com> Hi all- I'm having trouble with py2app all of a sudden. It stopped working with 2.5 so I installed 2.6 today, hoping that may work. I'm attaching the text from when the error begins. Any help would be appreciated. Thanks, Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.3.6-py2.6.egg/py2app/build_app.py", line 548, in _run self.run_normal() File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.3.6-py2.6.egg/py2app/build_app.py", line 619, in run_normal self.create_binaries(py_files, pkgdirs, extensions, loader_files) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.3.6-py2.6.egg/py2app/build_app.py", line 723, in create_binaries mm.mm.run_file(runtime) File "build/bdist.macosx-10.3-i386/egg/macholib/MachOGraph.py", line 62, in run_file m = self.findNode(pathname) File "build/bdist.macosx-10.3-i386/egg/macholib/MachOGraph.py", line 55, in findNode newname = self.locate(name) File "build/bdist.macosx-10.3-i386/egg/macholib/MachOStandalone.py", line 30, in locate return self.delegate.locate(newname) File "build/bdist.macosx-10.3-i386/egg/macholib/MachOStandalone.py", line 69, in locate res = self.copy_framework(info) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.3.6-py2.6.egg/py2app/build_app.py", line 56, in copy_framework destfn = self.appbuilder.copy_framework(info, self.dest) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.3.6-py2.6.egg/py2app/build_app.py", line 789, in copy_framework self.copy_python_framework(info, dst) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.3.6-py2.6.egg/py2app/build_app.py", line 817, in copy_python_framework os.path.join(outdir, fn)) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/cmd.py", line 376, in copy_file dry_run=self.dry_run) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/file_util.py", line 119, in copy_file "can't copy '%s': doesn't exist or not a regular file" % src DistutilsFileError: can't copy '/Library/Frameworks/Python.framework/Versions/2.6/Resources/version.plist': doesn't exist or not a regular file > /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/file_util.py(119)copy_file() -> "can't copy '%s': doesn't exist or not a regular file" % src (Pdb) From codyprecord at gmail.com Mon Nov 10 22:56:09 2008 From: codyprecord at gmail.com (Cody Precord) Date: Mon, 10 Nov 2008 15:56:09 -0600 Subject: [Pythonmac-SIG] Error compiling with py2app In-Reply-To: <7300b244e46d67c2a5673ffa1d630b8b@rosspixelworks.com> References: <7300b244e46d67c2a5673ffa1d630b8b@rosspixelworks.com> Message-ID: Hello, On Mon, Nov 10, 2008 at 3:45 PM, Dan Ross wrote: > Hi all- > > I'm having trouble with py2app all of a sudden. It stopped working with 2.5 > so I installed 2.6 today, hoping that may work. > > I'm attaching the text from when the error begins. Any help would be > appreciated. > You appear to have a file in your includes/data_files that does not have the correct path specified. Cody -------------- next part -------------- An HTML attachment was scrubbed... URL: From Chris.Barker at noaa.gov Mon Nov 10 23:00:33 2008 From: Chris.Barker at noaa.gov (Christopher Barker) Date: Mon, 10 Nov 2008 14:00:33 -0800 Subject: [Pythonmac-SIG] Error compiling with py2app In-Reply-To: <7300b244e46d67c2a5673ffa1d630b8b@rosspixelworks.com> References: <7300b244e46d67c2a5673ffa1d630b8b@rosspixelworks.com> Message-ID: <4918AF01.4070200@noaa.gov> Dan Ross wrote: > I'm having trouble with py2app all of a sudden. It stopped working with > 2.5 so I installed 2.6 today, hoping that may work. well, I don't think any changes have been made for 26, so it's actually less likely to work! > I'm attaching the text from when the error begins. > DistutilsFileError: can't copy > '/Library/Frameworks/Python.framework/Versions/2.6/Resources/version.plist': doesn't exist or not a regular file well, indeed, it doesn't look like that file exists. There is one in my 2.5 distro: $ cat /Library/Frameworks/Python.framework/Versions/2.5/Resources/version.plist BuildVersion 1 CFBundleShortVersionString 2.5alpha0 CFBundleVersion 2.5alpha0 ProjectName Python ReleaseStatus alfa SourceVersion 2.4a0 I don't know where it came from, what it is used for, or why it is listing the version as "2.5alpha0", but you could try making a copy, changing "2.5" to "2.6", and putting it in your 2.6 distro. I think you'll have better luck with 2.5, though. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker at noaa.gov From dan at rosspixelworks.com Mon Nov 10 23:05:50 2008 From: dan at rosspixelworks.com (Dan Ross) Date: Mon, 10 Nov 2008 15:05:50 -0700 Subject: [Pythonmac-SIG] Error compiling with py2app In-Reply-To: References: <7300b244e46d67c2a5673ffa1d630b8b@rosspixelworks.com> Message-ID: Hi Cody- Thanks for the reply. I posted the wrong error. I figured out the missing file part. Here's the error after providing the file. Dan On Mon, 10 Nov 2008 15:56:09 -0600, "Cody Precord" wrote: Hello, On Mon, Nov 10, 2008 at 3:45 PM, Dan Ross wrote: Hi all- I'm having trouble with py2app all of a sudden. It stopped working with 2.5 so I installed 2.6 today, hoping that may work. I'm attaching the text from when the error begins. Any help would be appreciated. You appear to have a file in your includes/data_files that does not have the correct path specified. Cody Links: ------ [1] mailto:dan at rosspixelworks.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- linking /Users/danr/Projects/pyTunesQT/dist/start.app/Contents/Frameworks/QtCore.framework/Versions/4.0 -> 4 linking /Users/danr/Projects/pyTunesQT/dist/start.app/Contents/Frameworks/QtCore.framework/Versions/Current -> 4 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.3.6-py2.6.egg/py2app/build_app.py", line 548, in _run self.run_normal() File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.3.6-py2.6.egg/py2app/build_app.py", line 619, in run_normal self.create_binaries(py_files, pkgdirs, extensions, loader_files) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.3.6-py2.6.egg/py2app/build_app.py", line 732, in create_binaries platfiles = mm.run() File "build/bdist.macosx-10.3-i386/egg/macholib/MachOStandalone.py", line 102, in run mm.run_file(fn) File "build/bdist.macosx-10.3-i386/egg/macholib/MachOGraph.py", line 68, in run_file self.scan_node(m) File "build/bdist.macosx-10.3-i386/egg/macholib/MachOGraph.py", line 91, in scan_node m = self.load_file(filename, caller=node) File "build/bdist.macosx-10.3-i386/egg/macholib/MachOGraph.py", line 78, in load_file return self.load_file(newname, caller=caller) File "build/bdist.macosx-10.3-i386/egg/macholib/MachOGraph.py", line 80, in load_file m = self.createNode(MachO, name) File "build/bdist.macosx-10.3-i386/egg/macholib/MachOStandalone.py", line 23, in createNode res = super(FilteredMachOGraph, self).createNode(cls, name) File "build/bdist.macosx-10.3-i386/egg/altgraph/ObjectGraph.py", line 148, in createNode m = cls(name, *args, **kw) File "build/bdist.macosx-10.3-i386/egg/macholib/MachO.py", line 61, in __init__ self.load(file(filename, 'rb')) File "build/bdist.macosx-10.3-i386/egg/macholib/MachO.py", line 71, in load self.load_fat(fh) File "build/bdist.macosx-10.3-i386/egg/macholib/MachO.py", line 82, in load_fat self.load_header(fh, arch.offset, arch.size) File "build/bdist.macosx-10.3-i386/egg/macholib/MachO.py", line 106, in load_header hdr = MachOHeader(self, fh, offset, size, magic, hdr, endian) File "build/bdist.macosx-10.3-i386/egg/macholib/MachO.py", line 146, in __init__ self.load(fh) File "build/bdist.macosx-10.3-i386/egg/macholib/MachO.py", line 178, in load raise ValueError("Unknown load command: %d" % (cmd_load.cmd,)) ValueError: Unknown load command: 27 > /Users/danr/Projects/pyTunesQT/build/bdist.macosx-10.3-i386/egg/macholib/MachO.py(178)load() (Pdb) From robin at alldunn.com Mon Nov 10 23:18:12 2008 From: robin at alldunn.com (Robin Dunn) Date: Mon, 10 Nov 2008 14:18:12 -0800 Subject: [Pythonmac-SIG] Error compiling with py2app In-Reply-To: References: <7300b244e46d67c2a5673ffa1d630b8b@rosspixelworks.com> Message-ID: <4918B324.9000303@alldunn.com> Dan Ross wrote: > Hi Cody- > > Thanks for the reply. I posted the wrong error. I figured out the > missing file part. > > Here's the error after providing the file. > > File "build/bdist.macosx-10.3-i386/egg/macholib/MachO.py", line 178, in load > raise ValueError("Unknown load command: %d" % (cmd_load.cmd,)) > ValueError: Unknown load command: 27 >> > /Users/danr/Projects/pyTunesQT/build/bdist.macosx-10.3-i386/egg/macholib/MachO.py(178)load() You need a newer version of macho lib. Do: easy_install macholib==dev -- Robin Dunn Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython! From hengist.podd at virgin.net Mon Nov 10 23:24:01 2008 From: hengist.podd at virgin.net (has) Date: Mon, 10 Nov 2008 22:24:01 +0000 Subject: [Pythonmac-SIG] thanks for PyObjC! In-Reply-To: References: Message-ID: <80FF2F7D-016F-4EDE-AC8D-39C1D2604092@virgin.net> Bill Janssen wrote: > I actually haven't used py2app -- I just use Xcode 3 and Interface > Builder. Works great! I'd start there, then try these other things > like py2app. Be aware that Xcode doesn't include any dependencies in your .app bundle as py2app does. Also, the executable links against the first framework it finds on the host system, creating a likely source of problems if you're using one version of Python and your users are using another. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net From Chris.Barker at noaa.gov Mon Nov 10 23:25:37 2008 From: Chris.Barker at noaa.gov (Christopher Barker) Date: Mon, 10 Nov 2008 14:25:37 -0800 Subject: [Pythonmac-SIG] Error compiling with py2app In-Reply-To: References: <7300b244e46d67c2a5673ffa1d630b8b@rosspixelworks.com> Message-ID: <4918B4E1.6050501@noaa.gov> Dan Ross wrote: > Here's the error after providing the file. File "build/bdist.macosx-10.3-i386/egg/macholib/MachO.py", line 178, in load raise ValueError("Unknown load command: %d" % (cmd_load.cmd,)) ValueError: Unknown load command: 27 You may be able to fix this with the latest machholib. try: easy_install "macholib==dev" -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker at noaa.gov From dan at rosspixelworks.com Tue Nov 11 00:32:53 2008 From: dan at rosspixelworks.com (Dan Ross -- Ross Photography) Date: Mon, 10 Nov 2008 17:32:53 -0600 Subject: [Pythonmac-SIG] Error compiling with py2app In-Reply-To: <4918B4E1.6050501@noaa.gov> References: <7300b244e46d67c2a5673ffa1d630b8b@rosspixelworks.com> <4918B4E1.6050501@noaa.gov> Message-ID: <9EF705D9-D1C0-4743-A52B-5E05CFFBBD2F@rosspixelworks.com> This one did the trick! Thanks Chris. Unfortunately the app launches and crashes. :( It would seem that the system does not like PyQt? Process: start [2935] Path: /Projects/pythonprojects/pyTunesQT/dist/start.app/ Contents/MacOS/start Identifier: org.pythonmac.unspecified.start Version: 0.0.0 (0.0.0) Code Type: X86 (Native) Parent Process: launchd [77] Date/Time: 2008-11-10 17:30:28.208 -0600 OS Version: Mac OS X 10.5.5 (9F33) Report Version: 6 Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000004 Crashed Thread: 0 Thread 0 Crashed: 0 QtGui 0x17477d76 QPushButton::menu() const + 6 1 libqtaccessiblewidgets.dylib 0x151e8637 AccessibleFactory::create(QString const&, QObject*) + 1109 2 QtGui 0x11e9a785 QAccessible::queryAccessibleInterface(QObject*) + 453 3 QtGui 0x11ea9ece QAccessible::updateAccessibility(QObject*, int, QAccessible::Event) + 398 4 QtGui 0x11a0f394 QWidgetPrivate::show_helper() + 420 5 QtGui 0x11a123f3 QWidget::setVisible(bool) + 1267 6 QtGui.so 0x115ac36a sipQPushButton::setVisible(bool) + 106 7 QtGui 0x11a0f198 QWidgetPrivate::showChildren(bool) + 328 8 QtGui 0x11a0f24f QWidgetPrivate::show_helper() + 95 9 QtGui 0x11a123f3 QWidget::setVisible(bool) + 1267 10 QtGui.so 0x116129c1 sipQWidget::setVisible(bool) + 103 11 QtGui 0x11a0f198 QWidgetPrivate::showChildren(bool) + 328 12 QtGui 0x11a0f24f QWidgetPrivate::show_helper() + 95 13 QtGui 0x11a123f3 QWidget::setVisible(bool) + 1267 14 QtGui.so 0x1142e869 sipQMainWindow::setVisible(bool) + 103 15 QtGui.so 0x1161a9e7 sipQWidget::sipProtectVirt_languageChange(bool) + 25067 On Nov 10, 2008, at 4:25 PM, Christopher Barker wrote: > Dan Ross wrote: >> Here's the error after providing the file. > > File "build/bdist.macosx-10.3-i386/egg/macholib/MachO.py", line > 178, in load > raise ValueError("Unknown load command: %d" % (cmd_load.cmd,)) > ValueError: Unknown load command: 27 > > You may be able to fix this with the latest machholib. try: > > easy_install "macholib==dev" > > > -Chris > > > -- > Christopher Barker, Ph.D. > Oceanographer > > Emergency Response Division > NOAA/NOS/OR&R (206) 526-6959 voice > 7600 Sand Point Way NE (206) 526-6329 fax > Seattle, WA 98115 (206) 526-6317 main reception > > Chris.Barker at noaa.gov From dan at rosspixelworks.com Mon Nov 10 19:54:29 2008 From: dan at rosspixelworks.com (Dan Ross) Date: Mon, 10 Nov 2008 11:54:29 -0700 Subject: [Pythonmac-SIG] Error compiling with py2app Message-ID: Hi all- I'm getting an error when py2app copies resources to the .app director it's making. I'm attaching the error. If anyone can help, I would really appreciate it. I swear py2app was working not too long ago. It was working with python 2.5 I'm sure. It did not work with 2.5 this morning. Thanks, Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- Last login: Mon Nov 10 12:44:50 on ttys000 You have new mail. daniel-rosss-mac-pro:~ danr$ cd /Users/danr/Desktop/pyTunesQT daniel-rosss-mac-pro:pyTunesQT danr$ py2applet --make-setup.py start.py usage: py2applet [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: py2applet --help [cmd1 cmd2 ...] or: py2applet --help-commands or: py2applet cmd --help error: option --make-setup.py not recognized daniel-rosss-mac-pro:pyTunesQT danr$ py2applet --make-setup start.py Wrote setup.py daniel-rosss-mac-pro:pyTunesQT danr$ python setup.py py2app running py2app creating /Users/danr/Desktop/pyTunesQT/build creating /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386 creating /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone creating /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app creating /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/collect creating /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp creating /Users/danr/Desktop/pyTunesQT/dist creating build/bdist.macosx-10.3-i386/python2.6-standalone/app/lib-dynload creating build/bdist.macosx-10.3-i386/python2.6-standalone/app/Frameworks *** filtering dependencies *** 359 total 33 filtered 5 orphaned 326 remaining *** create binaries *** creating python loader for extension 'MacOS' creating python loader for extension 'Nav' creating python loader for extension '_AE' creating python loader for extension '_Ctl' creating python loader for extension '_Dlg' creating python loader for extension '_Evt' creating python loader for extension '_File' creating python loader for extension '_Menu' creating python loader for extension '_Qd' creating python loader for extension '_Res' creating python loader for extension '_Win' creating python loader for extension '_bisect' creating python loader for extension '_codecs_cn' creating python loader for extension '_codecs_hk' creating python loader for extension '_codecs_iso2022' creating python loader for extension '_codecs_jp' creating python loader for extension '_codecs_kr' creating python loader for extension '_codecs_tw' creating python loader for extension '_collections' creating python loader for extension '_ctypes' creating python loader for extension '_functools' creating python loader for extension '_heapq' creating python loader for extension '_locale' creating python loader for extension '_multibytecodec' creating python loader for extension '_random' creating python loader for extension '_socket' creating python loader for extension '_ssl' creating python loader for extension '_struct' creating python loader for extension '_weakref' creating python loader for extension 'array' creating python loader for extension 'binascii' creating python loader for extension 'bz2' creating python loader for extension 'cPickle' creating python loader for extension 'cStringIO' creating python loader for extension 'datetime' creating python loader for extension 'fcntl' creating python loader for extension 'itertools' creating python loader for extension 'math' creating python loader for extension 'operator' creating python loader for extension 'select' creating python loader for extension 'strop' creating python loader for extension 'termios' creating python loader for extension 'time' creating python loader for extension 'unicodedata' creating python loader for extension 'zlib' creating /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/PyQt4 creating python loader for extension 'PyQt4.QtCore' creating python loader for extension 'PyQt4.QtGui' creating /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/pysqlite2 creating python loader for extension 'pysqlite2._sqlite' *** byte compile python files *** byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/StringIO.py to StringIO.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/UserDict.py to UserDict.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/__future__.py to __future__.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/_abcoll.py to _abcoll.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/_strptime.py to _strptime.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/_threading_local.py to _threading_local.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/abc.py to abc.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/base64.py to base64.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/bdb.py to bdb.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/bisect.py to bisect.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/calendar.py to calendar.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/cmd.py to cmd.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/codecs.py to codecs.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/collections.py to collections.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/copy.py to copy.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/copy_reg.py to copy_reg.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ctypes/__init__.py to ctypes/__init__.pyc creating /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/collect/ctypes byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ctypes/_endian.py to ctypes/_endian.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ctypes/macholib/__init__.py to ctypes/macholib/__init__.pyc creating /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/collect/ctypes/macholib byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ctypes/macholib/dyld.py to ctypes/macholib/dyld.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ctypes/macholib/dylib.py to ctypes/macholib/dylib.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ctypes/macholib/framework.py to ctypes/macholib/framework.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ctypes/util.py to ctypes/util.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/difflib.py to difflib.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/dis.py to dis.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/doctest.py to doctest.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/dummy_thread.py to dummy_thread.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/email/__init__.py to email/__init__.pyc creating /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/collect/email byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/email/_parseaddr.py to email/_parseaddr.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/email/base64mime.py to email/base64mime.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/email/charset.py to email/charset.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/email/encoders.py to email/encoders.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/email/errors.py to email/errors.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/email/feedparser.py to email/feedparser.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/email/message.py to email/message.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/email/mime/__init__.py to email/mime/__init__.pyc creating /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/collect/email/mime byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/email/parser.py to email/parser.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/email/quoprimime.py to email/quoprimime.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/email/utils.py to email/utils.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/__init__.py to encodings/__init__.pyc creating /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/collect/encodings byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/aliases.py to encodings/aliases.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/ascii.py to encodings/ascii.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/base64_codec.py to encodings/base64_codec.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/big5.py to encodings/big5.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/big5hkscs.py to encodings/big5hkscs.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/bz2_codec.py to encodings/bz2_codec.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/charmap.py to encodings/charmap.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp037.py to encodings/cp037.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp1006.py to encodings/cp1006.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp1026.py to encodings/cp1026.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp1140.py to encodings/cp1140.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp1250.py to encodings/cp1250.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp1251.py to encodings/cp1251.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp1252.py to encodings/cp1252.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp1253.py to encodings/cp1253.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp1254.py to encodings/cp1254.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp1255.py to encodings/cp1255.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp1256.py to encodings/cp1256.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp1257.py to encodings/cp1257.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp1258.py to encodings/cp1258.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp424.py to encodings/cp424.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp437.py to encodings/cp437.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp500.py to encodings/cp500.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp737.py to encodings/cp737.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp775.py to encodings/cp775.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp850.py to encodings/cp850.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp852.py to encodings/cp852.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp855.py to encodings/cp855.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp856.py to encodings/cp856.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp857.py to encodings/cp857.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp860.py to encodings/cp860.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp861.py to encodings/cp861.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp862.py to encodings/cp862.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp863.py to encodings/cp863.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp864.py to encodings/cp864.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp865.py to encodings/cp865.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp866.py to encodings/cp866.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp869.py to encodings/cp869.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp874.py to encodings/cp874.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp875.py to encodings/cp875.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp932.py to encodings/cp932.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp949.py to encodings/cp949.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/cp950.py to encodings/cp950.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/euc_jis_2004.py to encodings/euc_jis_2004.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/euc_jisx0213.py to encodings/euc_jisx0213.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/euc_jp.py to encodings/euc_jp.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/euc_kr.py to encodings/euc_kr.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/gb18030.py to encodings/gb18030.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/gb2312.py to encodings/gb2312.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/gbk.py to encodings/gbk.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/hex_codec.py to encodings/hex_codec.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/hp_roman8.py to encodings/hp_roman8.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/hz.py to encodings/hz.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/idna.py to encodings/idna.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/iso2022_jp.py to encodings/iso2022_jp.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/iso2022_jp_1.py to encodings/iso2022_jp_1.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/iso2022_jp_2.py to encodings/iso2022_jp_2.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/iso2022_jp_2004.py to encodings/iso2022_jp_2004.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/iso2022_jp_3.py to encodings/iso2022_jp_3.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/iso2022_jp_ext.py to encodings/iso2022_jp_ext.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/iso2022_kr.py to encodings/iso2022_kr.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/iso8859_1.py to encodings/iso8859_1.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/iso8859_10.py to encodings/iso8859_10.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/iso8859_11.py to encodings/iso8859_11.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/iso8859_13.py to encodings/iso8859_13.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/iso8859_14.py to encodings/iso8859_14.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/iso8859_15.py to encodings/iso8859_15.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/iso8859_16.py to encodings/iso8859_16.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/iso8859_2.py to encodings/iso8859_2.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/iso8859_3.py to encodings/iso8859_3.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/iso8859_4.py to encodings/iso8859_4.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/iso8859_5.py to encodings/iso8859_5.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/iso8859_6.py to encodings/iso8859_6.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/iso8859_7.py to encodings/iso8859_7.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/iso8859_8.py to encodings/iso8859_8.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/iso8859_9.py to encodings/iso8859_9.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/johab.py to encodings/johab.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/koi8_r.py to encodings/koi8_r.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/koi8_u.py to encodings/koi8_u.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/latin_1.py to encodings/latin_1.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/mac_arabic.py to encodings/mac_arabic.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/mac_centeuro.py to encodings/mac_centeuro.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/mac_croatian.py to encodings/mac_croatian.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/mac_cyrillic.py to encodings/mac_cyrillic.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/mac_farsi.py to encodings/mac_farsi.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/mac_greek.py to encodings/mac_greek.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/mac_iceland.py to encodings/mac_iceland.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/mac_latin2.py to encodings/mac_latin2.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/mac_roman.py to encodings/mac_roman.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/mac_romanian.py to encodings/mac_romanian.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/mac_turkish.py to encodings/mac_turkish.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/mbcs.py to encodings/mbcs.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/palmos.py to encodings/palmos.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/ptcp154.py to encodings/ptcp154.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/punycode.py to encodings/punycode.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/quopri_codec.py to encodings/quopri_codec.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/raw_unicode_escape.py to encodings/raw_unicode_escape.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/rot_13.py to encodings/rot_13.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/shift_jis.py to encodings/shift_jis.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/shift_jis_2004.py to encodings/shift_jis_2004.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/shift_jisx0213.py to encodings/shift_jisx0213.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/string_escape.py to encodings/string_escape.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/tis_620.py to encodings/tis_620.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/undefined.py to encodings/undefined.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/unicode_escape.py to encodings/unicode_escape.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/unicode_internal.py to encodings/unicode_internal.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/utf_16.py to encodings/utf_16.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/utf_16_be.py to encodings/utf_16_be.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/utf_16_le.py to encodings/utf_16_le.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/utf_32.py to encodings/utf_32.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/utf_32_be.py to encodings/utf_32_be.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/utf_32_le.py to encodings/utf_32_le.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/utf_7.py to encodings/utf_7.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/utf_8.py to encodings/utf_8.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/utf_8_sig.py to encodings/utf_8_sig.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/uu_codec.py to encodings/uu_codec.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/zlib_codec.py to encodings/zlib_codec.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/fnmatch.py to fnmatch.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ftplib.py to ftplib.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/functools.py to functools.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/genericpath.py to genericpath.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/getopt.py to getopt.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/getpass.py to getpass.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/gettext.py to gettext.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/heapq.py to heapq.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py to httplib.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/inspect.py to inspect.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/keyword.py to keyword.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/linecache.py to linecache.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/locale.py to locale.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/macurl2path.py to macurl2path.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/mimetools.py to mimetools.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/mimetypes.py to mimetypes.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/opcode.py to opcode.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/optparse.py to optparse.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/os.py to os.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/pdb.py to pdb.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/pickle.py to pickle.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/Carbon/AE.py to Carbon/AE.pyc creating /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/collect/Carbon byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/Carbon/Appearance.py to Carbon/Appearance.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/Carbon/AppleEvents.py to Carbon/AppleEvents.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/Carbon/CarbonEvents.py to Carbon/CarbonEvents.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/Carbon/ControlAccessor.py to Carbon/ControlAccessor.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/Carbon/Controls.py to Carbon/Controls.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/Carbon/Ctl.py to Carbon/Ctl.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/Carbon/Dialogs.py to Carbon/Dialogs.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/Carbon/Dlg.py to Carbon/Dlg.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/Carbon/Dragconst.py to Carbon/Dragconst.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/Carbon/Events.py to Carbon/Events.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/Carbon/Evt.py to Carbon/Evt.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/Carbon/File.py to Carbon/File.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/Carbon/Files.py to Carbon/Files.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/Carbon/Menu.py to Carbon/Menu.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/Carbon/Qd.py to Carbon/Qd.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/Carbon/QuickDraw.py to Carbon/QuickDraw.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/Carbon/Res.py to Carbon/Res.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/Carbon/TextEdit.py to Carbon/TextEdit.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/Carbon/Win.py to Carbon/Win.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/Carbon/Windows.py to Carbon/Windows.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/Carbon/__init__.py to Carbon/__init__.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/EasyDialogs.py to EasyDialogs.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/aepack.py to aepack.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/aetools.py to aetools.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/aetypes.py to aetypes.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/applesingle.py to applesingle.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages/Finder/Containers_and_folders.py to Finder/Containers_and_folders.pyc creating /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/collect/Finder byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages/Finder/Enumerations.py to Finder/Enumerations.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages/Finder/Files.py to Finder/Files.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages/Finder/Finder_Basics.py to Finder/Finder_Basics.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages/Finder/Finder_items.py to Finder/Finder_items.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages/Finder/Legacy_suite.py to Finder/Legacy_suite.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages/Finder/Standard_Suite.py to Finder/Standard_Suite.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages/Finder/Type_Definitions.py to Finder/Type_Definitions.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages/Finder/Window_classes.py to Finder/Window_classes.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages/Finder/__init__.py to Finder/__init__.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages/StdSuites/AppleScript_Suite.py to StdSuites/AppleScript_Suite.pyc creating /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/collect/StdSuites byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages/StdSuites/Macintosh_Connectivity_Clas.py to StdSuites/Macintosh_Connectivity_Clas.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages/StdSuites/QuickDraw_Graphics_Suite.py to StdSuites/QuickDraw_Graphics_Suite.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages/StdSuites/QuickDraw_Graphics_Suppleme.py to StdSuites/QuickDraw_Graphics_Suppleme.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages/StdSuites/Required_Suite.py to StdSuites/Required_Suite.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages/StdSuites/Standard_Suite.py to StdSuites/Standard_Suite.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages/StdSuites/Table_Suite.py to StdSuites/Table_Suite.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages/StdSuites/Text_Suite.py to StdSuites/Text_Suite.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages/StdSuites/Type_Names_Suite.py to StdSuites/Type_Names_Suite.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages/StdSuites/__init__.py to StdSuites/__init__.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages/_builtinSuites/__init__.py to _builtinSuites/__init__.pyc creating /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/collect/_builtinSuites byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages/_builtinSuites/builtin_Suite.py to _builtinSuites/builtin_Suite.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/macostools.py to macostools.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/macresource.py to macresource.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/posixpath.py to posixpath.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/pprint.py to pprint.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/quopri.py to quopri.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/random.py to random.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/re.py to re.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/repr.py to repr.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/rfc822.py to rfc822.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/shlex.py to shlex.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/shutil.py to shutil.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/PyQt4/__init__.py to PyQt4/__init__.pyc creating /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/collect/PyQt4 byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/eyeD3/__init__.py to eyeD3/__init__.pyc creating /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/collect/eyeD3 byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/eyeD3/binfuncs.py to eyeD3/binfuncs.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/eyeD3/frames.py to eyeD3/frames.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/eyeD3/mp3.py to eyeD3/mp3.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/eyeD3/tag.py to eyeD3/tag.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/eyeD3/utils.py to eyeD3/utils.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.3.6-py2.6.egg/py2app/bootstrap/argv_emulation.py to argv_emulation.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.3.6-py2.6.egg/py2app/bootstrap/boot_app.py to boot_app.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.3.6-py2.6.egg/py2app/bootstrap/chdir_resource.py to chdir_resource.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.3.6-py2.6.egg/py2app/bootstrap/disable_linecache.py to disable_linecache.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pysqlite2/__init__.py to pysqlite2/__init__.pyc creating /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/collect/pysqlite2 byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pysqlite2/dbapi2.py to pysqlite2/dbapi2.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/socket.py to socket.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/sre.py to sre.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/sre_compile.py to sre_compile.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/sre_constants.py to sre_constants.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/sre_parse.py to sre_parse.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ssl.py to ssl.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/stat.py to stat.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/string.py to string.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/stringprep.py to stringprep.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/struct.py to struct.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py to subprocess.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/tempfile.py to tempfile.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/textwrap.py to textwrap.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py to threading.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/token.py to token.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/tokenize.py to tokenize.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/traceback.py to traceback.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/types.py to types.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py to unittest.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib.py to urllib.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urlparse.py to urlparse.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/uu.py to uu.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/warnings.py to warnings.pyc byte-compiling /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/weakref.py to weakref.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/editor.py to editor.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/songlister.py to songlister.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/start.py to start.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/MacOS.py to MacOS.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/Nav.py to Nav.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/_AE.py to _AE.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/_Ctl.py to _Ctl.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/_Dlg.py to _Dlg.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/_Evt.py to _Evt.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/_File.py to _File.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/_Menu.py to _Menu.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/_Qd.py to _Qd.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/_Res.py to _Res.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/_Win.py to _Win.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/_bisect.py to _bisect.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/_codecs_cn.py to _codecs_cn.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/_codecs_hk.py to _codecs_hk.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/_codecs_iso2022.py to _codecs_iso2022.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/_codecs_jp.py to _codecs_jp.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/_codecs_kr.py to _codecs_kr.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/_codecs_tw.py to _codecs_tw.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/_collections.py to _collections.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/_ctypes.py to _ctypes.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/_functools.py to _functools.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/_heapq.py to _heapq.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/_locale.py to _locale.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/_multibytecodec.py to _multibytecodec.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/_random.py to _random.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/_socket.py to _socket.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/_ssl.py to _ssl.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/_struct.py to _struct.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/_weakref.py to _weakref.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/array.py to array.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/binascii.py to binascii.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/bz2.py to bz2.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/cPickle.py to cPickle.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/cStringIO.py to cStringIO.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/datetime.py to datetime.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/fcntl.py to fcntl.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/itertools.py to itertools.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/math.py to math.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/operator.py to operator.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/select.py to select.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/strop.py to strop.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/termios.py to termios.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/time.py to time.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/unicodedata.py to unicodedata.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/zlib.py to zlib.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/PyQt4/QtCore.py to PyQt4/QtCore.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/PyQt4/QtGui.py to PyQt4/QtGui.pyc byte-compiling /Users/danr/Desktop/pyTunesQT/build/bdist.macosx-10.3-i386/python2.6-standalone/app/temp/pysqlite2/_sqlite.py to pysqlite2/_sqlite.pyc *** creating application bundle: start *** copying /Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/Resources/PythonApplet.icns -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources copying start.py -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources creating /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib creating /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6 creating /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/config copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config/Makefile -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/config copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config/Setup -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/config copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config/Setup.local -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/config copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config/Setup.config -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/config copying build/bdist.macosx-10.3-i386/python2.6-standalone/app/site-packages.zip -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6 creating /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload creating /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Frameworks copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/MacOS.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/Nav.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_AE.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_Ctl.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_Dlg.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_Evt.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_File.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_Menu.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_Qd.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_Res.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_Win.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_bisect.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_codecs_cn.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_codecs_hk.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_codecs_iso2022.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_codecs_jp.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_codecs_kr.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_codecs_tw.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_collections.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_ctypes.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_functools.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_heapq.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_locale.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_multibytecodec.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_random.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_socket.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_ssl.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_struct.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_weakref.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/array.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/binascii.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/bz2.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/cPickle.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/cStringIO.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/datetime.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/fcntl.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/itertools.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/math.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/operator.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/select.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/strop.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/termios.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/time.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/unicodedata.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/zlib.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload creating /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload/PyQt4 copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/PyQt4/QtCore.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload/PyQt4 copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/PyQt4/QtGui.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload/PyQt4 creating /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload/pysqlite2 copying /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pysqlite2/_sqlite.so -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Resources/lib/python2.6/lib-dynload/pysqlite2 copying /Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/MacOS/python creating /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Frameworks/Python.framework creating /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Frameworks/Python.framework/Versions creating /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Frameworks/Python.framework/Versions/2.6 creating /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Frameworks/Python.framework/Versions/2.6/Resources copying /Library/Frameworks/Python.framework/Versions/2.6/Python -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Frameworks/Python.framework/Versions/2.6 copying /Library/Frameworks/Python.framework/Versions/2.6/Resources/Info.plist -> /Users/danr/Desktop/pyTunesQT/dist/start.app/Contents/Frameworks/Python.framework/Versions/2.6/Resources Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.3.6-py2.6.egg/py2app/build_app.py", line 548, in _run self.run_normal() File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.3.6-py2.6.egg/py2app/build_app.py", line 619, in run_normal self.create_binaries(py_files, pkgdirs, extensions, loader_files) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.3.6-py2.6.egg/py2app/build_app.py", line 723, in create_binaries mm.mm.run_file(runtime) File "build/bdist.macosx-10.3-i386/egg/macholib/MachOGraph.py", line 62, in run_file m = self.findNode(pathname) File "build/bdist.macosx-10.3-i386/egg/macholib/MachOGraph.py", line 55, in findNode newname = self.locate(name) File "build/bdist.macosx-10.3-i386/egg/macholib/MachOStandalone.py", line 30, in locate return self.delegate.locate(newname) File "build/bdist.macosx-10.3-i386/egg/macholib/MachOStandalone.py", line 69, in locate res = self.copy_framework(info) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.3.6-py2.6.egg/py2app/build_app.py", line 56, in copy_framework destfn = self.appbuilder.copy_framework(info, self.dest) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.3.6-py2.6.egg/py2app/build_app.py", line 789, in copy_framework self.copy_python_framework(info, dst) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.3.6-py2.6.egg/py2app/build_app.py", line 817, in copy_python_framework os.path.join(outdir, fn)) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/cmd.py", line 376, in copy_file dry_run=self.dry_run) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/file_util.py", line 119, in copy_file "can't copy '%s': doesn't exist or not a regular file" % src DistutilsFileError: can't copy '/Library/Frameworks/Python.framework/Versions/2.6/Resources/version.plist': doesn't exist or not a regular file > /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/file_util.py(119)copy_file() -> "can't copy '%s': doesn't exist or not a regular file" % src (Pdb) From dan at rosspixelworks.com Wed Nov 12 23:14:04 2008 From: dan at rosspixelworks.com (Dan Ross) Date: Wed, 12 Nov 2008 16:14:04 -0600 Subject: [Pythonmac-SIG] PyObjC Documentation Message-ID: <11d92c4b568.9035987814255423151.-3329297980407415146@rosspixelworks.com> An HTML attachment was scrubbed... URL: From dan at rosspixelworks.com Thu Nov 13 14:35:06 2008 From: dan at rosspixelworks.com (Dan Ross) Date: Thu, 13 Nov 2008 07:35:06 -0600 Subject: [Pythonmac-SIG] thanks for PyObjC! Message-ID: <11d960ff0ee.-2184791630808667073.-5222081953007071933@rosspixelworks.com> So is py2app the only recourse for making sure all dependencies are met? -------------- next part -------------- An HTML attachment was scrubbed... URL: From vivacarlie at gmail.com Fri Nov 14 18:20:38 2008 From: vivacarlie at gmail.com (Nehemiah Dacres) Date: Fri, 14 Nov 2008 11:20:38 -0600 Subject: [Pythonmac-SIG] PyObjC Documentation In-Reply-To: <11d92c4b568.9035987814255423151.-3329297980407415146@rosspixelworks.com> References: <11d92c4b568.9035987814255423151.-3329297980407415146@rosspixelworks.com> Message-ID: <65fadfc30811140920s14c304d4j849f7e59e0981d52@mail.gmail.com> http://pyobjc.sourceforge.net/ thats as definitive as it gets unfortunately. God forbid Apple should get involved. then there might be Gasp, a book on APPLE's site. in the mean time there is a list of supported frameworks and an explanation of garbage collection. I gave up for the same reason I gave up on GoogleApps Django. No documentation on what works and what doesn't in their little hybrid/Frankinstine. On Wed, Nov 12, 2008 at 4:14 PM, Dan Ross wrote: > I've seen the documentation at the official website and at the Apple > Developer website. > > Is there somewhere that has more definitive documentation for PyObjC? > > Thanks, > > Dan > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > > -- "lalalalala! it's not broken because I can use it" http://linux.slashdot.org/comments.pl?sid=194281&threshold=1&commentsort=0&mode=thread&cid=15927703 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan at rosspixelworks.com Fri Nov 14 18:56:50 2008 From: dan at rosspixelworks.com (Dan Ross) Date: Fri, 14 Nov 2008 10:56:50 -0700 Subject: [Pythonmac-SIG] PyObjC Documentation In-Reply-To: <65fadfc30811140920s14c304d4j849f7e59e0981d52@mail.gmail.com> References: <11d92c4b568.9035987814255423151.-3329297980407415146@rosspixelworks.com> <65fadfc30811140920s14c304d4j849f7e59e0981d52@mail.gmail.com> Message-ID: <4ac4ee0fe61435bdf2d7681d204cc8f1@rosspixelworks.com> I hear ya'. That's the part I found very frustrating. Thanks for the suggestion. On Fri, 14 Nov 2008 11:20:38 -0600, "Nehemiah Dacres" wrote: http://pyobjc.sourceforge.net/ [1] thats as definitive as it gets unfortunately. God forbid Apple should get involved. then there might be Gasp, a book on APPLE's site. in the mean time there is a list of supported frameworks and an explanation of garbage collection. I gave up for the same reason I gave up on GoogleApps Django. No documentation on what works and what doesn't in their little hybrid/Frankinstine. On Wed, Nov 12, 2008 at 4:14 PM, Dan Ross wrote: I've seen the documentation at the official website and at the Apple Developer website. Is there somewhere that has more definitive documentation for PyObjC? Thanks, Dan _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG at python.org [3] http://mail.python.org/mailman/listinfo/pythonmac-sig [4] -- "lalalalala! it's not broken because I can use it" http://linux.slashdot.org/comments.pl?sid=194281&threshold=1&commentsort=0&mode=thread&cid=15927703 [5] Links: ------ [1] http://pyobjc.sourceforge.net/ [2] mailto:dan at rosspixelworks.com [3] mailto:Pythonmac-SIG at python.org [4] http://mail.python.org/mailman/listinfo/pythonmac-sig [5] http://linux.slashdot.org/comments.pl?sid=194281&threshold=1&commentsort=0&mode=thread&cid=15927703 -------------- next part -------------- An HTML attachment was scrubbed... URL: From saptarshi.guha at gmail.com Sat Nov 15 02:33:48 2008 From: saptarshi.guha at gmail.com (Saptarshi Guha) Date: Fri, 14 Nov 2008 20:33:48 -0500 Subject: [Pythonmac-SIG] NSOperation and python method calls Message-ID: Hello, Suppose I have a PyObjc subclass of NSObject with method 'foo'. I create NSOperation op1,op2 which call the method foo and add it to a NSOperation Queue (roughly speaking). Q: Will these methods run simultaneously? Does the python GIL affect anything? foo() doesn't call c methods and is pure python, though it may call Cocoa methods. Thank you Saptarshi From hculver at cfl.rr.com Sat Nov 15 19:15:20 2008 From: hculver at cfl.rr.com (Hunt Culver) Date: Sat, 15 Nov 2008 13:15:20 -0500 Subject: [Pythonmac-SIG] which directory for site-packages Message-ID: <6E1B9B7A-00CE-47DF-8B46-842E51308A40@cfl.rr.com> Hi all, I cannot seem to get my Mac to find the site-packages directory for MacPython 2.5. Below is some relevant info from terminal. The first path in $PATH is somehow being applied during startup (by some other process, I presume MacPython.) and it is pointing to the lib directory. The /usr/bin/python is an alias pointing to /Library/Frameworks/ Python.framework/Versions/2.5/bin/python2.5 -- that's the bin directory Then from within python I printed all the the sys.paths and sys.prefix. I tried to create a site-packages sub directory in /System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5 , but python doesn't seem to find it automatically. [Macintosh:~] huntculver% echo $PATH /Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5:Macintosh:HD/Users/huntculver/.MacOSX:/usr/bin:/bin:/usr/ sbin:/sbin:/usr/local/bin:/usr/X11/bin [Macintosh:~] huntculver% which python /usr/bin/python [Macintosh:~] huntculver% python Python 2.5.1 (r251:54863, Apr 15 2008, 22:57:26) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> for i in sys.path: ... print i ... /System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python25.zip /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5 /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ plat-darwin /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ plat-mac /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ plat-mac/lib-scriptpackages /System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/ python /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ lib-tk /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ lib-dynload /System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/ python/PyObjC >>> sys.prefix '/System/Library/Frameworks/Python.framework/Versions/2.5' any suggestions? Thanks, From dwf at cs.toronto.edu Sat Nov 15 23:12:49 2008 From: dwf at cs.toronto.edu (David Warde-Farley) Date: Sat, 15 Nov 2008 17:12:49 -0500 Subject: [Pythonmac-SIG] which directory for site-packages In-Reply-To: <6E1B9B7A-00CE-47DF-8B46-842E51308A40@cfl.rr.com> References: <6E1B9B7A-00CE-47DF-8B46-842E51308A40@cfl.rr.com> Message-ID: <7AA4CA43-DE55-470E-8A31-280B450638A6@cs.toronto.edu> Change the first path entry to /Library/Frameworks/Python.framework/ Versions/2.5/lib/python2.5/bin David On 15-Nov-08, at 1:15 PM, Hunt Culver wrote: > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5 From dwf at cs.toronto.edu Sat Nov 15 23:15:54 2008 From: dwf at cs.toronto.edu (David Warde-Farley) Date: Sat, 15 Nov 2008 17:15:54 -0500 Subject: [Pythonmac-SIG] which directory for site-packages In-Reply-To: <6E1B9B7A-00CE-47DF-8B46-842E51308A40@cfl.rr.com> References: <6E1B9B7A-00CE-47DF-8B46-842E51308A40@cfl.rr.com> Message-ID: On 15-Nov-08, at 1:15 PM, Hunt Culver wrote: > Then from within python I printed all the the sys.paths and > sys.prefix. I tried to create a site-packages sub directory in > /System/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5 , but python doesn't seem to find it automatically. This suggests you're actually not using the MacPython you installed. The Python.org build installs everything into /Library. /System/ Library contains the Python that ships with OS X. To summarize: /System/Library/Frameworks/Python.framework and /Library/ Frameworks/Python.framework are two different Python installations. You seem to be running the latter while attempting to run the former. David From davelist at mac.com Sun Nov 16 00:15:03 2008 From: davelist at mac.com (davelist at mac.com) Date: Sat, 15 Nov 2008 18:15:03 -0500 Subject: [Pythonmac-SIG] correct way to create a PyObjC application Message-ID: <0786C38A-F83C-4D0B-A80F-CEC83EC902B4@mac.com> I've done a little bit Cocoa programming using Objective-C and tried PyObjc back under Xcode/IB 2.0, but now I'd like to try PyObjc with Xcode/IB 3. Using a mixture of documentation, here's what I've come up with. Can someone please let me know if there's anything wrong with this process or if there is a much easier way (I'm not complaining - this seems pretty simple to me) to create a simple PyObjc app (no bindings, or existing controller classes, etc.) using the Leopard System python/pyobjc (i.e., the python that comes with Leopard). 1. In Xcode 3, create a Cocoa Python Objc Application 2. add a new Python file that will be the controller 3. click on MainMenu.xib to open IB 4. create interface 5. drag a NSObject to IB MainMenu.xib window (I believe this is referred to as the Doc window) 5. in the IB Inspector window do the following 5.1 change the Class Identity to the Python controller class I just created 5.2 add outlets for the widgets I need to access in the Class Outlets section 5.3 add actions (no underscores in names, end in a colon) in the Class Actions section 6. Control mouse drag from Controller in Doc Window to each widget and set the outlet 7. Control mouse drag from Buttons, etc. to the Controller and set the action 8. in Controller Python file: 8.1 add a line for each outlet right under class definition that looks like: outletName = objc.IBOutlet() (this will allow methods to access the outlet as self.outletName 8.2 create methods that match action names changing colon to underscore (i.e., def buttonPressed_(self, sender); one web page said add @objc.IBAction above those methods but that didn't seem necessary) 9. in generated main.py, add import statement for my Python controller file 10. Build and Go This seems to work for me and if I tell it to build a universal app and use the Release build, I can even copy the release build .app to other machines and run it. Thanks, Dave From hculver at cfl.rr.com Sun Nov 16 15:48:13 2008 From: hculver at cfl.rr.com (Hunt Culver) Date: Sun, 16 Nov 2008 09:48:13 -0500 Subject: [Pythonmac-SIG] which directory for site-packages In-Reply-To: References: <6E1B9B7A-00CE-47DF-8B46-842E51308A40@cfl.rr.com> Message-ID: <4E9ACEAC-C959-46F2-B72D-0C8B3BE4C3BD@cfl.rr.com> Thanks, David, I read both your notes, but I am still stumped. I have edited the path, but when I reboot, the deleted path comes back, or, in other words, is reinserted by some other startup process. I read something about startup processes modifying the path, but I haven't determine which one is the cause and how to change it. So I am still searching. Secondly, when I installed MacPython, I followed the instructions at http://wiki.python.org/moin/MacPython/Leopard . Does not step 4 create a symbolic link between /Library/Frameworks back to /System/.... ? I followed those steps, and my Python.framework subdirectory in my /Library/ directory is an alias to the /System/ directory. So, I figured they are one in the same as per the instructions. So I am still stuck . On Nov 15, 2008, at 5:15 PM, David Warde-Farley wrote: > On 15-Nov-08, at 1:15 PM, Hunt Culver wrote: > >> Then from within python I printed all the the sys.paths and >> sys.prefix. I tried to create a site-packages sub directory in >> /System/Library/Frameworks/Python.framework/Versions/2.5/lib/ >> python2.5 , but python doesn't seem to find it automatically. > > This suggests you're actually not using the MacPython you installed. > The Python.org build installs everything into /Library. /System/ > Library contains the Python that ships with OS X. > > To summarize: /System/Library/Frameworks/Python.framework and / > Library/Frameworks/Python.framework are two different Python > installations. You seem to be running the latter while attempting to > run the former. > > David From advertising at robbstucky.net Thu Nov 13 22:59:17 2008 From: advertising at robbstucky.net (Advertising Department) Date: Thu, 13 Nov 2008 16:59:17 -0500 Subject: [Pythonmac-SIG] Quark Xpress - setting import styles to true (Xtags) Message-ID: Hello all, Am trying to import an xtags file into a QuarkXpress document using appscript. I'm using the same xtags file for both examples. When using AppleScript, the file is imported and the styles are applied. Unfortunately, using appscript the tags are ignored and come in as plain text. My appleScript file... works correctly ------------------------------------------------------------------------ -- set thepath to (path to desktop folder from user domain) as string set thefile to thepath & "sample.xtg" tell application "QuarkXPress" set import styles to true activate tell document 1 set every text of text box "projectbox" to file thefile end tell end tell my appScript file... does not work ------------------------------------------------------------------------ -- #!/Library/Frameworks/Python.framework/Versions/Current/bin/pythonw from appscript import * input = open("output.xtg", "rU") thetext = input.read() qxp = app(u'/Applications/QuarkXPress 6.1/QuarkXPress') qxp.activate() qxp.properties.set({k.import_styles: True}) #app(u'QuarkXPress').import_styles.set(True) qxp.documents[1].pages[-1].text_boxes['projectbox'].text.set(thetext) This appears to be a valid translation of the working applescript, but it doesn't seem to turn on the import_styles. I've tried various incantations of the properties.set and app.import_styles lines. Quark neither complains nor complies. Anyone have any clues as to why Quark is ignoring the import styles from appscript? Thanks From jaromir.siska at gmail.com Sat Nov 15 19:17:11 2008 From: jaromir.siska at gmail.com (=?WINDOWS-1252?Q?Jarom=EDr_=8Ai=9Aka?=) Date: Sat, 15 Nov 2008 19:17:11 +0100 Subject: [Pythonmac-SIG] Accessing Python objects from Objective-C Message-ID: Hello, I need to use Python object in Obj-C code. PyObjC documentation is not very helpful - All Python objects can be accessed from Objective-C through proxy objects. Whenever a Python object crosses the line from Python to Objective-C a proxy object is created (of class OC_PythonObject, a subclass of NSProxy). This proxy object will forward all method calls from Objective-C to Python, and will return the results back to Objective-C. Nevertheless I'm not able to find any documentation for OC_PythonObject. Any advice is appreciated. Thank you Jaromir -------------- next part -------------- An HTML attachment was scrubbed... URL: From hculver at cfl.rr.com Sun Nov 16 19:38:32 2008 From: hculver at cfl.rr.com (Hunt Culver) Date: Sun, 16 Nov 2008 13:38:32 -0500 Subject: [Pythonmac-SIG] which directory for site-packages In-Reply-To: References: <6E1B9B7A-00CE-47DF-8B46-842E51308A40@cfl.rr.com> Message-ID: <9BB95BC4-1BB4-46C7-9F6C-1BA97DAC98D1@cfl.rr.com> Thanks, David, I tried your idea and it worked. I delete the Python.framework alias at /Library/Frameworks/ , which pointed to /System, and reinstalled MacPython. I skipped over step 4 at the python.org website and after a few other nits, I managed to get my own scripts up and running from site-packages. So, any ideas on how to change the instructions at http://wiki.python.org/moin/MacPython/Leopard, which seem to be in error - at least in my case. Later, Hunt On Nov 15, 2008, at 5:15 PM, David wrote: > On 15-Nov-08, at 1:15 PM, Hunt wrote: > >> Then from within python I printed all the the sys.paths and >> sys.prefix. I tried to create a site-packages sub directory in >> /System/Library/Frameworks/Python.framework/Versions/2.5/lib/ >> python2.5 , but python doesn't seem to find it automatically. > > This suggests you're actually not using the MacPython you installed. > The Python.org build installs everything into /Library. /System/ > Library contains the Python that ships with OS X. > > To summarize: /System/Library/Frameworks/Python.framework and / > Library/Frameworks/Python.framework are two different Python > installations. You seem to be running the latter while attempting to > run the former. > > David From kw at codebykevin.com Sun Nov 16 19:48:41 2008 From: kw at codebykevin.com (Kevin Walzer) Date: Sun, 16 Nov 2008 13:48:41 -0500 Subject: [Pythonmac-SIG] which directory for site-packages In-Reply-To: <9BB95BC4-1BB4-46C7-9F6C-1BA97DAC98D1@cfl.rr.com> References: <6E1B9B7A-00CE-47DF-8B46-842E51308A40@cfl.rr.com> <9BB95BC4-1BB4-46C7-9F6C-1BA97DAC98D1@cfl.rr.com> Message-ID: <49206B09.3070308@codebykevin.com> Hunt Culver wrote: > Thanks, David, > > I tried your idea and it worked. I delete the Python.framework alias at > /Library/Frameworks/ , which pointed to /System, and reinstalled > MacPython. I skipped over step 4 at the python.org website and after a > few other nits, I managed to get my own scripts up and running from > site-packages. > > So, any ideas on how to change the instructions at > http://wiki.python.org/moin/MacPython/Leopard, which seem to be in error > - at least in my case. > > Later, > Hunt > Those instructions are all wrong. They are a massive hack to compensate for what Apple does not provide with its system Python , i.e. Idle. You are much better off installing MacPython and just using that. -- Kevin Walzer Code by Kevin http://www.codebykevin.com From orestis at orestis.gr Mon Nov 17 00:50:12 2008 From: orestis at orestis.gr (Orestis Markou) Date: Sun, 16 Nov 2008 23:50:12 +0000 Subject: [Pythonmac-SIG] ANN: PySmell 0.7.2 released, many TextMate improvements Message-ID: I'm very proud to announce the release of PySmell v0.7.2, now with extra goodness. Changes: * TextMate's dialog no longer errors when dealing with a huge number of entries. * New --input allows mutation of existing PYSMELLTAGS file; useful to run after a file is saved * Analyze the current file when detecting completion type; more up- to-date suggestions * TextMate now completes a word rather than re-writing it. * TextMate honours TM_PYTHON - no need to set PATH * Fixes in pysmell.vim by Krzysiek Goj; Thanks! * Bundle ez_setup for people that don't have setuptools. * Use argparse.py rather than hand-rolled option parsing * Fixed issue 18 (tabs) PySmell is an auto-completion library for Python, meant to be plugged in different editors. It uses static analysis to generate a TAGS file for your code, and uses that to give you suggestions. It's very fast --- suggestions are instantaneous and analyzing Django 1.0 takes ~15 seconds. Download from PyPI: http://pypi.python.org/pypi/pysmell/ Issue tracking at Google Code: http://code.google.com/p/pysmell Development at GitHub: http://github.com/orestis/pysmell/tree/master Installation: "python setup.py install", then copy pysmell.vim, pysmell.el in the relevant places, or double click PySmell.tmbundle. More instructions included in README.markdown. Thanks, Orestis Markou -- orestis at orestis.gr http://orestis.gr/ From dwoods at wcer.wisc.edu Tue Nov 18 21:52:26 2008 From: dwoods at wcer.wisc.edu (David Woods) Date: Tue, 18 Nov 2008 14:52:26 -0600 Subject: [Pythonmac-SIG] App distribution with eggs Message-ID: I'm updating my development tools for an application I've been distributing for a few years now. One of my critical imports, MySQLdb, gets built as an egg under by new system. In the past, I've used BundleBuilder for making my distributable app for the Mac and it's worked admirably. I can't figure out how to get BundleBuilder to include the MySQLdb egg, (I get "ImportError: no module named MySQLdb") and it looks to me like py2app doesn't support eggs either. My (perhaps inept) Googling hasn't revealed any likely suspects. What method do folks recommend for building distributable apps which have dependencies on eggs? David From Chris.Barker at noaa.gov Wed Nov 19 20:36:24 2008 From: Chris.Barker at noaa.gov (Christopher Barker) Date: Wed, 19 Nov 2008 11:36:24 -0800 Subject: [Pythonmac-SIG] App distribution with eggs In-Reply-To: References: Message-ID: <49246AB8.2040305@noaa.gov> David Woods wrote: > What method do folks recommend for building distributable apps which have > dependencies on eggs? 1) we hope that someone will update py2app! Also, the bb-freeze developer is doing some work with trying to merge his stuff with py2app, but who knows when that will be done (he doesn't). 2) py2app works OK with eggs, as longs as the eggs are not zipped. You need to install them with: easy_install -Z NameOfThePackage You do get problems if you are using various setuptools dynamic version checking and package resource finding, but basic use works fine. If you run into some of those issues, send another note here, I've found work arounds for my stuff. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker at noaa.gov From hengist.podd at virgin.net Wed Nov 19 20:56:39 2008 From: hengist.podd at virgin.net (has) Date: Wed, 19 Nov 2008 19:56:39 +0000 Subject: [Pythonmac-SIG] py-appscript 0.19.0 ready Message-ID: Hi all, After a load more fixes, polishing, etc., I do believe the long- awaited appscript beta is finally ready to roll. Woo! Barring any new problems coming to light I will prepare the file release this weekend. If anyone want to take a look before then and let me know of any issues, it's revision 625 of the py-appscript trunk: svn co http://appscript.svn.sourceforge.net/svnroot/appscript/py-appscript/trunk py-appscript-0.19.0 Cheers, has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net From the_shelter at yahoo.com Thu Nov 20 12:26:40 2008 From: the_shelter at yahoo.com (the Shelter) Date: Thu, 20 Nov 2008 03:26:40 -0800 (PST) Subject: [Pythonmac-SIG] app does not run when launched via main.py import was:py2app- python code packed in clear ascii In-Reply-To: Message-ID: <755930.87495.qm@web56306.mail.re3.yahoo.com> I tried via the import and it converts my main app to bytecode (see post on bottom). THANKS FOR THE HELP. However, now I face a strange problem even before I build an app bundle. the mainfile.py runs perfect when launched alone. But when run via main.py it hangs when Upload button is presses. I susspect either wx.callback or the thread- but right now I am lost. NOTE: I use a patched ftplib, so I get a callback from an upload proces, which ftplib by default only supports for download. I include the extra lines I added to ftplib.py. my main.py looks like this: # /usr/bin/pythonw import mainfile mainfile.py is a small ftp upload app which uses wx.Miniframe and thread ================================================================ # /usr/bin/pythonw #gui elements import wx #os and sys interaction elements import os import sys #ftp elements from ftplib import FTP # Apple XML propertylist parser import plist #str import string # make it threading capable import thread pdffile = None xmlfile = None pofile = "P0.dtreq" #preset to Fo39 fo_choice = "F39" # define where to fnd the necessary config files f = open(os.getcwd() + "/pdffile.txt",'r') for line in f: line = line.rstrip() pdffile = line f.close() xmlfile = os.getcwd() + "/POReq.dtreq" #abort without the necessary files if pdffile is None or xmlfile is None: print "Sorry. Cannot go ahead without PDF-file and XML-file" sys.exit(0) # import and parse the XML property list xmldata = plist.parse_plist(xmlfile) #assign XML values to variables dealer = xmldata['CMS_licDealer'] customer_lastname = xmldata['K_nachname'] customer_firstname = xmldata['K_vorname'] customer_city = xmldata['K_ort'] customer_postal = xmldata['K_plz'] customer_street = xmldata['K_strasse'] customer_email = xmldata['CMS_licName'] serial = xmldata['CMS_licSerial'] dec_email ="me at home.com" dec_serial ="123456" # create the GUI Window class Window ( wx.MiniFrame ): def __init__ ( self ): #define default values for upload bar statinfo = os.stat(pdffile) self.filesize = statinfo.st_size self.so_far = 0 #define 4 Fo profiles to choose from fogra_list = ['Fo39','Fo28','Fo29','Fo30'] # No suprises here # We only use a different cl wx.MiniFrame.__init__ ( self, None, -1, 'ftp TEST Transfer',style=wx.DEFAULT_FRAME_STYLE | wx.TINY_CAPTION_HORIZ) # Create a panel self.panel = wx.Panel ( self, -1) self.t1 = wx.StaticText(self.panel,-1," Username:",pos = (10,10)) self.t2 = wx.TextCtrl(self.panel,-1,dec_email,pos = (100,10),size=(135, 15),style=wx.TE_READONLY) self.t3 = wx.StaticText(self.panel,-1," Password:",pos = (10,35)) self.t4 = wx.TextCtrl(self.panel,-1,dec_serial,pos = (100,35),size=(135, 15),style=wx.TE_PASSWORD | wx.TE_READONLY ) self.t5 = wx.StaticText(self.panel,-1," File:",pos = (10,60)) self.t6 = wx.StaticText(self.panel,-1,tail1,pos = (100,60)) self.t7 = wx.StaticText(self.panel,-1," FO:",pos = (10,85)) self.ch = wx.Choice(self.panel, -1, (100, 80), choices = fogra_list) self.panel.Bind(wx.EVT_CHOICE, self.EvtChoice, self.ch) #contruct the gauge for progress display self.g1 = wx.Gauge(self.panel, -1, 100, (10, 110), (230, 25)) self.t9 = wx.StaticText(self.panel, -1, "Kb:", pos = (15,135)) self.t8 = wx.StaticText(self.panel, -1, "Percentt:", pos = (165,135)) #set the go button self.start_upload_button = wx.Button(self.panel, -1, "Upload") self.start_upload_button.SetPosition((15, 165)) self.panel.Bind(wx.EVT_BUTTON, self.OnStartUpload, self.start_upload_button) #set the close button self.close_window_button = wx.Button(self.panel, -1, "Fertig") self.close_window_button.SetPosition((165, 165)) self.panel.Bind(wx.EVT_BUTTON, self.OnCloseMe, self.close_window_button) self.close_window_button.Enable(False) #set fonts - this time individually for later playing self.t1.SetFont(wx.Font(10,wx.SWISS,wx.NORMAL,wx.NORMAL)) self.t2.SetFont(wx.Font(10,wx.SWISS,wx.NORMAL,wx.NORMAL)) self.t3.SetFont(wx.Font(10,wx.SWISS,wx.NORMAL,wx.NORMAL)) self.t4.SetFont(wx.Font(10,wx.SWISS,wx.NORMAL,wx.NORMAL)) self.t5.SetFont(wx.Font(10,wx.SWISS,wx.NORMAL,wx.NORMAL)) self.t6.SetFont(wx.Font(10,wx.SWISS,wx.NORMAL,wx.NORMAL)) self.t7.SetFont(wx.Font(10,wx.SWISS,wx.NORMAL,wx.NORMAL)) self.ch.SetFont(wx.Font(10,wx.SWISS,wx.NORMAL,wx.NORMAL)) self.t8.SetFont(wx.Font(10,wx.SWISS,wx.NORMAL,wx.NORMAL)) self.t9.SetFont(wx.Font(10,wx.SWISS,wx.NORMAL,wx.NORMAL)) #Set Miniframe properties and launch it self.SetSize((250,220)) self.CenterOnParent(wx.BOTH) self.Show(True) def wxcallback(self, buffer): self.so_far = self.so_far+len(buffer)-1 #self.g1.SetValue(self.so_far) #self.g1.Update(self.so_far) pct = float(self.so_far)/self.filesize*100 self.g1.SetValue(pct) pct2 = round(pct, 2) self.t8.SetLabel("Prozent: " + str(pct2)) self.t9.SetLabel("Kb: " + str(self.so_far) + " von " + str(self.filesize)) #print "so far:", self.so_far, pct return def EvtChoice(self,event): global fo_choice fo_choice=event.GetString() def OnCloseMe(self,evt): self.Close(True) def OnStartUpload(self,evt): thread.start_new(self.FtpUp,()) def FtpUp(self): #start pulsing the gauge self.g1.Pulse() #disable the Upload button self.start_upload_button.Enable(False) #the progress dialog #connect to the ftp server ftp = FTP("192.168.0.1") ftp.login("username", "password") trans_file = open(pdffile) print trans_file #FTPprogress = FTPProgressDialog(filename) ftp.newstorbinary("STOR " + serial + "_" + fo_choice + "_" + tail1, trans_file, callback=self.wxcallback) trans_file.close() ftp.close() #set gauge to 100% caus it hangs at 99.9% although 100% self.g1.SetValue(230) self.t8.SetLabel("Percent: 100.00") self.t9.SetLabel("Kb: " + str(self.filesize) + " of " + str(self.filesize)) #let the user press Finish to close the window self.close_window_button.SetForegroundColour("green") self.close_window_button.Enable() application = wx.PySimpleApp() Window() application.MainLoop() ================================================================ patch for ftplib.py to support a callback for uploads: Append to your ftplib.py: =========================================================== def newstorbinary(self, cmd, fp, blocksize=8192, callback = None):#this version includeds a callback '''Store a file in binary mode.''' #CRLF = ftplib.CRLF self.voidcmd('TYPE I') conn = self.transfercmd(cmd) while 1: buf = fp.read(blocksize) if not buf: break conn.sendall(buf) if callback: callback(buf) conn.close() return self.voidresp() ================================================ --- On Tue, 8/5/08, Mike Covill wrote: > From: Mike Covill > Subject: Re: [Pythonmac-SIG] py2app- python code packed in clear ascii > To: the_shelter at yahoo.com > Cc: pythonmac-sig at python.org > Date: Tuesday, August 5, 2008, 2:08 PM > the shelter, > > The last time I built an app bundle, the only source file > from my code in plain ascii was my main.py file. Everything > else was precompiled and zipped up in a sub-folder. So the > strategy to hide all source code was to create a main.py > file which simply imports another file containing what used > to be in the main.py file, and run it from there. > > Here are some py2app resources I found useful: > > http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html > http://undefined.org/python/py2app.html > > Mike > > > On 4-Aug-08, at 12:45 PM, the Shelter wrote: > > > Hi, > > > > after a lot of python programming on linux and windows > I have now taken up the task of converting/ adapting my apps > (python/wxPython) to the mac. > > I tried to bundle my apps w/ py2app but had to find > out that it seems like it packs my sources in clear ascii > and not in binary form- somewhat unusual after having worked > w/ py2exe ... > > > > Am I missing something? > > > > Right now I am on 10.4 w/ latest python and py2app- > all from python.org- not the Apple versions. > > > > thanX > > > > > > > > _______________________________________________ > > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > > http://mail.python.org/mailman/listinfo/pythonmac-sig From Chris.Barker at noaa.gov Thu Nov 20 18:13:43 2008 From: Chris.Barker at noaa.gov (Christopher Barker) Date: Thu, 20 Nov 2008 09:13:43 -0800 Subject: [Pythonmac-SIG] app does not run when launched via main.py import was:py2app- python code packed in clear ascii In-Reply-To: <755930.87495.qm@web56306.mail.re3.yahoo.com> References: <755930.87495.qm@web56306.mail.re3.yahoo.com> Message-ID: <49259AC7.9000406@noaa.gov> the Shelter wrote: > However, now I face a strange problem even before I build an app bundle. the mainfile.py runs perfect when launched alone. > But when run via main.py it hangs when Upload button is presses. hmmm - it really should hang in either case.... > I susspect either wx.callback or the thread- I do think that's it. You can't use wx GUI calls form a different thread than wx was started in (usually the main thread). See the wxPython Wiki under "long running tasks", plus various discussions on the wxpython-users list. > def OnStartUpload(self,evt): > thread.start_new(self.FtpUp,()) this is running FtlUp in a new thread. > def FtpUp(self): > #start pulsing the gauge > self.g1.Pulse() > #disable the Upload button > self.start_upload_button.Enable(False) > #the progress dialog > #connect to the ftp server > ftp = FTP("192.168.0.1") > ftp.login("username", "password") > trans_file = open(pdffile) > print trans_file > #FTPprogress = FTPProgressDialog(filename) > ftp.newstorbinary("STOR " + serial + "_" + fo_choice + "_" + tail1, trans_file, callback=self.wxcallback) > > trans_file.close() > ftp.close() > > #set gauge to 100% caus it hangs at 99.9% although 100% > self.g1.SetValue(230) > self.t8.SetLabel("Percent: 100.00") > self.t9.SetLabel("Kb: " + str(self.filesize) + " of " + str(self.filesize)) and here you are making wx calls. That does cause problems. What you need to do is wrap up these calls in a method, say self.UpdateProgress(), and call that method with: wx.CallAfter(self.UpdateProgress) that should do it. There are other ways that you can read about if this isn't going to work for you. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker at noaa.gov From jeremy at jeremysanders.net Thu Nov 20 21:08:40 2008 From: jeremy at jeremysanders.net (Jeremy Sanders) Date: Thu, 20 Nov 2008 20:08:40 +0000 (GMT) Subject: [Pythonmac-SIG] py2app and PyQt4 Message-ID: Hi - I'm having problems with my PyQt4 application which uses pyuic dynamically to load in dialogs. Firstly py2app doesn't seem to include sip in the output dist, but does include PyQt4. Presumably it should work out that PyQt4 is dependent on sip. I can fix this with an explicit import sip, but maybe it should automatically include sip for PyQt4. The second problem is that it isn't properly handling this code in PyQt4: try: from xml.etree.cElementTree import parse, SubElement except ImportError: try: from cElementTree import parse, SubElement except ImportError: try: from elementtree.ElementTree import parse, SubElement except ImportError: from PyQt4.elementtree.ElementTree import parse, SubElement It fails when running the app on the final import, even though it should successfully be doing the first xml.etree.cElementTree import from the first line. I tried an explicit xml.etree.cElementTree import elsewhere in the code but this doesn't fix the problem. The other issue is in my code. To allow users to run the app without installing it, I have this code in the main script: # Allow veusz to be run even if not installed into PYTHONPATH try: import veusz except ImportError: # load in the veusz module, but change its path to # the veusz directory, and insert it into sys.modules import __init__ as veusz thisdir = os.path.dirname( os.path.abspath(__file__) ) veusz.__path__ = [thisdir] veusz.__name__ = 'veusz' sys.modules['veusz'] = veusz It doesn't process the program properly with this code. If I replace this block with just "import veusz" it works. This doesn't make much sense to me. I have another problem with an extension module, but I will save that for another email. Jeremy -- Jeremy Sanders http://www.jeremysanders.net/ Cambridge, UK Public Key Server PGP Key ID: E1AAE053 From arawak1 at yahoo.com Fri Nov 21 01:19:36 2008 From: arawak1 at yahoo.com (RONALD FRANCIS) Date: Thu, 20 Nov 2008 19:19:36 -0500 Subject: [Pythonmac-SIG] MacPython 2.5 font size Message-ID: <23AB3CDF-5122-4762-833C-2846BAE974FE@yahoo.com> I'm using an iMac which comes with MacPython installed. The program lauches IDLE.app. My problem is I cannot find any way to adjust the size of the font in the Python Shell. I spoke to a technician at AppleCare who surprisingly (like me) was not able to find out after putting me on hold for a little over three minutes. Could someone in the group launch the program and get back to me here or at arawak1 at yahoo.com .. Thank you! From kw at codebykevin.com Fri Nov 21 02:25:09 2008 From: kw at codebykevin.com (Kevin Walzer) Date: Thu, 20 Nov 2008 20:25:09 -0500 Subject: [Pythonmac-SIG] MacPython 2.5 font size In-Reply-To: <23AB3CDF-5122-4762-833C-2846BAE974FE@yahoo.com> References: <23AB3CDF-5122-4762-833C-2846BAE974FE@yahoo.com> Message-ID: <49260DF5.8060905@codebykevin.com> RONALD FRANCIS wrote: > I'm using an iMac which comes with MacPython installed. The program > lauches IDLE.app. My problem is I cannot find any way to adjust the > size of the font in the Python Shell. I spoke to a technician at > AppleCare who surprisingly (like me) was not able to find out after > putting me on hold for a little over three minutes. Could someone in > the group launch the program and get back to me here or at > arawak1 at yahoo.com.. > > Thank you! > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > > Did you try selecting the "font" tab in the preferences? -- Kevin Walzer Code by Kevin http://www.codebykevin.com From sas at abstracture.de Fri Nov 21 11:12:43 2008 From: sas at abstracture.de (Sven A. Schmidt) Date: Fri, 21 Nov 2008 11:12:43 +0100 Subject: [Pythonmac-SIG] Modifying table cell content with python-appscript Message-ID: <0DA1E144-A47C-4A67-A118-FA0B60F6AC50@abstracture.de> NB: In the process of writing this plea for help I've come up with a workaround. (Don't you love it when you solve your problem while asking about it? :) I'm posting this rather elaborate problem description anyway, because it might help others and because it is after all still a workaround and I'm sure there's room for improvement both in the code and my understanding of the very powerful python- applescript bridge. ------------------------------------------ Hi, I hope I'm in the correct place with this problem -- I've found this list through a link from the python-appscript page. My problem probably falls between python and AppleScript but I've not been able to find any clues on the web or in this list's archives. Please let me know if there's a better place for me to post this! I'm trying to script a Cocoa app I wrote to establish user level tests. To that end I'm trying to populate a table view (backed by Core Data) with entries. Thanks to Prefab's UI Browser I've had little trouble identifying and accessing the UI controls from py-appscript. However, progress has ground to a halt when I tried to change a value in a table view cell. The code is the following: ... table = scroll_area.tables[1] row = table.rows[index] text_field = row.text_fields[1] text_field.value.set(value) assert text_field.value() == value This fails with: File "create_document.py", line 47, in edit_customer assert text_field.value() == value AssertionError According to the AppleScript code UI Browser auto generates for text field value changes I'm doing the right thing by setting the value property: set value of text field 1 of row 1 of table 1 of scroll area 3 of splitter group 1 of window "Untitled" to "" It's just not working from appscript. I'm at a loss as to how to propagate the value change to the model. I've found that I can make the table cell highlight and change the actual displayed value by inserting the following before "value.set(...)": text_field.focused.set(True) However, this only changes the displayed value. The assert still fails. Of course I've tried inserting text_field.focused.set(False) after the calls to 'commit' the change to the table view but this does nothing at all! Not even reset focus. I've also tried focusing another element to commit the change but no luck. I was thinking to perhaps send a "Return" key stroke and I've found a way to do that (I'm using 'key_code' instead of 'keystroke', because I don't know what the return key constant should be in appscript): app('System Events').key_code(36) Doesn't make a difference though :( On a hunch I then tried the sequence of sending a regular keystroke plus return and lo and behold, the following works for some reason (does it have to do with the cell editor perhaps?): text_field.focused.set(True) app('System Events').keystroke(value) app('System Events').key_code(36) assert text_field.value() == value This is a bit kludgy but at least it works. If anyone has any tips on how to improve this it would be very much appreciated! Cheers, Sven From jeremy at jeremysanders.net Fri Nov 21 18:06:18 2008 From: jeremy at jeremysanders.net (Jeremy Sanders) Date: Fri, 21 Nov 2008 17:06:18 +0000 (GMT) Subject: [Pythonmac-SIG] py2app and PyQt4 In-Reply-To: References: Message-ID: Would it be possible for someone to have a look at the test case I've included? It is a very simple PyQt4 program to load a dialog from a ui file. py2app doesn't seem to handle the PyQt4.uic module properly. It also leaves out sip.py. Thanks Jeremy -- Jeremy Sanders http://www.jeremysanders.net/ Cambridge, UK Public Key Server PGP Key ID: E1AAE053 -------------- next part -------------- #!/usr/bin/env python import sys import os.path from PyQt4.QtCore import * from PyQt4.QtGui import * from PyQt4.uic import loadUi class TestDialog(QDialog): def __init__(self, *args): QDialog.__init__(self, *args) dirname = os.path.dirname( os.path.abspath(__file__) ) loadUi(os.path.join(dirname, 'test.ui'), self) if __name__ == '__main__': app = QApplication(sys.argv) dialog = TestDialog() dialog.show() app.exec_() -------------- next part -------------- Dialog 0 0 400 300 Dialog test -------------- next part -------------- #!/usr/bin/env python from distutils.core import setup, Extension from distutils.command.install_data import install_data import py2app # Pete Shinner's distutils data file fix... from distutils-sig # data installer with improved intelligence over distutils # data files are copied into the project directory instead # of willy-nilly class smart_install_data(install_data): def run(self): # need to change self.install_dir to the library dir install_cmd = self.get_finalized_command('install') self.install_dir = getattr(install_cmd, 'install_lib') return install_data.run(self) setup(name = 'test', app = ['test.py'], cmdclass = { 'install_data': smart_install_data }, data_files = [ ('', ['test.ui']) ], ) From Chris.Barker at noaa.gov Fri Nov 21 18:21:06 2008 From: Chris.Barker at noaa.gov (Christopher Barker) Date: Fri, 21 Nov 2008 09:21:06 -0800 Subject: [Pythonmac-SIG] py2app and PyQt4 In-Reply-To: References: Message-ID: <4926EE02.3050409@noaa.gov> Jeremy Sanders wrote: > Would it be possible for someone to have a look at the test case I've > included? Sorry, I don't use QT, and don't have the time to mess with it now, but you might want to look at the sip recipe: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/recipes/sip.py boy that's a long path! It apparently needs some updating, but seeing what used to work may give you a clue. Also, make sure you're using the latest py2app also. easy_install py2app==dev -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker at noaa.gov From jeremy at jeremysanders.net Fri Nov 21 18:34:39 2008 From: jeremy at jeremysanders.net (Jeremy Sanders) Date: Fri, 21 Nov 2008 17:34:39 +0000 (GMT) Subject: [Pythonmac-SIG] py2app and PyQt4 In-Reply-To: <4926EE02.3050409@noaa.gov> References: <4926EE02.3050409@noaa.gov> Message-ID: On Fri, 21 Nov 2008, Christopher Barker wrote: > Also, make sure you're using the latest py2app also. > > easy_install py2app==dev Thanks for the reminder. Using the latest development version fixes the nasty uic issue - I only had to manually include the sip package. Thanks again! Jeremy -- Jeremy Sanders http://www.jeremysanders.net/ Cambridge, UK Public Key Server PGP Key ID: E1AAE053 From Chris.Barker at noaa.gov Fri Nov 21 18:40:36 2008 From: Chris.Barker at noaa.gov (Christopher Barker) Date: Fri, 21 Nov 2008 09:40:36 -0800 Subject: [Pythonmac-SIG] py2app and PyQt4 In-Reply-To: References: <4926EE02.3050409@noaa.gov> Message-ID: <4926F294.5020802@noaa.gov> Jeremy Sanders wrote: > Thanks for the reminder. Using the latest development version fixes the > nasty uic issue - I only had to manually include the sip package. good to hear -- I wonder why the sip recipe didn't work? Any chance you can figure it out and provide a patch? -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker at noaa.gov From hengist.podd at virgin.net Fri Nov 21 19:27:07 2008 From: hengist.podd at virgin.net (has) Date: Fri, 21 Nov 2008 18:27:07 +0000 Subject: [Pythonmac-SIG] Modifying table cell content with python-appscript Message-ID: <39974A48-77A0-4073-BEF5-07DBD286736D@virgin.net> Sven A. Schmidt wrote: > I hope I'm in the correct place with this problem -- I've found this > list through a link from the python-appscript page. My problem > probably falls between python and AppleScript but I've not been able > to find any clues on the web or in this list's archives. Please let > me know if there's a better place for me to post this! Application-specific questions (e.g. "how do I create and send an email in Mail?") may be directed here and/or to applescript-users; wherever you think's appropriate. Questions on py-appscript itself are best directed here, since those are primarily related to Python. > I'm trying to script a Cocoa app I wrote to establish user level > tests. To that end I'm trying to populate a table view (backed by > Core Data) with entries. Thanks to Prefab's UI Browser I've had > little trouble identifying and accessing the UI controls from py- > appscript. However, progress has ground to a halt when I tried to > change a value in a table view cell. The code is the following: > [...] Should work, although hard to say why it isn't without some more detail. A couple pointers: - If you're on Python 2.6, make sure you're using py-appscript 0.19.0 (which includes a workaround for a known problem in Python 2.6's UTF-16 codec). You can either grab it from the svn trunk or wait a few days for the official file release. - If you're on 2.5 or earlier, post the complete appscript code you're using to set the text field's value and the Python value you get when you get it so we can take a look, e.g. something like: ref = app('AppName').windows['Untitled'].splitter_groups[1] \ .scroll_areas[3].tables[1].rows[1].text_fields[1] s = '' ref.value.set(s) t = ref.value() print (s, t, s == t) # Result: ... HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net From sas at abstracture.de Sat Nov 22 11:10:55 2008 From: sas at abstracture.de (Sven A. Schmidt) Date: Sat, 22 Nov 2008 11:10:55 +0100 Subject: [Pythonmac-SIG] Modifying table cell content with python-appscript In-Reply-To: <39974A48-77A0-4073-BEF5-07DBD286736D@virgin.net> References: <39974A48-77A0-4073-BEF5-07DBD286736D@virgin.net> Message-ID: <5FE79860-A683-4AD9-916D-5228A332103D@abstracture.de> has, thanks a lot for your reply! > Should work, although hard to say why it isn't without some more > detail. A couple pointers: Right, after years of replying to bug reports with "what version are you using" I forget to include version info... I'm using python 2.5 and appscript 0.18.1, both from fink: i appscript-py25 0.18.1-1 High level Apple event bridge for Python i python25 1:2.5.2-1 Interpreted, object-oriented language > - If you're on 2.5 or earlier, post the complete appscript code > you're using to set the text field's value and the Python value you > get when you get it so we can take a look, e.g. something like: > > ref = app('AppName').windows['Untitled'].splitter_groups[1] \ > .scroll_areas[3].tables[1].rows[1].text_fields[1] > > s = '' > ref.value.set(s) > t = ref.value() > print (s, t, s == t) > # Result: ... Ok, I've tried your example: sysevents = app('System Events') hg = sysevents.processes['Hourglass'] ref = hg.windows['Untitled'].splitter_groups[1] \ .scroll_areas[3].tables[1].rows[1].text_fields[1] s = '' ref.value.set(s) t = ref.value() print (s, t, s == t) Here's what I get: [eris:sas/Hourglass-trunk/Tests] sas% python2.5 hg_test.py ('', u'unnamed customer', False) BTW, your code "app('AppName').windows['Untitled']" fails with AttributeError: Unknown property, element or command: 'windows' and I have to use the process from sysevents. I suppose this is because my app is not scriptable and I'm using UI scripting? Is that essentially the difference between app('xxx') and sysevents.processes['xxx']? (I guess this has nothing to do with my actual problem, I'm just curious.) Cheers, Sven From hengist.podd at virgin.net Sat Nov 22 12:03:24 2008 From: hengist.podd at virgin.net (has) Date: Sat, 22 Nov 2008 11:03:24 +0000 Subject: [Pythonmac-SIG] Modifying table cell content with python-appscript In-Reply-To: <5FE79860-A683-4AD9-916D-5228A332103D@abstracture.de> References: <39974A48-77A0-4073-BEF5-07DBD286736D@virgin.net> <5FE79860-A683-4AD9-916D-5228A332103D@abstracture.de> Message-ID: <90FE0340-3AB7-4F11-A90B-8668661BAD94@virgin.net> On 22 Nov 2008, at 10:10, Sven A. Schmidt wrote: >> - If you're on 2.5 or earlier, post the complete appscript code >> you're using to set the text field's value and the Python value you >> get when you get it so we can take a look, e.g. something like: >> >> ref = app('AppName').windows['Untitled'].splitter_groups[1] \ >> .scroll_areas[3].tables[1].rows[1].text_fields[1] >> >> s = '' >> ref.value.set(s) >> t = ref.value() >> print (s, t, s == t) >> # Result: ... > > Ok, I've tried your example: > > sysevents = app('System Events') > hg = sysevents.processes['Hourglass'] > > ref = hg.windows['Untitled'].splitter_groups[1] \ > .scroll_areas[3].tables[1].rows[1].text_fields[1] > > s = '' > ref.value.set(s) > t = ref.value() > print (s, t, s == t) > > Here's what I get: > > [eris:sas/Hourglass-trunk/Tests] sas% python2.5 hg_test.py > ('', u'unnamed customer', False) Any idea where the 'unnamed customer' is coming from? Is the appscript 'set' command setting the text field's value? Can you post both your working AppleScript and non-working Python script for comparison? Also, if you can run your application with AEDebug enabled: export AEDebugSends=1; export AEDebugReceives=1; open /path/to/ YourApp.app run the AppleScript and the Python script, and post the raw Apple event logs from Console, that'll let me check for any differences between the events they're sending that might explain it. > BTW, your code "app('AppName').windows['Untitled']" fails with > > AttributeError: Unknown property, element or command: 'windows' Durr, my bad. Yes, you're right, should've been sysevents.processes['YourApp'].windows.... has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net From georgewr at bigpond.net.au Sat Nov 22 21:54:30 2008 From: georgewr at bigpond.net.au (George Wright) Date: Sun, 23 Nov 2008 07:54:30 +1100 Subject: [Pythonmac-SIG] python help() >modules problem Message-ID: <01347537-F79B-42F0-B38C-D9ACFAD08F6C@bigpond.net.au> Gidday When I start python2.5 (on OSX 2.5.4) in Terminal then help() then modules I don't get the expected list of modules but this error: help> modules Please wait a moment while I gather a list of all available modules... Leopard libedit detected. Traceback (most recent call last): File "", line 1, in File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site.py", line 348, in __call__ return pydoc.help(*args, **kwds) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/pydoc.py", line 1647, in __call__ self.interact() File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/pydoc.py", line 1665, in interact self.help(request) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/pydoc.py", line 1681, in help elif request == 'modules': self.listmodules() File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/pydoc.py", line 1802, in listmodules ModuleScanner().run(callback) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/pydoc.py", line 1853, in run for importer, modname, ispkg in pkgutil.walk_packages(): File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/pkgutil.py", line 110, in walk_packages __import__(name) File "/usr/local/lib/wxPython-unicode-2.8.9.1/lib/python2.5/site- packages/wxaddons/__init__.py", line 29, in config = wx.Config("wxaddons") File "//usr/local/lib/wxPython-unicode-2.8.9.1/lib/python2.5/site- packages/wx-2.8-mac-unicode/wx/_misc.py", line 3298, in __init__ _misc_.Config_swiginit(self,_misc_.new_Config(*args, **kwargs)) wx._core.PyNoAppError: The wx.App object must be created first! I don't understand why it is interested in wx.App ?? If I try to run wx demos from the developer examples I get a similar response: python2.5 /Developer/Examples/wxWidgets/wxPython/demo/SizedControls.py Traceback (most recent call last): File "/Developer/Examples/wxWidgets/wxPython/demo/ SizedControls.py", line 2, in import wxaddons.sized_controls as sc File "/usr/local/lib/wxPython-unicode-2.8.9.1/lib/python2.5/site- packages/wxaddons/__init__.py", line 29, in config = wx.Config("wxaddons") File "//usr/local/lib/wxPython-unicode-2.8.9.1/lib/python2.5/site- packages/wx-2.8-mac-unicode/wx/_misc.py", line 3298, in __init__ _misc_.Config_swiginit(self,_misc_.new_Config(*args, **kwargs)) wx._core.PyNoAppError: The wx.App object must be created first! Furthermore: If I start python2.6 I do get the asked for list of modules but the Python application fires up and bounces in dock until it eventually stops and reports "Application Not Responding" Anyone help? George Wright georgewr at bigpond.net.au http://mywebsite.bigpond.net.au/georgewr http://www.labyrinth.net.au/~gwright From joe at strout.net Sun Nov 23 04:55:19 2008 From: joe at strout.net (Joe Strout) Date: Sat, 22 Nov 2008 20:55:19 -0700 Subject: [Pythonmac-SIG] python help() >modules problem In-Reply-To: <01347537-F79B-42F0-B38C-D9ACFAD08F6C@bigpond.net.au> References: <01347537-F79B-42F0-B38C-D9ACFAD08F6C@bigpond.net.au> Message-ID: Hi George, I don't have anything helpful to say on all of your questions, but I think I can help with this one: On Nov 22, 2008, at 1:54 PM, George Wright wrote: > If I try to run wx demos from the developer examples I get a similar > response: > > python2.5 /Developer/Examples/wxWidgets/wxPython/demo/SizedControls.py ... > wx._core.PyNoAppError: The wx.App object must be created first! You aren't intended to run the individual files directly. Instead, run demo.py. HTH, - Joe From sas at abstracture.de Mon Nov 24 10:15:22 2008 From: sas at abstracture.de (Sven A. Schmidt) Date: Mon, 24 Nov 2008 10:15:22 +0100 Subject: [Pythonmac-SIG] Modifying table cell content with python-appscript In-Reply-To: <90FE0340-3AB7-4F11-A90B-8668661BAD94@virgin.net> References: <39974A48-77A0-4073-BEF5-07DBD286736D@virgin.net> <5FE79860-A683-4AD9-916D-5228A332103D@abstracture.de> <90FE0340-3AB7-4F11-A90B-8668661BAD94@virgin.net> Message-ID: >> Ok, I've tried your example: >> >> sysevents = app('System Events') >> hg = sysevents.processes['Hourglass'] >> >> ref = hg.windows['Untitled'].splitter_groups[1] \ >> .scroll_areas[3].tables[1].rows[1].text_fields[1] >> >> s = '' >> ref.value.set(s) >> t = ref.value() >> print (s, t, s == t) >> >> Here's what I get: >> >> [eris:sas/Hourglass-trunk/Tests] sas% python2.5 hg_test.py >> ('', u'unnamed customer', False) > > Any idea where the 'unnamed customer' is coming from? Is the > appscript 'set' command setting the text field's value? Can you post > both your working AppleScript and non-working Python script for > comparison? Also, if you can run your application with AEDebug > enabled: The 'unnamed customer' is the original field value, sorry for not mentioning that. It never changes. I don't have an AppleScript, I'm just doing this with appscript. The AEDebug output is rather long, I'll send you the full output off- list. Cheers, Sven From hengist.podd at virgin.net Mon Nov 24 22:13:16 2008 From: hengist.podd at virgin.net (has) Date: Mon, 24 Nov 2008 21:13:16 +0000 Subject: [Pythonmac-SIG] Modifying table cell content with python-appscript In-Reply-To: References: <39974A48-77A0-4073-BEF5-07DBD286736D@virgin.net> <5FE79860-A683-4AD9-916D-5228A332103D@abstracture.de> <90FE0340-3AB7-4F11-A90B-8668661BAD94@virgin.net> Message-ID: <9E07ACF2-DBAB-400B-AF72-8F6CC745CEE7@virgin.net> On 24 Nov 2008, at 09:15, Sven A. Schmidt wrote: >>> Here's what I get: >>> >>> [eris:sas/Hourglass-trunk/Tests] sas% python2.5 hg_test.py >>> ('', u'unnamed customer', False) >> >> Any idea where the 'unnamed customer' is coming from? Is the >> appscript 'set' command setting the text field's value? Can you >> post both your working AppleScript and non-working Python script >> for comparison? Also, if you can run your application with AEDebug >> enabled: > > The 'unnamed customer' is the original field value, sorry for not > mentioning that. It never changes. I don't have an AppleScript, I'm > just doing this with appscript. Ah, right. I misunderstood - I thought you had it working in AppleScript but not appscript. Quick question: is the table field in question editable? (i.e. Can you click in it and type text manually?) Cheers, has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net From sas at abstracture.de Mon Nov 24 23:23:38 2008 From: sas at abstracture.de (Sven A. Schmidt) Date: Mon, 24 Nov 2008 23:23:38 +0100 Subject: [Pythonmac-SIG] Modifying table cell content with python-appscript In-Reply-To: <9E07ACF2-DBAB-400B-AF72-8F6CC745CEE7@virgin.net> References: <39974A48-77A0-4073-BEF5-07DBD286736D@virgin.net> <5FE79860-A683-4AD9-916D-5228A332103D@abstracture.de> <90FE0340-3AB7-4F11-A90B-8668661BAD94@virgin.net> <9E07ACF2-DBAB-400B-AF72-8F6CC745CEE7@virgin.net> Message-ID: On Nov 24, 2008, at 22:13, has wrote: > On 24 Nov 2008, at 09:15, Sven A. Schmidt wrote: > >>>> Here's what I get: >>>> >>>> [eris:sas/Hourglass-trunk/Tests] sas% python2.5 hg_test.py >>>> ('', u'unnamed customer', False) >>> >>> Any idea where the 'unnamed customer' is coming from? Is the >>> appscript 'set' command setting the text field's value? Can you >>> post both your working AppleScript and non-working Python script >>> for comparison? Also, if you can run your application with AEDebug >>> enabled: >> >> The 'unnamed customer' is the original field value, sorry for not >> mentioning that. It never changes. I don't have an AppleScript, I'm >> just doing this with appscript. > > > Ah, right. I misunderstood - I thought you had it working in > AppleScript but not appscript. Quick question: is the table field in > question editable? (i.e. Can you click in it and type text manually?) Yes, it is. I can even make it editable via code (see original description) by setting the focused property. But I can't make the change stick then. Cheers, Sven From hengist.podd at virgin.net Mon Nov 24 23:33:25 2008 From: hengist.podd at virgin.net (has) Date: Mon, 24 Nov 2008 22:33:25 +0000 Subject: [Pythonmac-SIG] Modifying table cell content with python-appscript In-Reply-To: References: <39974A48-77A0-4073-BEF5-07DBD286736D@virgin.net> <5FE79860-A683-4AD9-916D-5228A332103D@abstracture.de> <90FE0340-3AB7-4F11-A90B-8668661BAD94@virgin.net> <9E07ACF2-DBAB-400B-AF72-8F6CC745CEE7@virgin.net> Message-ID: On 24 Nov 2008, at 22:23, Sven A. Schmidt wrote: >>>> Any idea where the 'unnamed customer' is coming from? Is the >>>> appscript 'set' command setting the text field's value? Can you >>>> post both your working AppleScript and non-working Python script >>>> for comparison? Also, if you can run your application with >>>> AEDebug enabled: >>> >>> The 'unnamed customer' is the original field value, sorry for not >>> mentioning that. It never changes. I don't have an AppleScript, >>> I'm just doing this with appscript. >> >> >> Ah, right. I misunderstood - I thought you had it working in >> AppleScript but not appscript. Quick question: is the table field >> in question editable? (i.e. Can you click in it and type text >> manually?) > > Yes, it is. I can even make it editable via code (see original > description) by setting the focused property. But I can't make the > change stick then. OK. Can you also try the same commands in AppleScript to check if it works there or not. Something like: tell app "System Events" tell process "Hourglass" set value of text field 1 of row 1 of table 1 of scroll area 3 ? of splitter group 1 of window "Untitled" to "" return value of text field 1 of row 1 of table 1 of scroll area 3 ? of splitter group 1 of window "Untitled" end end Thanks, has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net From hengist.podd at virgin.net Tue Nov 25 20:06:07 2008 From: hengist.podd at virgin.net (has) Date: Tue, 25 Nov 2008 19:06:07 +0000 Subject: [Pythonmac-SIG] Python 2.6 eggs don't quite build as universal Message-ID: <5F990B9F-9853-4A15-B056-E3F957FF6D63@virgin.net> Hi all, In the process of putting py-appscript 0.19.0 eggs onto PyPI and noticed that the installer-based Python 2.6 distribution off python.org, like the Python 2.5 that ships with Leopard, seems to build eggs as universal but marks their filenames as i386/ppc. Questions: - Anyone know why it's doing this? (The Python 2.5 distro from python.org correctly labeled eggs as fat.) - I've uploaded an 'i386' egg for 2.6, but am still futzing around trying to do a 'ppc' one on the assumption that python.org's Python 2.6 on a PPC box will be looking for 'ppc' in the egg's filename rather than 'fat'. Anyone with Python 2.6 + easy_install on a G4/G5 want to try 'easy_install appscript' and see what it does? (BTW, if you email me the resulting .egg off-list I'll bung it onto PyPI.) - Anyone know if I can just change 'i386' in the egg's filename to 'ppc', or does it really have to be built under a PPC process? (I can probably build a ppc-only python2.6 interpreter for running on my Intel box, but it won't be tonight.) Thanks, has p.s. Happy py-appscript beta release day. I'll put out a proper announcement sometime in the next few days, and I'll also get separate file releases of py-aemreceive and py-osaterminology out shortly as they're no longer included in the py-appscript distribution. -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net From hengist.podd at virgin.net Tue Nov 25 20:13:11 2008 From: hengist.podd at virgin.net (has) Date: Tue, 25 Nov 2008 19:13:11 +0000 Subject: [Pythonmac-SIG] Modifying table cell content with python-appscript In-Reply-To: <64CBFCCA-ABEC-4DF2-B491-FB115DE234F5@abstracture.de> References: <39974A48-77A0-4073-BEF5-07DBD286736D@virgin.net> <5FE79860-A683-4AD9-916D-5228A332103D@abstracture.de> <90FE0340-3AB7-4F11-A90B-8668661BAD94@virgin.net> <9E07ACF2-DBAB-400B-AF72-8F6CC745CEE7@virgin.net> <64CBFCCA-ABEC-4DF2-B491-FB115DE234F5@abstracture.de> Message-ID: <14D777F1-BAAC-4494-95ED-E3B07284E952@virgin.net> On 24 Nov 2008, at 22:46, Sven A. Schmidt wrote: >> OK. Can you also try the same commands in AppleScript to check if >> it works there or not. Something like: >> >> tell app "System Events" >> tell process "Hourglass" >> set value of text field 1 of row 1 of table 1 of scroll area 3 ? >> of splitter group 1 of window "Untitled" to "" >> return value of text field 1 of row 1 of table 1 of scroll area 3 ? >> of splitter group 1 of window "Untitled" >> end >> end > > Same behavior as with appscript: > > "unnamed customer" > > If I focus the field manually (make it editable) and run the script > it changes the string and returns "". If I then click > outside the cell and make it non-editable again the value returns to > "unnamed customer". This is consistent with its behavior in my > appscript. I must be missing something very obvious or is it just > not possible in this way to modify table view cells in this way? > > Thanks for looking into this, I appreciate it a lot! No problem. I'm afraid I still don't have an answer for you, but at least that rules out appscript as a possible cause. If you want to email me a copy of your app off-list I'll be happy to run some tests against it to see if I can come up with anything. Another thing you could do is post your question along (using the above AppleScript) on the appscript-users mailing list - you're bound to find some folks there with more GUI Scripting experience than me, and they might have some ideas as well. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net From nad at acm.org Tue Nov 25 20:46:00 2008 From: nad at acm.org (Ned Deily) Date: Tue, 25 Nov 2008 11:46:00 -0800 Subject: [Pythonmac-SIG] Python 2.6 eggs don't quite build as universal References: <5F990B9F-9853-4A15-B056-E3F957FF6D63@virgin.net> Message-ID: In article <5F990B9F-9853-4A15-B056-E3F957FF6D63 at virgin.net>, has wrote: > In the process of putting py-appscript 0.19.0 eggs onto PyPI and > noticed that the installer-based Python 2.6 distribution off > python.org, like the Python 2.5 that ships with Leopard, seems to > build eggs as universal but marks their filenames as i386/ppc. > Questions: > - I've uploaded an 'i386' egg for 2.6, but am still futzing around > trying to do a 'ppc' one on the assumption that python.org's Python > 2.6 on a PPC box will be looking for 'ppc' in the egg's filename > rather than 'fat'. Anyone with Python 2.6 + easy_install on a G4/G5 > want to try 'easy_install appscript' and see what it does? (BTW, if > you email me the resulting .egg off-list I'll bung it onto PyPI.) As you suspected, it doesn't find the i386 egg and builds from source instead. ("it" == setuptools-0.6c9) > (BTW, if you email me the resulting .egg off-list I'll bung it onto PyPI.) Done. -- Ned Deily, nad at acm.org From mariano.difelice at gmail.com Wed Nov 26 16:04:48 2008 From: mariano.difelice at gmail.com (Mariano Di Felice) Date: Wed, 26 Nov 2008 16:04:48 +0100 Subject: [Pythonmac-SIG] PyColourChooser don't works Message-ID: <492D6590.6070903@gmail.com> Hello, I've tried to use PyColourChooser for my app ( python2.5.1, wxPython 2.8.7.1 ), and I 've found that this control don't works on MAC platform... I 've thought my code is wrong, and I've downloaded wxPython-demo, but also in demo this control doesn't works! Someone can help me, please?? thx From codyprecord at gmail.com Wed Nov 26 16:12:49 2008 From: codyprecord at gmail.com (Cody Precord) Date: Wed, 26 Nov 2008 09:12:49 -0600 Subject: [Pythonmac-SIG] PyColourChooser don't works In-Reply-To: <492D6590.6070903@gmail.com> References: <492D6590.6070903@gmail.com> Message-ID: Hello, On Wed, Nov 26, 2008 at 9:04 AM, Mariano Di Felice < mariano.difelice at gmail.com> wrote: > Hello, > I've tried to use PyColourChooser for my app ( python2.5.1, wxPython > 2.8.7.1 ), and I 've found that this control don't works on MAC > platform... > I 've thought my code is wrong, and I've downloaded wxPython-demo, but also > in demo this control doesn't works! > > Someone can help me, please?? Its been fixed in newer versions of wxpthon. Update to 2.8.8 or higher. Cody -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrea.gavana at gmail.com Wed Nov 26 16:16:37 2008 From: andrea.gavana at gmail.com (Andrea Gavana) Date: Wed, 26 Nov 2008 15:16:37 +0000 Subject: [Pythonmac-SIG] PyColourChooser don't works In-Reply-To: References: <492D6590.6070903@gmail.com> Message-ID: Hello, On Wed, Nov 26, 2008 at 3:12 PM, Cody Precord wrote: > > Hello, > On Wed, Nov 26, 2008 at 9:04 AM, Mariano Di Felice > wrote: >> >> Hello, >> I've tried to use PyColourChooser for my app ( python2.5.1, wxPython >> 2.8.7.1 ), and I 've found that this control don't works on MAC platform... >> I 've thought my code is wrong, and I've downloaded wxPython-demo, but >> also in demo this control doesn't works! >> >> Someone can help me, please?? > > Its been fixed in newer versions of wxpthon. Update to 2.8.8 or higher. Or try and get some ideas from CubeColourDialog: http://xoomer.alice.it/infinity77/main/freeware.html#cubecolourdialog :-D Andrea. "Imagination Is The Only Weapon In The War Against Reality." http://xoomer.alice.it/infinity77/ From joe at strout.net Wed Nov 26 16:40:44 2008 From: joe at strout.net (Joe Strout) Date: Wed, 26 Nov 2008 08:40:44 -0700 Subject: [Pythonmac-SIG] PyColourChooser don't works In-Reply-To: References: <492D6590.6070903@gmail.com> Message-ID: <0D913E0E-5A1A-4CF6-8D19-B53EEC35D526@strout.net> On Nov 26, 2008, at 8:16 AM, Andrea Gavana wrote: >> Its been fixed in newer versions of wxpthon. Update to 2.8.8 or >> higher. > > Or try and get some ideas from CubeColourDialog: > > http://xoomer.alice.it/infinity77/main/freeware.html#cubecolourdialog Hey, I never noticed Andrea's page before -- if there are other wx newbies here, I encourage you to check it out. He's got a lot of neat stuff there that could be useful in one project or another. Andrea, thanks for making that stuff available! Best, - Joe From andrea.gavana at gmail.com Wed Nov 26 17:05:41 2008 From: andrea.gavana at gmail.com (Andrea Gavana) Date: Wed, 26 Nov 2008 16:05:41 +0000 Subject: [Pythonmac-SIG] PyColourChooser don't works In-Reply-To: <0D913E0E-5A1A-4CF6-8D19-B53EEC35D526@strout.net> References: <492D6590.6070903@gmail.com> <0D913E0E-5A1A-4CF6-8D19-B53EEC35D526@strout.net> Message-ID: Hi Joe & All, On Wed, Nov 26, 2008 at 3:40 PM, Joe Strout wrote: > On Nov 26, 2008, at 8:16 AM, Andrea Gavana wrote: > >>> Its been fixed in newer versions of wxpthon. Update to 2.8.8 or higher. >> >> Or try and get some ideas from CubeColourDialog: >> >> http://xoomer.alice.it/infinity77/main/freeware.html#cubecolourdialog > > Hey, I never noticed Andrea's page before -- if there are other wx newbies > here, I encourage you to check it out. He's got a lot of neat stuff there > that could be useful in one project or another. Andrea, thanks for making > that stuff available! You're welcome :-D . I am happy that you found my web page useful. You might be wondering what the $&%? I am doing on the Pythonmac mailing list (as I know nothing of Mac)... I am thinking of trashing my old Windows notebook and completely switch from Microsoft to Mac... so it's good to read how the Python mac world is going. Andrea. "Imagination Is The Only Weapon In The War Against Reality." http://xoomer.alice.it/infinity77/ From mariano.difelice at gmail.com Wed Nov 26 19:03:32 2008 From: mariano.difelice at gmail.com (Mariano Di Felice) Date: Wed, 26 Nov 2008 19:03:32 +0100 Subject: [Pythonmac-SIG] PyColourChooser don't works In-Reply-To: References: <492D6590.6070903@gmail.com> <0D913E0E-5A1A-4CF6-8D19-B53EEC35D526@strout.net> Message-ID: Ok, but .... I cannot upgrade my wxpython version, and my object must works... Any idea? Can I download only pycolourchooser module (from where?) and replace my source? thx 2008/11/26 Andrea Gavana > Hi Joe & All, > > On Wed, Nov 26, 2008 at 3:40 PM, Joe Strout wrote: > > On Nov 26, 2008, at 8:16 AM, Andrea Gavana wrote: > > > >>> Its been fixed in newer versions of wxpthon. Update to 2.8.8 or higher. > >> > >> Or try and get some ideas from CubeColourDialog: > >> > >> http://xoomer.alice.it/infinity77/main/freeware.html#cubecolourdialog > > > > Hey, I never noticed Andrea's page before -- if there are other wx > newbies > > here, I encourage you to check it out. He's got a lot of neat stuff > there > > that could be useful in one project or another. Andrea, thanks for > making > > that stuff available! > > You're welcome :-D . I am happy that you found my web page useful. You > might be wondering what the $&%? I am doing on the Pythonmac mailing > list (as I know nothing of Mac)... I am thinking of trashing my old > Windows notebook and completely switch from Microsoft to Mac... so > it's good to read how the Python mac world is going. > > Andrea. > > "Imagination Is The Only Weapon In The War Against Reality." > http://xoomer.alice.it/infinity77/ > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > -------------- next part -------------- An HTML attachment was scrubbed... URL: From janee at softweave.com Wed Nov 26 21:44:48 2008 From: janee at softweave.com (Jane Eisenstein) Date: Wed, 26 Nov 2008 15:44:48 -0500 Subject: [Pythonmac-SIG] Mac IDLE Fonts? (-or- I guess I need glasses.) Message-ID: <44A8EA57-6FC4-4302-A3DE-A09895D6D4AB@softweave.com> I installed MacPython 2.5.2 after finding out MacPython 2.6 IDLE app doesn't work. Then I installed TK 8.4.19 as suggested in this thread to get Preferences to appear under the IDLE menu . However, I still can't adjust the IDLE font size. Clicking the Apply or OK buttons in the Preferences dialog window has no effect. Has anyone found around this problem? Is there perhaps a resource file that can be hand edited? Jane running PPC with 10.4.11 From pythonmac at rebertia.com Wed Nov 26 21:49:09 2008 From: pythonmac at rebertia.com (Chris Rebert) Date: Wed, 26 Nov 2008 12:49:09 -0800 Subject: [Pythonmac-SIG] Mac IDLE Fonts? (-or- I guess I need glasses.) In-Reply-To: <44A8EA57-6FC4-4302-A3DE-A09895D6D4AB@softweave.com> References: <44A8EA57-6FC4-4302-A3DE-A09895D6D4AB@softweave.com> Message-ID: <47c890dc0811261249y3442af8et33ae4285aa2ba804@mail.gmail.com> On Wed, Nov 26, 2008 at 12:44 PM, Jane Eisenstein wrote: > I installed MacPython 2.5.2 after finding out MacPython 2.6 IDLE app doesn't > work. Then I installed TK 8.4.19 as suggested in this thread to get > Preferences to appear under the IDLE menu . > > However, I still can't adjust the IDLE font size. Clicking the Apply or OK > buttons in the Preferences dialog window has no effect. > > Has anyone found around this problem? Is there perhaps a resource file that > can be hand edited? Not sure if it really helps, but I have Python 2.6 from Fink and changing the font size works fine with its included IDLE. Cheers, Chris -- Follow the path of the Iguana... http://rebertia.com > > Jane running PPC with 10.4.11 > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > From georgewr at bigpond.net.au Wed Nov 26 20:46:28 2008 From: georgewr at bigpond.net.au (George Wright) Date: Thu, 27 Nov 2008 06:46:28 +1100 Subject: [Pythonmac-SIG] python help() >modules problem In-Reply-To: References: Message-ID: Well yes Joe - all runs well from demo.py. Some run well called on their own. Slider.py and Sound.py for example. But not the SizedControls.py example. But I don't want to get bogged down on this - it is the python help() modules thing I'd like to get going again. On 23/11/2008, at 10:00 PM, Joe Strout wrote: > Hi George, > > I don't have anything helpful to say on all of your questions, but I > think I can help with this one: > > On Nov 22, 2008, at 1:54 PM, George Wright wrote: > >> If I try to run wx demos from the developer examples I get a >> similar response: >> >> python2.5 /Developer/Examples/wxWidgets/wxPython/demo/ >> SizedControls.py > ... >> wx._core.PyNoAppError: The wx.App object must be created first! > > You aren't intended to run the individual files directly. Instead, > run demo.py. > > HTH, > - Joe George Wright georgewr at bigpond.net.au http://mywebsite.bigpond.net.au/georgewr http://www.labyrinth.net.au/~gwright -------------- next part -------------- An HTML attachment was scrubbed... URL: From joe at strout.net Thu Nov 27 02:34:48 2008 From: joe at strout.net (Joe Strout) Date: Wed, 26 Nov 2008 18:34:48 -0700 Subject: [Pythonmac-SIG] Python-Ogre on Mac OS X? Message-ID: <6D408B31-19ED-40A4-9899-AE9ECB99D485@strout.net> I've just stumbled across the Python-Ogre project (http://www.pythonogre.com/ ). It looks fantastic, but the only binary is for Windows. That seems a little silly for a set of cross-platform-language bindings to a cross-platform library. :) There are older build instructions for Mac OS X available, as well as Linux (and pretty much anything that works on Linux can be made to work on OS X). And of course OS X has high-quality OpenGL drivers built in, and a great uniformity of hardware and OS configurations compared to Linux or Windows. So it ought to be fairly easy to keep this running well on the Mac, enabling great Python 3D game development that's truly cross-platform. But I don't know if I can do all that myself... is anyone else here interested in this? Perhaps we could share the maintenance. Best, - Joe From vivacarlie at gmail.com Thu Nov 27 04:27:44 2008 From: vivacarlie at gmail.com (Nehemiah Dacres) Date: Wed, 26 Nov 2008 21:27:44 -0600 Subject: [Pythonmac-SIG] Python-Ogre on Mac OS X? In-Reply-To: <6D408B31-19ED-40A4-9899-AE9ECB99D485@strout.net> References: <6D408B31-19ED-40A4-9899-AE9ECB99D485@strout.net> Message-ID: <65fadfc30811261927n5b81e5ebn2138c854e2a58419@mail.gmail.com> I am always hesitant to volenter for these things but I must take charge of something. I must mind you that I have little power. I am a 4th year CS student with knowledge of posix. Note that I didn't use the word good. I know python, C and C++. I regularly use linux and Mac OS 10 and I have the OSXbook for reference. Its a little old because it covers up to Tiger On Wed, Nov 26, 2008 at 7:34 PM, Joe Strout wrote: > I've just stumbled across the Python-Ogre project ( > http://www.pythonogre.com/). It looks fantastic, but the only binary is > for Windows. That seems a little silly for a set of cross-platform-language > bindings to a cross-platform library. :) > > There are older build instructions for Mac OS X available, as well as Linux > (and pretty much anything that works on Linux can be made to work on OS X). > And of course OS X has high-quality OpenGL drivers built in, and a great > uniformity of hardware and OS configurations compared to Linux or Windows. > So it ought to be fairly easy to keep this running well on the Mac, > enabling great Python 3D game development that's truly cross-platform. > > But I don't know if I can do all that myself... is anyone else here > interested in this? Perhaps we could share the maintenance. > > Best, > - Joe > > > > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > -- "lalalalala! it's not broken because I can use it" http://linux.slashdot.org/comments.pl?sid=194281&threshold=1&commentsort=0&mode=thread&cid=15927703 -------------- next part -------------- An HTML attachment was scrubbed... URL: From matthias.baas at gmail.com Thu Nov 27 23:23:28 2008 From: matthias.baas at gmail.com (Matthias Baas) Date: Thu, 27 Nov 2008 22:23:28 +0000 Subject: [Pythonmac-SIG] Python-Ogre on Mac OS X? In-Reply-To: <6D408B31-19ED-40A4-9899-AE9ECB99D485@strout.net> References: <6D408B31-19ED-40A4-9899-AE9ECB99D485@strout.net> Message-ID: <492F1DE0.6020701@gmail.com> Joe Strout wrote: > I've just stumbled across the Python-Ogre project > (http://www.pythonogre.com/). It looks fantastic, but the only binary > is for Windows. That seems a little silly for a set of > cross-platform-language bindings to a cross-platform library. :) > > There are older build instructions for Mac OS X available, as well as > Linux (and pretty much anything that works on Linux can be made to work > on OS X). And of course OS X has high-quality OpenGL drivers built in, > and a great uniformity of hardware and OS configurations compared to > Linux or Windows. So it ought to be fairly easy to keep this running > well on the Mac, enabling great Python 3D game development that's truly > cross-platform. > > But I don't know if I can do all that myself... is anyone else here > interested in this? Perhaps we could share the maintenance. Have you already tried building the bindings? Where did it fail? I had a quick look into the svn repository and the wiki. Their build instructions describe how to do everything from scratch: - Building the required C++ libs (Ogre, etc.) - Generating the bindings source code using Py++ - Compiling the bindings If you already have the C++ libraries installed or get the binaries from somewhere else (there is a binary on the Ogre site), then you can probably skip the first step. I would recommend to skip the second step as well as this isn't the most straightforward thing to do on OSX (Apple's gcc is not the same as the regular gcc which is what gccxml is based on). And obviously, the generated sources exist already as they are building a Windows version, so why reinventing the wheel? I'm not aware that you have to regenerate the sources on every platform. When I was using Py++ for a project of mine, I was generating the source files only on one platform (Linux) and was then using them on OSX and Windows as well which worked fine. I'm not sure if the sources are available in svn, but if they are not, I would rather ask the author if he could make them available instead of trying to generate them myself. As to step 3, there is a setup.py script but it looked a bit short and the build instructions mention another build script, so maybe this one requires some customization (here I would recommend trying to get a proper setup script done which can then also be used to create binaries on every platform). I haven't tried running any Ogre stuff (C++ or Python) on OSX so far which is why I can't say if step 1 will really be that straightforward (to me, that step is the critical one that could easily consume large amounts of time whereas step 3 should hopefully be more straightforward). Unfortunately, I don't have the time to do get my hands dirty on this project (even though it would be nice to have the bindings available), but if you manage to get a build out (and it runs on Tiger), I will play around with it and test it. So, good luck! :) Cheers, - Matthias - From hengist.podd at virgin.net Fri Nov 28 01:17:35 2008 From: hengist.podd at virgin.net (has) Date: Fri, 28 Nov 2008 00:17:35 +0000 Subject: [Pythonmac-SIG] [ann] Python appscript 0.19.0 (beta 1) released Message-ID: <32D12D4A-D085-4872-ADF4-AEE960ED4DE4@virgin.net> Hi all, Announcing the first beta release of appscript for Python 2.x, a user- friendly Apple event bridge that allows you to control AppleScriptable applications using ordinary Python scripts. Py-appscript 0.19.0 adds Python 2.6 compatibility and 64-bit support, and cleans up the codebase and documentation in preparation for the final 1.0 release. Further details, including a list of changes from the previous 0.18.1 distribution, can be found on the appscript website: http://appscript.sourceforge.net/py-appscript/index.html File releases can be downloaded from the Python Package Index: http://pypi.python.org/pypi/appscript A Python 3.x-compatible version is currently under development and a file release should be available shortly - see the appscript website for more information. Enjoy, has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net From skip at pobox.com Fri Nov 28 15:36:52 2008 From: skip at pobox.com (skip at pobox.com) Date: Fri, 28 Nov 2008 08:36:52 -0600 Subject: [Pythonmac-SIG] Can't convert simple Python script to bundle with py2app Message-ID: <18736.516.677002.936180@montanaro-dyndns-org.local> I have a trivial little script: #!/usr/bin/env python import os import sys os.execl("/Users/skip/local/bin/gnuclient", *sys.argv[1:]) which I want to convert to a .app bundle. I downloaded and installed py2app using easy_install, successfully ran py2applet to generate a setup.py file: """ This is a setup.py script generated by py2applet Usage: python setup.py py2app """ from setuptools import setup APP = ['rungnucl.py'] DATA_FILES = [] OPTIONS = {'argv_emulation': True} setup( app=APP, data_files=DATA_FILES, options={'py2app': OPTIONS}, setup_requires=['py2app'], ) then ran "python setup.py py2app" which gave me a traceback and dropped me into pdb: ... copying /Users/skip/local/lib/python2.7/lib-dynload/unicodedata.so -> /Users/skip/tmp/dist/rungnucl.app/Contents/Resources/lib/python2.7/lib-dynload copying /Users/skip/local/lib/python2.7/lib-dynload/zlib.so -> /Users/skip/tmp/dist/rungnucl.app/Contents/Resources/lib/python2.7/lib-dynload copying /Users/skip/local/bin/python -> /Users/skip/tmp/dist/rungnucl.app/Contents/MacOS Traceback (most recent call last): File "/Users/skip/local/lib/python2.7/site-packages/py2app-0.3.6-py2.7.egg/py2app/build_app.py", line 548, in _run self.run_normal() File "/Users/skip/local/lib/python2.7/site-packages/py2app-0.3.6-py2.7.egg/py2app/build_app.py", line 619, in run_normal self.create_binaries(py_files, pkgdirs, extensions, loader_files) File "/Users/skip/local/lib/python2.7/site-packages/py2app-0.3.6-py2.7.egg/py2app/build_app.py", line 723, in create_binaries mm.mm.run_file(runtime) File "build/bdist.macosx-10.3-i386/egg/macholib/MachOGraph.py", line 65, in run_file raise ValueError('%r does not exist' % (pathname,)) ValueError: '/Users/skip/local/lib/libpython2.7.dylib' does not exist > /Users/skip/tmp/build/bdist.macosx-10.3-i386/egg/macholib/MachOGraph.py(65)run_file() (Pdb) Python (from Subversion trunk in this case) was configured using --enable-shared, but there is no libpython2.7.dylib to be found anywhere inside of the --prefix directory. It does generate a libpython2.7.a file. I'm not doing a framework build. Do I need to? Thanks, -- Skip Montanaro - skip at pobox.com - http://smontanaro.dyndns.org/ From hraban at fiee.net Sat Nov 29 15:30:47 2008 From: hraban at fiee.net (Henning Hraban Ramm) Date: Sat, 29 Nov 2008 15:30:47 +0100 Subject: [Pythonmac-SIG] Creator, type and other means of file detection Message-ID: <6985726B-C53E-4B8F-950B-12B8486F0A77@fiee.net> I know the MacOS module is deprecated, and now I know at least one detail of "why": If I use MacOS.GetCreatorAndType(filename) on my Intel machine, I get for an EPS: ('09HF', 'FSPE') That should read ('FH09', 'EPSF'). I didn't knew endian-ness affects the order of strings. Very funny! ;-) I'm trying once again to write a tool to detect the type of a file - my colleagues don't know what to do if a file lacks an extension or has a wrong one. Unfortunately the "file" command and its Python counterparts don't know enough and the right types, e.g. for them a XPress or InDesign document is just "data". (There are two different approaches of "magic.py": Jason Petrone's, updated by Gabriel Wicke, uses its own, pythonized list of magic numbers; the other by Thomas Mangin reads the usual Unix/Linux magic files and thus acts like the "file" command. I guess the first is much faster, but the second is more versatile.) Anyway, the traditional MacOS type and creator would be a nice addition. The MacOS module is deprecated. I could ask the Finder via appscript, but I wonder if there's a more direct way - I'm surprised the mactypes module's Alias and File classes don't know type and creator. Any ideas on that? Greetlings from Lake Constance! Hraban --- http://www.fiee.net https://www.cacert.org (I'm an assurer) From janssen at parc.com Sat Nov 29 20:15:45 2008 From: janssen at parc.com (Bill Janssen) Date: Sat, 29 Nov 2008 11:15:45 PST Subject: [Pythonmac-SIG] Creator, type and other means of file detection In-Reply-To: <6985726B-C53E-4B8F-950B-12B8486F0A77@fiee.net> References: <6985726B-C53E-4B8F-950B-12B8486F0A77@fiee.net> Message-ID: <69541.1227986145@parc.com> I think the modern Mac equivalent goes something like this: def uti_for_file(path): import os from AppKit import NSWorkspace uti, err = NSWorkspace.sharedWorkspace().typeOfFile_error_( os.path.realpath(path), None) if err: raise Exception(unicode(err)) else: return uti Bill Henning Hraban Ramm wrote: > I know the MacOS module is deprecated, and now I know at least one > detail of "why": > > If I use MacOS.GetCreatorAndType(filename) on my Intel machine, I get > for an EPS: > ('09HF', 'FSPE') > > That should read ('FH09', 'EPSF'). > I didn't knew endian-ness affects the order of strings. > Very funny! ;-) > > > I'm trying once again to write a tool to detect the type of a file - > my colleagues don't know what to do if a file lacks an extension or > has a wrong one. > > Unfortunately the "file" command and its Python counterparts don't > know enough and the right types, e.g. for them a XPress or InDesign > document is just "data". > > (There are two different approaches of "magic.py": Jason Petrone's, > updated by Gabriel Wicke, uses its own, pythonized list of magic > numbers; the other by Thomas Mangin reads the usual Unix/Linux magic > files and thus acts like the "file" command. I guess the first is much > faster, but the second is more versatile.) > > > Anyway, the traditional MacOS type and creator would be a nice > addition. The MacOS module is deprecated. I could ask the Finder via > appscript, but I wonder if there's a more direct way - I'm surprised > the mactypes module's Alias and File classes don't know type and > creator. > > Any ideas on that? > > > Greetlings from Lake Constance! > Hraban > --- > http://www.fiee.net > https://www.cacert.org (I'm an assurer) > > > > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig From hraban at fiee.net Sat Nov 29 21:45:24 2008 From: hraban at fiee.net (Henning Hraban Ramm) Date: Sat, 29 Nov 2008 21:45:24 +0100 Subject: [Pythonmac-SIG] Creator, type and other means of file detection In-Reply-To: <69541.1227986145@parc.com> References: <6985726B-C53E-4B8F-950B-12B8486F0A77@fiee.net> <69541.1227986145@parc.com> Message-ID: <659C373E-FA66-411A-8B67-2F9E71A98DA4@fiee.net> Am 2008-11-29 um 20:15 schrieb Bill Janssen: > I think the modern Mac equivalent goes something like this: > > def uti_for_file(path): > > import os > from AppKit import NSWorkspace > > uti, err = NSWorkspace.sharedWorkspace().typeOfFile_error_( > os.path.realpath(path), None) > if err: > raise Exception(unicode(err)) > else: > return uti Thank you, I even found out what a UTI is supposed to be. http://developer.apple.com/documentation/Carbon/Conceptual/understanding_utis/understand_utis_conc/chapter_2_section_2.html But e.g. an InDesign document gives me a dynamical UTI like "dyn.ah62d4rv4ge80w5xequ" instead of something reckognizable like "IDd4" or "application/x-indesign". OpenOffice documents give nice UTIs like "org.oasis- open.opendocument.spreadsheet", but some widespread formats like RTF and PDF just give nothing at all! Very strange. Could you please tell my how I apply the "OSType" method to an UTI? Something like LaunchServices.UTType.UTGetOSTypeFromString(UTI) ? Greetlings from Lake Constance! Hraban --- http://www.fiee.net https://www.cacert.org (I'm an assurer) From skip at pobox.com Sun Nov 30 17:38:30 2008 From: skip at pobox.com (skip at pobox.com) Date: Sun, 30 Nov 2008 10:38:30 -0600 Subject: [Pythonmac-SIG] Can't convert simple Python script to bundle with py2app In-Reply-To: <4932435D.8030007@noaa.gov> References: <18736.516.677002.936180@montanaro-dyndns-org.local> <4932435D.8030007@noaa.gov> Message-ID: <18738.49542.390296.253608@montanaro-dyndns-org.local> >> Python (from Subversion trunk in this case) was configured using >> --enable-shared, but there is no libpython2.7.dylib to be found >> anywhere inside of the --prefix directory. It does generate a >> libpython2.7.a file. I'm not doing a framework build. Do I need to? Chris> very likely, yes. Py2app was designed around the Framework Chris> build. In any case, it looks like you've got a static lib for the Chris> main python lib, and py2app with require a dynamic one. Hmmm... I just built a framework version. I configured like so: ../configure --enable-framework='/Users/skip/Applications' \ --enable-shared --prefix='/Users/skip/local' \ CPPFLAGS='-I/Users/skip/local/include -I/opt/local/include' \ LDFLAGS='-L/Users/skip/local/lib -L/opt/local/lib' No .dylib file was created. I ran make altinstall then checked in both /Users/skip/Applications/Python.framework and in ~/local. Still no Python .dylib files. Then I scoured the Makefile looking for promising targets to try. I tried making both sharedmods and sharedinstall. Nothing. Thinking the --enable-framework and --prefix flags might mess up configure in some way I reconfigured without specifying --prefix. make clean. make sharedinstall. Still no dylib files. Any other ideas I might try? I finally just submitted a bug report: http://bugs.python.org/issue4472 Thanks, Skip From janssen at parc.com Sun Nov 30 21:17:47 2008 From: janssen at parc.com (Bill Janssen) Date: Sun, 30 Nov 2008 12:17:47 PST Subject: [Pythonmac-SIG] Creator, type and other means of file detection In-Reply-To: <659C373E-FA66-411A-8B67-2F9E71A98DA4@fiee.net> References: <6985726B-C53E-4B8F-950B-12B8486F0A77@fiee.net> <69541.1227986145@parc.com> <659C373E-FA66-411A-8B67-2F9E71A98DA4@fiee.net> Message-ID: <80940.1228076267@parc.com> Henning Hraban Ramm wrote: > Could you please tell my how I apply the "OSType" method to an UTI? > Something like LaunchServices.UTType.UTGetOSTypeFromString(UTI) ? Well, this is the blind leading the blind, but yes, that looks close to right to me. You can say, from LaunchServices import UTGetOSTypeFromString ostype = UTGetOSTypeFromString(uti) Greetings from the Golden Gate! Bill