From livingstonemark at gmail.com Thu Aug 2 07:39:43 2012 From: livingstonemark at gmail.com (Mark Livingstone) Date: Thu, 2 Aug 2012 15:39:43 +1000 Subject: [Pythonmac-SIG] Py2app error In-Reply-To: References: <1B26E03E-9503-49F6-9D12-EDE83E001E6B@mac.com> Message-ID: Hi Guys, OK, taking Chris' advice, I installed on a Snow Leopard machine: cheyenne:dist marklivingstone$ ls ~/Downloads/ About Downloads.lpdf numpy-1.6.2-py2.7-python.org-macosx10.3.dmg wxMac-2.8.12.tar matplotlib-1.1.0-py2.7-python.org-macosx10.3.dmg python-2.7.3-macosx10.6.dmg wxPython2.8-osx-docs-demos-2.8.12.1-universal-py2.7.dmg mercurial-2.2.3_20120707-py2.7-macosx10.7 scipy-0.11.0rc1-py2.7-python.org-macosx10.6.dmg wxPython2.8-osx-unicode-2.8.12.1-universal-py2.7.dmg Then I went to Ronald's Bitbucket and built a current py2app setup. I tried a build but got this: python ../mac-setup/setup_py2app.py py2app Traceback (most recent call last): File "../mac-setup/setup_py2app.py", line 1, in import wx File "/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/__init__.py", line 45, in from wx._core import * File "/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core.py", line 4, in import _core_ ImportError: dlopen(/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core_.so, 2): no suitable image found. Did find: /usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core_.so: no matching architecture in universal wrapper cheyenne:src marklivingstone$ I then did "python-32 ../mac-setup/setup_py2app.py py2app" , and built using py2app my Salstat.app which built fine and created a dist/Salstat.app However, when I try to run the app, I get the following in the console log: 2/08/12 12:06:23.340 PM [0x0-0x421421].com.SalStat.SalStat: /Users/marklivingstone/Documents/workspace/salstat-statistics-package-2/src/dist/SalStat.app/Contents/Resources/salstat.py:585: SyntaxWarning: import * only allowed at module level 2/08/12 12:06:23.372 PM [0x0-0x421421].com.SalStat.SalStat: argvemulator warning: fetching events failed 2/08/12 12:06:23.372 PM [0x0-0x421421].com.SalStat.SalStat: Traceback (most recent call last): 2/08/12 12:06:23.372 PM [0x0-0x421421].com.SalStat.SalStat: File "/Users/marklivingstone/Documents/workspace/salstat-statistics-package-2/src/dist/SalStat.app/Contents/Resources/__boot__.py", line 319, in 2/08/12 12:06:23.373 PM [0x0-0x421421].com.SalStat.SalStat: _run('salstat.py') 2/08/12 12:06:23.373 PM [0x0-0x421421].com.SalStat.SalStat: File "/Users/marklivingstone/Documents/workspace/salstat-statistics-package-2/src/dist/SalStat.app/Contents/Resources/__boot__.py", line 311, in _run 2/08/12 12:06:23.374 PM [0x0-0x421421].com.SalStat.SalStat: exec(compile(source, path, 'exec'), globals(), globals()) 2/08/12 12:06:23.374 PM [0x0-0x421421].com.SalStat.SalStat: File "/Users/marklivingstone/Documents/workspace/salstat-statistics-package-2/src/dist/SalStat.app/Contents/Resources/salstat.py", line 9, in 2/08/12 12:06:23.374 PM [0x0-0x421421].com.SalStat.SalStat: import wx 2/08/12 12:06:23.374 PM [0x0-0x421421].com.SalStat.SalStat: File "wx/__init__.pyc", line 45, in 2/08/12 12:06:23.374 PM [0x0-0x421421].com.SalStat.SalStat: File "wx/_core.pyc", line 4, in 2/08/12 12:06:23.375 PM [0x0-0x421421].com.SalStat.SalStat: File "wx/_core_.pyc", line 18, in 2/08/12 12:06:23.375 PM [0x0-0x421421].com.SalStat.SalStat: File "wx/_core_.pyc", line 11, in __load 2/08/12 12:06:23.375 PM [0x0-0x421421].com.SalStat.SalStat: ImportError: dlopen(/Users/marklivingstone/Documents/workspace/salstat-statistics-package-2/src/dist/SalStat.app/Contents/Resources/lib/python2.7/lib-dynload/wx/_core_.so, 2): no suitable image found. Did find: 2/08/12 12:06:23.375 PM [0x0-0x421421].com.SalStat.SalStat: /Users/marklivingstone/Documents/workspace/salstat-statistics-package-2/src/dist/SalStat.app/Contents/Resources/lib/python2.7/lib-dynload/wx/_core_.so: no matching architecture in universal wrapper 2/08/12 12:06:23.479 PM SalStat: SalStat Error 2/08/12 12:06:25.919 PM com.apple.launchd.peruser.501: ([0x0-0x421421].com.SalStat.SalStat[76293]) Exited with code: 255 Is it just not possible to use py2app to create an app for the Mac based on wx? Also, the final result turns in at 184MB in size. Are there any common things that may be being pulled in that I should exclude? Thanks in advance, MarkL From michael.mccracken at gmail.com Thu Aug 2 16:59:39 2012 From: michael.mccracken at gmail.com (Michael McCracken) Date: Thu, 2 Aug 2012 07:59:39 -0700 Subject: [Pythonmac-SIG] py2app: works for me on 10.6, not 10.7 In-Reply-To: <79C9B24D-2C9A-472A-8EF9-4C5FDE5F7C44@mac.com> References: <79C9B24D-2C9A-472A-8EF9-4C5FDE5F7C44@mac.com> Message-ID: On Thu, Aug 2, 2012 at 7:40 AM, Ronald Oussoren wrote: > > On 31 Jul, 2012, at 16:47, Michael McCracken wrote: > >> Hi, my py2app setup script is working fine if I run it on 10.6, but on >> 10.7 I've run into some problems. >> >> I want a standalone app, and on 10.6 I didn't specify semi_standalone: >> False in the options, and it worked fine. >> On 10.7, it appeared to be using the system python (loading old system >> versions of some dependencies), and on a quick look through the py2app >> code it seemed to be deciding it was semi-standalone, so I added >> semi_standalone: False. > > That won't work, py2app won't copy parts files from /System into the application bundle. Yes, that explains the "runtime could not be located" error. For the archives - this was solved by actually making sure, for real, that I wasn't running py2app with the system python. I had mistakenly built a zope-buildout python wrapper that called the system python when I wasn't expecting it to. Thanks, -mike > Ronald > >> This solved results in a app wrapper without the Python.framework >> copied in, giving me the "Python runtime could not be located" error. >> >> Is there something obvious I'm missing in moving builds to 10.7? >> >> Thanks, >> -mike >> _______________________________________________ >> Pythonmac-SIG maillist - Pythonmac-SIG at python.org >> http://mail.python.org/mailman/listinfo/pythonmac-sig >> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG > From ronaldoussoren at mac.com Thu Aug 2 16:40:21 2012 From: ronaldoussoren at mac.com (Ronald Oussoren) Date: Thu, 02 Aug 2012 16:40:21 +0200 Subject: [Pythonmac-SIG] py2app: works for me on 10.6, not 10.7 In-Reply-To: References: Message-ID: <79C9B24D-2C9A-472A-8EF9-4C5FDE5F7C44@mac.com> On 31 Jul, 2012, at 16:47, Michael McCracken wrote: > Hi, my py2app setup script is working fine if I run it on 10.6, but on > 10.7 I've run into some problems. > > I want a standalone app, and on 10.6 I didn't specify semi_standalone: > False in the options, and it worked fine. > On 10.7, it appeared to be using the system python (loading old system > versions of some dependencies), and on a quick look through the py2app > code it seemed to be deciding it was semi-standalone, so I added > semi_standalone: False. That won't work, py2app won't copy parts files from /System into the application bundle. Ronald > This solved results in a app wrapper without the Python.framework > copied in, giving me the "Python runtime could not be located" error. > > Is there something obvious I'm missing in moving builds to 10.7? > > Thanks, > -mike > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4788 bytes Desc: not available URL: From ronaldoussoren at mac.com Thu Aug 2 16:47:15 2012 From: ronaldoussoren at mac.com (Ronald Oussoren) Date: Thu, 02 Aug 2012 16:47:15 +0200 Subject: [Pythonmac-SIG] Py2app error In-Reply-To: References: <1B26E03E-9503-49F6-9D12-EDE83E001E6B@mac.com> Message-ID: On 2 Aug, 2012, at 7:39, Mark Livingstone wrote: > Hi Guys, > > OK, taking Chris' advice, I installed on a Snow Leopard machine: > > cheyenne:dist marklivingstone$ ls ~/Downloads/ > About Downloads.lpdf > numpy-1.6.2-py2.7-python.org-macosx10.3.dmg > wxMac-2.8.12.tar > matplotlib-1.1.0-py2.7-python.org-macosx10.3.dmg > python-2.7.3-macosx10.6.dmg > wxPython2.8-osx-docs-demos-2.8.12.1-universal-py2.7.dmg > mercurial-2.2.3_20120707-py2.7-macosx10.7 > scipy-0.11.0rc1-py2.7-python.org-macosx10.6.dmg > wxPython2.8-osx-unicode-2.8.12.1-universal-py2.7.dmg > > Then I went to Ronald's Bitbucket and built a current py2app setup. The stub executables in the repository need to be updated, although the old ones should work fine (some of them are currently out of sync w.r.t. the source code). > > I tried a build but got this: > > python ../mac-setup/setup_py2app.py py2app > Traceback (most recent call last): > File "../mac-setup/setup_py2app.py", line 1, in > import wx > File "/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/__init__.py", > line 45, in > from wx._core import * > File "/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core.py", > line 4, in > import _core_ > ImportError: dlopen(/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core_.so, > 2): no suitable image found. Did find: > /usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core_.so: > no matching architecture in universal wrapper > cheyenne:src marklivingstone$ This looks like an installation of wx that's not in sync with Python. In particular, the python interpreter supports a different CPU architecture than wxPython. The quickest solution based on the list of packages you installed is to download the 32-bit installer for Python (not the intel-only installer for OSX 10.6 or later). Ronald -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4788 bytes Desc: not available URL: From chris.barker at noaa.gov Thu Aug 2 17:58:47 2012 From: chris.barker at noaa.gov (Chris Barker) Date: Thu, 2 Aug 2012 08:58:47 -0700 Subject: [Pythonmac-SIG] Py2app error In-Reply-To: References: <1B26E03E-9503-49F6-9D12-EDE83E001E6B@mac.com> Message-ID: On Wed, Aug 1, 2012 at 10:39 PM, Mark Livingstone wrote: > OK, taking Chris' advice, I installed on a Snow Leopard machine: now that you've named, me, I feel compelled to contiue to help.. ;-) > cheyenne:dist marklivingstone$ ls ~/Downloads/ > About Downloads.lpdf > numpy-1.6.2-py2.7-python.org-macosx10.3.dmg > wxMac-2.8.12.tar > matplotlib-1.1.0-py2.7-python.org-macosx10.3.dmg > python-2.7.3-macosx10.6.dmg Careful here: Thanks to Apple's fast-moving development ( 4! architectures potentially in the wild -- PPC32+64bit, Intel 32+64 bit) it's hard to have something for eveyting... note that you have "numpy-1.6.2-py2.7-python.org-macosx10.3.dmg" but "python-2.7.3-macosx10.6.dmg" we put the really long name in the numpy installer to try to make this clear, but it really gets complicated fast... Anyway, on the pyton,org site, there are: Python 3.2.3 Mac OS X 64-bit/32-bit x86-64/i386 Installer (for Mac OS X 10.6 and 10.7) and Python 3.2.3 Mac OS X 32-bit i386/PPC Installer (for Mac OS X 10.3 through 10.6) These are what they seem to be -- though I think you got tripped up by "for Mac OS X 10.3 through 10.6" -- actually, that should be "10.3 + " -- 10.7 didn't exist when that was built. The numpy and wx packages you have are built for the "10.3" installer. The release version of wx doesn't support 64 bit Intel (though it does support 32 bit intel). > wxPython2.8-osx-docs-demos-2.8.12.1-universal-py2.7.dmg > mercurial-2.2.3_20120707-py2.7-macosx10.7 this looks like it may be for the newer installer. > scipy-0.11.0rc1-py2.7-python.org-macosx10.6.dmg this also -- so your scipy and numpy are out of sync, too! > wxPython2.8-osx-unicode-2.8.12.1-universal-py2.7.dmg this is for the "10.3" 32 bit binary. What a mess! You have two options: 1) Use the "10.6" python binary (intel 32+64 bit), then get all the packages compatible with that. IN this case, the trick will be wx. You can: a) Make sure you run the binary in 32 bit mode (Not 64), and it should work, but it's a bit messy to make sure that all works right. b) Use a new development build of wx (wx2.9.*) -- there is a 64 bit Cocoa build available - but it does a few changes, so will take a bit of work to port to. 2) (probably the easiest) -- use the 32bit 10.3+ build of Python -- then make sure all your other packages are built for that -- hopefully you can find a Mercurial package for it -- the rest are there. (it may not be hard to build mercurial, either, does it have any dependencies?) Sorry for the mess -- blame Apple! > I tried a build but got this: > > python ../mac-setup/setup_py2app.py py2app > Traceback (most recent call last): > File "../mac-setup/setup_py2app.py", line 1, in > import wx > File "/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/__init__.py", > line 45, in > from wx._core import * > File "/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core.py", > line 4, in > import _core_ > ImportError: dlopen(/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core_.so, > 2): no suitable image found. Did find: > /usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core_.so: > no matching architecture in universal wrapper Well -- no ;point in going beyond this -- wx isn't working. What you've got is a a 32 bit PPC+Intel wx, but you're running a 32+64 bit Python -- and it defaults to 64 bit on a 64 bit machine -- so it's looking for a 64bit Intel binary of wx -- which is not there. > However, when I try to run the app, I get the following in the console log: > ImportError: dlopen(/Users/marklivingstone/Documents/workspace/salstat-statistics-package-2/src/dist/SalStat.app/Contents/Resources/lib/python2.7/lib-dynload/wx/_core_.so, > 2): no suitable image found. Did find: same error -- no surprise there -- if it doesn' work outside of py2app, it won't work with it. > Is it just not possible to use py2app to create an app for the Mac based on wx? indeed it is -- I'm doing it with most of the same stuff you are (except Mercurial) (using the 32 bit build) NOTE: I'm considering building a custom 32bit Intel (10.4+, maybe) only distribution for the Mac -- it would run on any recent system, and be smaller to bundle, etc. Or maybe 64 bit -- how common are 32 bit only Intel Mac these days -- anyone know? > Also, the final result turns in at 184MB in size. Are there any common > things that may be being pulled in that I should exclude? Well, that's a trick. It's going to be big -- you've got multiple binaries in there for different architectures -- so all the binary stuff is doubled. Then you've got packages that bring the world in with them: wx is big -- not much to be done about that though you may be able to pull out an so or two.) numpy default imports a bunch of stuff like ffts, lapack, etc that you may or may not be using, but it needs to be there on import. scipy brings in all sort of stuff you probably aren't using -- if you're only using a couple things from scipy, it may be worth extracting just those by hand before py2app-ing -- but native scipy is a bit entangled with imports. matplotlib needs data files, so py2app by defualt brings the whole package in -- again, you may well not need all that. Unfortunately, package maintainers dont generally see making their packages compatible with py2app, y2exe, etc as a priority -- so it's easiest to just accept the monster app -- disk space is cheap (even if bandwidth is not as cheap). -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 nad at acm.org Fri Aug 3 05:32:23 2012 From: nad at acm.org (Ned Deily) Date: Thu, 02 Aug 2012 20:32:23 -0700 Subject: [Pythonmac-SIG] Py2app error References: <1B26E03E-9503-49F6-9D12-EDE83E001E6B@mac.com> Message-ID: In article , Chris Barker wrote: [...] > Anyway, on the pyton,org site, there are: > > Python 3.2.3 Mac OS X 64-bit/32-bit x86-64/i386 Installer (for Mac OS > X 10.6 and 10.7) > > and > > Python 3.2.3 Mac OS X 32-bit i386/PPC Installer (for Mac OS X 10.3 through > 10.6) > > These are what they seem to be -- though I think you got tripped up by > "for Mac OS X 10.3 through 10.6" -- actually, that should be "10.3 + > " -- 10.7 didn't exist when that was built. Actually, "10.3 through 10.6" is intentional. If you need to build extension modules, the current 3.2.3 and 2.7.3 32-bit python.org Pythons do not work well with Xcode 4, the default for OS X 10.7 and 10.8 and optional for 10.6. The upcoming Python 3.3 release has much better support for Xcode 4 so that it is practical to use the 32-bit-only Python to build extension modules on newer releases. Some of that support will be backported for upcoming 2.7.x and 3.2.x releases. BTW, for Python 3.3, the 32-bit-only installer Python supports 10.5+ systems (i386 and ppc). More details on all of this forthcoming. -- Ned Deily, nad at acm.org From chris.barker at noaa.gov Fri Aug 3 20:35:28 2012 From: chris.barker at noaa.gov (Chris Barker) Date: Fri, 3 Aug 2012 11:35:28 -0700 Subject: [Pythonmac-SIG] Py2app error In-Reply-To: References: <1B26E03E-9503-49F6-9D12-EDE83E001E6B@mac.com> Message-ID: On Thu, Aug 2, 2012 at 8:32 PM, Ned Deily wrote: >> These are what they seem to be -- though I think you got tripped up by >> "for Mac OS X 10.3 through 10.6" -- actually, that should be "10.3 + >> " -- 10.7 didn't exist when that was built. > > Actually, "10.3 through 10.6" is intentional. If you need to build > extension modules, the current 3.2.3 and 2.7.3 32-bit python.org Pythons > do not work well with Xcode 4, the default for OS X 10.7 and 10.8 and > optional for 10.6. Indeed -- I had to go find and install XCode3.* -- Apple really wants you to keep moving forward! But once I got XCode 3 going -- it works fine. Good to know that the INtel 32/64 bit python works with newer Xcodes though. But if you're not building anything it will run fine on newer OS-X systems, and if you want to be able to deploy on older systems, I think you need to use it, yes? > The upcoming Python 3.3 release has much better > support for Xcode 4 Maybe I'll get there some day -- but it'll be 2.7 for a while yet. > BTW, for Python 3.3, the 32-bit-only installer Python supports 10.5+ > systems (i386 and ppc). More details on all of this forthcoming. cool -- thanks for keeping this all up! -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 wrw at mac.com Wed Aug 8 23:15:22 2012 From: wrw at mac.com (William R. Wing (Bill Wing)) Date: Wed, 08 Aug 2012 17:15:22 -0400 Subject: [Pythonmac-SIG] Problem launching a py2app bundle from launchd on Mountain Lion Message-ID: With apologies for cross-posting (I also asked about this on stackoverflow), but I'm getting REALLY frustrated. I have a python script called "Irrigate" that I've converted to a stand-alone application using py2app. It runs just fine when double-clicked in the Finder, or opened in a terminal session. However, when I try to have it launched by launched, it fails with the following message logged in the system log: Aug 8 07:15:02 StraylightPro.local Irrigate[79689]: Irrigate Error Aug 8 07:15:02 StraylightPro.local coreservicesd[77]: Application App:"Irrigate" [ 0x0/0x697596f] @ 0x0x7fe77240cec0 tried to be brought forward, but isn't in fPermittedFrontASNs ( ( ASN:0x0-0x1cb2cb1:) ), so denying. I discovered by trial and error that the .plist I submit to launchd apparently now has to contain a "SessionType" key, and the only key I can get launchd to accept is "Aqua" - which sort of seems consistent with the error message reference "tried to be brought forward". If I use SessionType keys of either "StandardIO" or "Background", launchd won't accept the plist. Googling for fPermittedFrontASNs (or pieces of this string), and searching Apple's developer docs hasn't produced anything. I assume this is all tied to Apple's new security features in Mountain Lion and further that, if I just knew what extended attributes to add to the app.bundle or a key to add to the info.plist inside it, I'd be good to go. Does anyone here know the answer? Thanks, Bill From livingstonemark at gmail.com Sun Aug 12 05:31:50 2012 From: livingstonemark at gmail.com (Mark Livingstone) Date: Sun, 12 Aug 2012 13:31:50 +1000 Subject: [Pythonmac-SIG] wxCocoa no top menu Message-ID: Hi Guys, I finally dragged myself kicking and screaming into the current millennium, and loaded Macports py27-wxpython-devel 2.9.4. on my Mountain Lion machine. If I do a frame.Show() I get my program in a frame in the middle of the screen, and the usual top of screen menu. If I click the green LED, it resizes to take up most of the screen as expected. However, if I do frame.ShowFullScreen(True,False) I get the frame full screen, and I get the toolbar, but not the title bar with the 3 LEDs or the top menu. Has anyone else come across this behaviour? Is this a bug, my misunderstanding, or the way it works? I guess I could set the frame size to wx.DisplaySize() before showing it, but that seems messy unless it is the wxCocoa way of doing things? Thanks in advance, MarkL From livingstonemark at gmail.com Sun Aug 12 08:27:57 2012 From: livingstonemark at gmail.com (Mark Livingstone) Date: Sun, 12 Aug 2012 16:27:57 +1000 Subject: [Pythonmac-SIG] No module named altgraph-0 Message-ID: Hi Guys, I'm making progress - I think ;-) I went to Ronald's Bitbucket and installed all the relevant bits and pieces. Finally I made py2app as below, and it seemed that this was successful. However when I tried to make my app as shown further down, I get an error saying I don't have a module named altgraph-0. This is on my Mountain Lion machine. ------------------------------------------------- renaissance-eth1:py2app mlivingstone$ sudo python setup.py install running install running bdist_egg running egg_info writing requirements to py2app.egg-info/requires.txt writing py2app.egg-info/PKG-INFO writing top-level names to py2app.egg-info/top_level.txt writing dependency_links to py2app.egg-info/dependency_links.txt writing entry points to py2app.egg-info/entry_points.txt reading manifest file 'py2app.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no directories found matching 'doc/_static' warning: no directories found matching 'doc/_templates' warning: no previously-included files matching '.DS_Store' found anywhere in distribution warning: no previously-included files matching '*.pyc' found anywhere in distribution warning: no previously-included files matching '*.so' found anywhere in distribution no previously-included directories found matching 'py2app/apptemplate/prebuilt/main*.dSYM' no previously-included directories found matching 'py2app/bundletemplate/prebuilt/main*.dSYM' writing manifest file 'py2app.egg-info/SOURCES.txt' installing library code to build/bdist.macosx-10.8-x86_64/egg running install_lib running build_py creating build/bdist.macosx-10.8-x86_64/egg creating build/bdist.macosx-10.8-x86_64/egg/py2app copying build/lib/py2app/__init__.py -> build/bdist.macosx-10.8-x86_64/egg/py2app creating build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate copying build/lib/py2app/apptemplate/__init__.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate creating build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/lib copying build/lib/py2app/apptemplate/lib/__error__.sh -> build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/lib copying build/lib/py2app/apptemplate/lib/site.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/lib copying build/lib/py2app/apptemplate/plist_template.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate creating build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/prebuilt copying build/lib/py2app/apptemplate/prebuilt/main-fat -> build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/prebuilt copying build/lib/py2app/apptemplate/prebuilt/main-fat3 -> build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/prebuilt copying build/lib/py2app/apptemplate/prebuilt/main-i386 -> build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/prebuilt copying build/lib/py2app/apptemplate/prebuilt/main-intel -> build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/prebuilt copying build/lib/py2app/apptemplate/prebuilt/main-ppc -> build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/prebuilt copying build/lib/py2app/apptemplate/prebuilt/main-ppc64 -> build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/prebuilt copying build/lib/py2app/apptemplate/prebuilt/main-universal -> build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/prebuilt copying build/lib/py2app/apptemplate/prebuilt/main-x86_64 -> build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/prebuilt copying build/lib/py2app/apptemplate/setup.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate creating build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/src copying build/lib/py2app/apptemplate/src/main.c -> build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/src creating build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying build/lib/py2app/bootstrap/__init__.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying build/lib/py2app/bootstrap/argv_emulation.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying build/lib/py2app/bootstrap/argv_inject.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying build/lib/py2app/bootstrap/boot_aliasapp.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying build/lib/py2app/bootstrap/boot_aliasplugin.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying build/lib/py2app/bootstrap/boot_app.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying build/lib/py2app/bootstrap/boot_plugin.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying build/lib/py2app/bootstrap/chdir_resource.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying build/lib/py2app/bootstrap/disable_linecache.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying build/lib/py2app/bootstrap/emulate_shell_environment.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying build/lib/py2app/bootstrap/import_encodings.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying build/lib/py2app/bootstrap/path_inject.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying build/lib/py2app/bootstrap/reset_sys_path.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying build/lib/py2app/bootstrap/setup_pkgresource.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying build/lib/py2app/bootstrap/site_packages.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying build/lib/py2app/bootstrap/system_path_extras.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap copying build/lib/py2app/build_app.py -> build/bdist.macosx-10.8-x86_64/egg/py2app creating build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate copying build/lib/py2app/bundletemplate/__init__.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate creating build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/lib copying build/lib/py2app/bundletemplate/lib/__error__.sh -> build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/lib copying build/lib/py2app/bundletemplate/lib/site.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/lib copying build/lib/py2app/bundletemplate/plist_template.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate creating build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/prebuilt copying build/lib/py2app/bundletemplate/prebuilt/main-fat -> build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/prebuilt copying build/lib/py2app/bundletemplate/prebuilt/main-fat3 -> build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/prebuilt copying build/lib/py2app/bundletemplate/prebuilt/main-i386 -> build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/prebuilt copying build/lib/py2app/bundletemplate/prebuilt/main-intel -> build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/prebuilt copying build/lib/py2app/bundletemplate/prebuilt/main-ppc -> build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/prebuilt copying build/lib/py2app/bundletemplate/prebuilt/main-ppc64 -> build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/prebuilt copying build/lib/py2app/bundletemplate/prebuilt/main-universal -> build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/prebuilt copying build/lib/py2app/bundletemplate/prebuilt/main-x86_64 -> build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/prebuilt copying build/lib/py2app/bundletemplate/setup.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate creating build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/src copying build/lib/py2app/bundletemplate/src/main.m -> build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/src creating build/bdist.macosx-10.8-x86_64/egg/py2app/converters copying build/lib/py2app/converters/__init__.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/converters copying build/lib/py2app/converters/coredata.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/converters copying build/lib/py2app/converters/nibfile.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/converters copying build/lib/py2app/create_appbundle.py -> build/bdist.macosx-10.8-x86_64/egg/py2app copying build/lib/py2app/create_pluginbundle.py -> build/bdist.macosx-10.8-x86_64/egg/py2app copying build/lib/py2app/decorators.py -> build/bdist.macosx-10.8-x86_64/egg/py2app copying build/lib/py2app/filters.py -> build/bdist.macosx-10.8-x86_64/egg/py2app creating build/bdist.macosx-10.8-x86_64/egg/py2app/recipes copying build/lib/py2app/recipes/__init__.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/recipes copying build/lib/py2app/recipes/cjkcodecs.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/recipes copying build/lib/py2app/recipes/docutils.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/recipes copying build/lib/py2app/recipes/email.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/recipes copying build/lib/py2app/recipes/matplotlib.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/recipes copying build/lib/py2app/recipes/matplotlib_prescript.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/recipes copying build/lib/py2app/recipes/numpy.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/recipes creating build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/PIL copying build/lib/py2app/recipes/PIL/__init__.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/PIL copying build/lib/py2app/recipes/PIL/prescript.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/PIL copying build/lib/py2app/recipes/pydoc.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/recipes copying build/lib/py2app/recipes/pygame.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/recipes copying build/lib/py2app/recipes/pyopengl.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/recipes copying build/lib/py2app/recipes/pyside.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/recipes copying build/lib/py2app/recipes/pyzmq.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/recipes copying build/lib/py2app/recipes/scipy.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/recipes copying build/lib/py2app/recipes/sip.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/recipes copying build/lib/py2app/recipes/virtualenv.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/recipes copying build/lib/py2app/recipes/wx.py -> build/bdist.macosx-10.8-x86_64/egg/py2app/recipes copying build/lib/py2app/script_py2applet.py -> build/bdist.macosx-10.8-x86_64/egg/py2app copying build/lib/py2app/util.py -> build/bdist.macosx-10.8-x86_64/egg/py2app byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/__init__.py to __init__.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/__init__.py to __init__.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/lib/site.py to site.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/plist_template.py to plist_template.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/setup.py to setup.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/__init__.py to __init__.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/argv_emulation.py to argv_emulation.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/argv_inject.py to argv_inject.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/boot_aliasapp.py to boot_aliasapp.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/boot_aliasplugin.py to boot_aliasplugin.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/boot_app.py to boot_app.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/boot_plugin.py to boot_plugin.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/chdir_resource.py to chdir_resource.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/disable_linecache.py to disable_linecache.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/emulate_shell_environment.py to emulate_shell_environment.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/import_encodings.py to import_encodings.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/path_inject.py to path_inject.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/reset_sys_path.py to reset_sys_path.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/setup_pkgresource.py to setup_pkgresource.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/site_packages.py to site_packages.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/system_path_extras.py to system_path_extras.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/build_app.py to build_app.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/__init__.py to __init__.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/lib/site.py to site.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/plist_template.py to plist_template.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/setup.py to setup.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/converters/__init__.py to __init__.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/converters/coredata.py to coredata.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/converters/nibfile.py to nibfile.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/create_appbundle.py to create_appbundle.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/create_pluginbundle.py to create_pluginbundle.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/decorators.py to decorators.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/filters.py to filters.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/__init__.py to __init__.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/cjkcodecs.py to cjkcodecs.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/docutils.py to docutils.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/email.py to email.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/matplotlib.py to matplotlib.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/matplotlib_prescript.py to matplotlib_prescript.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/numpy.py to numpy.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/PIL/__init__.py to __init__.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/PIL/prescript.py to prescript.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/pydoc.py to pydoc.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/pygame.py to pygame.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/pyopengl.py to pyopengl.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/pyside.py to pyside.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/pyzmq.py to pyzmq.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/scipy.py to scipy.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/sip.py to sip.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/virtualenv.py to virtualenv.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/wx.py to wx.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/script_py2applet.py to script_py2applet.pyc byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/util.py to util.pyc creating build/bdist.macosx-10.8-x86_64/egg/EGG-INFO copying py2app.egg-info/PKG-INFO -> build/bdist.macosx-10.8-x86_64/egg/EGG-INFO copying py2app.egg-info/SOURCES.txt -> build/bdist.macosx-10.8-x86_64/egg/EGG-INFO copying py2app.egg-info/dependency_links.txt -> build/bdist.macosx-10.8-x86_64/egg/EGG-INFO copying py2app.egg-info/entry_points.txt -> build/bdist.macosx-10.8-x86_64/egg/EGG-INFO copying py2app.egg-info/not-zip-safe -> build/bdist.macosx-10.8-x86_64/egg/EGG-INFO copying py2app.egg-info/requires.txt -> build/bdist.macosx-10.8-x86_64/egg/EGG-INFO copying py2app.egg-info/top_level.txt -> build/bdist.macosx-10.8-x86_64/egg/EGG-INFO creating 'dist/py2app-0.7-py2.7.egg' and adding 'build/bdist.macosx-10.8-x86_64/egg' to it removing 'build/bdist.macosx-10.8-x86_64/egg' (and everything under it) Processing py2app-0.7-py2.7.egg removing '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg' (and everything under it) creating /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg Extracting py2app-0.7-py2.7.egg to /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages py2app 0.7 is already the active version in easy-install.pth Installing py2applet script to /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin Installed /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg Processing dependencies for py2app==0.7 Searching for macholib==1.5 Best match: macholib 1.5 Processing macholib-1.5-py2.7.egg macholib 1.5 is already the active version in easy-install.pth Installing macho_standalone script to /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin Installing macho_dump script to /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin Installing macho_find script to /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin Using /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/macholib-1.5-py2.7.egg Searching for modulegraph==0.10 Best match: modulegraph 0.10 Processing modulegraph-0.10-py2.7.egg modulegraph 0.10 is already the active version in easy-install.pth Installing modulegraph script to /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin Using /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/modulegraph-0.10-py2.7.egg Searching for altgraph==0.10 Best match: altgraph 0.10 Processing altgraph-0.10-py2.7.egg altgraph 0.10 is already the active version in easy-install.pth Using /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/altgraph-0.10-py2.7.egg Finished processing dependencies for py2app==0.7 renaissance-eth1:py2app mlivingstone$ cd ../salstat-statistics-package-2/src -------------------------------------------------------------------------------------------- renaissance-eth1:src mlivingstone$ sudo python ../mac-setup/setup_py2app.py py2app running py2app creating /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/build/bdist.macosx-10.8-x86_64/python2.7-standalone/app creating /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/build/bdist.macosx-10.8-x86_64/python2.7-standalone/app/collect creating /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/build/bdist.macosx-10.8-x86_64/python2.7-standalone/app/temp creating /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/dist creating build/bdist.macosx-10.8-x86_64/python2.7-standalone/app/lib-dynload creating build/bdist.macosx-10.8-x86_64/python2.7-standalone/app/Frameworks /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/salstat.py:615: SyntaxWarning: import * only allowed at module level def _createMenu(self): /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/salstat.py:615: SyntaxWarning: import * only allowed at module level def _createMenu(self): *** using recipe: virtualenv *** WARNING: PyQt uic module found. avoid python3 metaclass syntax errors by adding 'PyQt4.uic' to your excludes option. Traceback (most recent call last): File "../mac-setup/setup_py2app.py", line 61, in BuildOSXApp() File "../mac-setup/setup_py2app.py", line 54, in BuildOSXApp setup_requires = ['py2app'], File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup dist.run_commands() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg/py2app/build_app.py", line 492, in run self._run() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg/py2app/build_app.py", line 655, in _run self.run_normal() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg/py2app/build_app.py", line 728, in run_normal self.process_recipes(mf, filters, flatpackages, loader_files) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg/py2app/build_app.py", line 619, in process_recipes rval = check(self, mf) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg/py2app/recipes/sip.py", line 90, in check mf.import_hook(pkg, m) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/modulegraph-0.10-py2.7.egg/modulegraph/modulegraph.py", line 688, in import_hook q, tail = self.find_head_package(parent, name, level) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/modulegraph-0.10-py2.7.egg/modulegraph/modulegraph.py", line 771, in find_head_package raise ImportError("No module named " + qname) ImportError: No module named altgraph-0 renaissance-eth1:src mlivingstone$ From jzl5325 at psu.edu Mon Aug 13 18:38:08 2012 From: jzl5325 at psu.edu (Jay L.) Date: Mon, 13 Aug 2012 09:38:08 -0700 Subject: [Pythonmac-SIG] Py2App libpng12.0.dylib Message-ID: List, Using py2app to bundle scripts which depend on GDAL (libgdal.1.dylib). Gdal, in turn, depends on libpng12.0.dylib. On my build machine the bundled app works wonderfully. On another machine I am receiving an "Incompatible library version" error, specifying that libgdal.1.dylib requires libpng12.0.dylib required version 47.0.0 or later. /usr/X11/lib/libpng.12.0.dylib provides version 45.0.0. Can I manually include the correct version of libpng12.0.dylib, bundled with my app? Build machine: OSX 10.6.8 Python 2.7 64-bit installed via Homebrew Testing Machine: OSX 10.6.7 System Python (not that that should matter, because my 64-bit python should be bundled) I tried adding the frameworks option to setup.py, but without success. I added another libpng12.0.dylib that was on my system. My setup.py: """ This is a setup.py script generated by py2applet Usage: python setup.py py2app """ from setuptools import setup PACKAGES=['osgeo'] APP = ['PyStretch.py'] DATA_FILES = [] OPTIONS = {'compressed':True, 'packages': PACKAGES, 'frameworks':['/isis3/isis/3rdParty/lib/libpng12.0.dylib']} setup( app=APP, data_files=DATA_FILES, options={'py2app': OPTIONS}, setup_requires=['py2app'], ) Any insight appreciated, Jay -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronaldoussoren at mac.com Wed Aug 15 09:20:55 2012 From: ronaldoussoren at mac.com (Ronald Oussoren) Date: Wed, 15 Aug 2012 09:20:55 +0200 Subject: [Pythonmac-SIG] Py2App libpng12.0.dylib In-Reply-To: References: Message-ID: <2DF67B2D-FC77-4CC4-A180-255F76FC67C4@mac.com> On 13 Aug, 2012, at 18:38, Jay L. wrote: > List, > > Using py2app to bundle scripts which depend on GDAL (libgdal.1.dylib). Gdal, in turn, depends on libpng12.0.dylib. On my build machine the bundled app works wonderfully. On another machine I am receiving an "Incompatible library version" error, specifying that libgdal.1.dylib requires libpng12.0.dylib required version 47.0.0 or later. /usr/X11/lib/libpng.12.0.dylib provides version 45.0.0. > > Can I manually include the correct version of libpng12.0.dylib, bundled with my app? Yes, just link GDAL with a copy of libpng that is not in a system location. Py2app won't include files in system locations into the application bundle, and uses dependency information in the binaries to locate the libraries it should include. That dependency information contains the full path to the required shared libraries, just having a copy of libpng12.0.dylib will therefore not work but you have to link libgdal to that copy. Ronald > > Build machine: > OSX 10.6.8 > Python 2.7 64-bit installed via Homebrew > > Testing Machine: > OSX 10.6.7 > System Python (not that that should matter, because my 64-bit python should be bundled) > > I tried adding the frameworks option to setup.py, but without success. I added another libpng12.0.dylib that was on my system. > > My setup.py: > > """ > This is a setup.py script generated by py2applet > > Usage: > python setup.py py2app > """ > > from setuptools import setup > > PACKAGES=['osgeo'] > > APP = ['PyStretch.py'] > DATA_FILES = [] > OPTIONS = {'compressed':True, > 'packages': PACKAGES, > 'frameworks':['/isis3/isis/3rdParty/lib/libpng12.0.dylib']} > > > setup( > app=APP, > data_files=DATA_FILES, > options={'py2app': OPTIONS}, > setup_requires=['py2app'], > ) > > Any insight appreciated, > Jay > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4788 bytes Desc: not available URL: From livingstonemark at gmail.com Wed Aug 15 18:24:38 2012 From: livingstonemark at gmail.com (Mark Livingstone) Date: Thu, 16 Aug 2012 02:24:38 +1000 Subject: [Pythonmac-SIG] wxCocoa no top menu In-Reply-To: References: Message-ID: No ideas? On 12 August 2012 13:31, Mark Livingstone wrote: > Hi Guys, > > I finally dragged myself kicking and screaming into the current > millennium, and loaded Macports py27-wxpython-devel 2.9.4. on my > Mountain Lion machine. > > If I do a > > frame.Show() > > I get my program in a frame in the middle of the screen, and the usual > top of screen menu. If I click the green LED, it resizes to take up > most of the screen as expected. However, if I do > > frame.ShowFullScreen(True,False) > > I get the frame full screen, and I get the toolbar, but not the title > bar with the 3 LEDs or the top menu. > > Has anyone else come across this behaviour? Is this a bug, my > misunderstanding, or the way it works? > > I guess I could set the frame size to wx.DisplaySize() before showing > it, but that seems messy unless it is the wxCocoa way of doing things? > > Thanks in advance, > > MarkL From livingstonemark at gmail.com Wed Aug 15 18:25:21 2012 From: livingstonemark at gmail.com (Mark Livingstone) Date: Thu, 16 Aug 2012 02:25:21 +1000 Subject: [Pythonmac-SIG] No module named altgraph-0 In-Reply-To: References: Message-ID: Any ideas? On 12 August 2012 16:27, Mark Livingstone wrote: > Hi Guys, > > I'm making progress - I think ;-) > > I went to Ronald's Bitbucket and installed all the relevant bits and > pieces. Finally I made py2app as below, and it seemed that this was > successful. However when I tried to make my app as shown further down, > I get an error saying I don't have a module named altgraph-0. This is > on my Mountain Lion machine. > > ------------------------------------------------- > > renaissance-eth1:py2app mlivingstone$ sudo python setup.py install > running install > running bdist_egg > running egg_info > writing requirements to py2app.egg-info/requires.txt > writing py2app.egg-info/PKG-INFO > writing top-level names to py2app.egg-info/top_level.txt > writing dependency_links to py2app.egg-info/dependency_links.txt > writing entry points to py2app.egg-info/entry_points.txt > reading manifest file 'py2app.egg-info/SOURCES.txt' > reading manifest template 'MANIFEST.in' > warning: no directories found matching 'doc/_static' > warning: no directories found matching 'doc/_templates' > warning: no previously-included files matching '.DS_Store' found > anywhere in distribution > warning: no previously-included files matching '*.pyc' found anywhere > in distribution > warning: no previously-included files matching '*.so' found anywhere > in distribution > no previously-included directories found matching > 'py2app/apptemplate/prebuilt/main*.dSYM' > no previously-included directories found matching > 'py2app/bundletemplate/prebuilt/main*.dSYM' > writing manifest file 'py2app.egg-info/SOURCES.txt' > installing library code to build/bdist.macosx-10.8-x86_64/egg > running install_lib > running build_py > creating build/bdist.macosx-10.8-x86_64/egg > creating build/bdist.macosx-10.8-x86_64/egg/py2app > copying build/lib/py2app/__init__.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app > creating build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate > copying build/lib/py2app/apptemplate/__init__.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate > creating build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/lib > copying build/lib/py2app/apptemplate/lib/__error__.sh -> > build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/lib > copying build/lib/py2app/apptemplate/lib/site.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/lib > copying build/lib/py2app/apptemplate/plist_template.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate > creating build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/prebuilt > copying build/lib/py2app/apptemplate/prebuilt/main-fat -> > build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/prebuilt > copying build/lib/py2app/apptemplate/prebuilt/main-fat3 -> > build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/prebuilt > copying build/lib/py2app/apptemplate/prebuilt/main-i386 -> > build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/prebuilt > copying build/lib/py2app/apptemplate/prebuilt/main-intel -> > build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/prebuilt > copying build/lib/py2app/apptemplate/prebuilt/main-ppc -> > build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/prebuilt > copying build/lib/py2app/apptemplate/prebuilt/main-ppc64 -> > build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/prebuilt > copying build/lib/py2app/apptemplate/prebuilt/main-universal -> > build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/prebuilt > copying build/lib/py2app/apptemplate/prebuilt/main-x86_64 -> > build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/prebuilt > copying build/lib/py2app/apptemplate/setup.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate > creating build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/src > copying build/lib/py2app/apptemplate/src/main.c -> > build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/src > creating build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap > copying build/lib/py2app/bootstrap/__init__.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap > copying build/lib/py2app/bootstrap/argv_emulation.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap > copying build/lib/py2app/bootstrap/argv_inject.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap > copying build/lib/py2app/bootstrap/boot_aliasapp.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap > copying build/lib/py2app/bootstrap/boot_aliasplugin.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap > copying build/lib/py2app/bootstrap/boot_app.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap > copying build/lib/py2app/bootstrap/boot_plugin.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap > copying build/lib/py2app/bootstrap/chdir_resource.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap > copying build/lib/py2app/bootstrap/disable_linecache.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap > copying build/lib/py2app/bootstrap/emulate_shell_environment.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap > copying build/lib/py2app/bootstrap/import_encodings.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap > copying build/lib/py2app/bootstrap/path_inject.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap > copying build/lib/py2app/bootstrap/reset_sys_path.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap > copying build/lib/py2app/bootstrap/setup_pkgresource.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap > copying build/lib/py2app/bootstrap/site_packages.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap > copying build/lib/py2app/bootstrap/system_path_extras.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap > copying build/lib/py2app/build_app.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app > creating build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate > copying build/lib/py2app/bundletemplate/__init__.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate > creating build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/lib > copying build/lib/py2app/bundletemplate/lib/__error__.sh -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/lib > copying build/lib/py2app/bundletemplate/lib/site.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/lib > copying build/lib/py2app/bundletemplate/plist_template.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate > creating build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/prebuilt > copying build/lib/py2app/bundletemplate/prebuilt/main-fat -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/prebuilt > copying build/lib/py2app/bundletemplate/prebuilt/main-fat3 -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/prebuilt > copying build/lib/py2app/bundletemplate/prebuilt/main-i386 -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/prebuilt > copying build/lib/py2app/bundletemplate/prebuilt/main-intel -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/prebuilt > copying build/lib/py2app/bundletemplate/prebuilt/main-ppc -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/prebuilt > copying build/lib/py2app/bundletemplate/prebuilt/main-ppc64 -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/prebuilt > copying build/lib/py2app/bundletemplate/prebuilt/main-universal -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/prebuilt > copying build/lib/py2app/bundletemplate/prebuilt/main-x86_64 -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/prebuilt > copying build/lib/py2app/bundletemplate/setup.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate > creating build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/src > copying build/lib/py2app/bundletemplate/src/main.m -> > build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/src > creating build/bdist.macosx-10.8-x86_64/egg/py2app/converters > copying build/lib/py2app/converters/__init__.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/converters > copying build/lib/py2app/converters/coredata.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/converters > copying build/lib/py2app/converters/nibfile.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/converters > copying build/lib/py2app/create_appbundle.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app > copying build/lib/py2app/create_pluginbundle.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app > copying build/lib/py2app/decorators.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app > copying build/lib/py2app/filters.py -> build/bdist.macosx-10.8-x86_64/egg/py2app > creating build/bdist.macosx-10.8-x86_64/egg/py2app/recipes > copying build/lib/py2app/recipes/__init__.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/recipes > copying build/lib/py2app/recipes/cjkcodecs.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/recipes > copying build/lib/py2app/recipes/docutils.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/recipes > copying build/lib/py2app/recipes/email.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/recipes > copying build/lib/py2app/recipes/matplotlib.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/recipes > copying build/lib/py2app/recipes/matplotlib_prescript.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/recipes > copying build/lib/py2app/recipes/numpy.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/recipes > creating build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/PIL > copying build/lib/py2app/recipes/PIL/__init__.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/PIL > copying build/lib/py2app/recipes/PIL/prescript.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/PIL > copying build/lib/py2app/recipes/pydoc.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/recipes > copying build/lib/py2app/recipes/pygame.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/recipes > copying build/lib/py2app/recipes/pyopengl.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/recipes > copying build/lib/py2app/recipes/pyside.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/recipes > copying build/lib/py2app/recipes/pyzmq.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/recipes > copying build/lib/py2app/recipes/scipy.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/recipes > copying build/lib/py2app/recipes/sip.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/recipes > copying build/lib/py2app/recipes/virtualenv.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/recipes > copying build/lib/py2app/recipes/wx.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app/recipes > copying build/lib/py2app/script_py2applet.py -> > build/bdist.macosx-10.8-x86_64/egg/py2app > copying build/lib/py2app/util.py -> build/bdist.macosx-10.8-x86_64/egg/py2app > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/__init__.py > to __init__.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/__init__.py > to __init__.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/lib/site.py > to site.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/plist_template.py > to plist_template.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/apptemplate/setup.py > to setup.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/__init__.py > to __init__.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/argv_emulation.py > to argv_emulation.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/argv_inject.py > to argv_inject.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/boot_aliasapp.py > to boot_aliasapp.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/boot_aliasplugin.py > to boot_aliasplugin.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/boot_app.py > to boot_app.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/boot_plugin.py > to boot_plugin.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/chdir_resource.py > to chdir_resource.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/disable_linecache.py > to disable_linecache.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/emulate_shell_environment.py > to emulate_shell_environment.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/import_encodings.py > to import_encodings.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/path_inject.py > to path_inject.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/reset_sys_path.py > to reset_sys_path.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/setup_pkgresource.py > to setup_pkgresource.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/site_packages.py > to site_packages.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bootstrap/system_path_extras.py > to system_path_extras.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/build_app.py > to build_app.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/__init__.py > to __init__.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/lib/site.py > to site.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/plist_template.py > to plist_template.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/bundletemplate/setup.py > to setup.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/converters/__init__.py > to __init__.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/converters/coredata.py > to coredata.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/converters/nibfile.py > to nibfile.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/create_appbundle.py > to create_appbundle.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/create_pluginbundle.py > to create_pluginbundle.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/decorators.py > to decorators.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/filters.py to > filters.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/__init__.py > to __init__.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/cjkcodecs.py > to cjkcodecs.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/docutils.py > to docutils.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/email.py > to email.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/matplotlib.py > to matplotlib.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/matplotlib_prescript.py > to matplotlib_prescript.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/numpy.py > to numpy.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/PIL/__init__.py > to __init__.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/PIL/prescript.py > to prescript.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/pydoc.py > to pydoc.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/pygame.py > to pygame.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/pyopengl.py > to pyopengl.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/pyside.py > to pyside.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/pyzmq.py > to pyzmq.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/scipy.py > to scipy.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/sip.py > to sip.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/virtualenv.py > to virtualenv.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/recipes/wx.py to wx.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/script_py2applet.py > to script_py2applet.pyc > byte-compiling build/bdist.macosx-10.8-x86_64/egg/py2app/util.py to util.pyc > creating build/bdist.macosx-10.8-x86_64/egg/EGG-INFO > copying py2app.egg-info/PKG-INFO -> build/bdist.macosx-10.8-x86_64/egg/EGG-INFO > copying py2app.egg-info/SOURCES.txt -> > build/bdist.macosx-10.8-x86_64/egg/EGG-INFO > copying py2app.egg-info/dependency_links.txt -> > build/bdist.macosx-10.8-x86_64/egg/EGG-INFO > copying py2app.egg-info/entry_points.txt -> > build/bdist.macosx-10.8-x86_64/egg/EGG-INFO > copying py2app.egg-info/not-zip-safe -> > build/bdist.macosx-10.8-x86_64/egg/EGG-INFO > copying py2app.egg-info/requires.txt -> > build/bdist.macosx-10.8-x86_64/egg/EGG-INFO > copying py2app.egg-info/top_level.txt -> > build/bdist.macosx-10.8-x86_64/egg/EGG-INFO > creating 'dist/py2app-0.7-py2.7.egg' and adding > 'build/bdist.macosx-10.8-x86_64/egg' to it > removing 'build/bdist.macosx-10.8-x86_64/egg' (and everything under it) > Processing py2app-0.7-py2.7.egg > removing '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg' > (and everything under it) > creating /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg > Extracting py2app-0.7-py2.7.egg to > /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages > py2app 0.7 is already the active version in easy-install.pth > Installing py2applet script to > /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin > > Installed /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg > Processing dependencies for py2app==0.7 > Searching for macholib==1.5 > Best match: macholib 1.5 > Processing macholib-1.5-py2.7.egg > macholib 1.5 is already the active version in easy-install.pth > Installing macho_standalone script to > /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin > Installing macho_dump script to > /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin > Installing macho_find script to > /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin > > Using /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/macholib-1.5-py2.7.egg > Searching for modulegraph==0.10 > Best match: modulegraph 0.10 > Processing modulegraph-0.10-py2.7.egg > modulegraph 0.10 is already the active version in easy-install.pth > Installing modulegraph script to > /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin > > Using /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/modulegraph-0.10-py2.7.egg > Searching for altgraph==0.10 > Best match: altgraph 0.10 > Processing altgraph-0.10-py2.7.egg > altgraph 0.10 is already the active version in easy-install.pth > > Using /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/altgraph-0.10-py2.7.egg > Finished processing dependencies for py2app==0.7 > renaissance-eth1:py2app mlivingstone$ cd ../salstat-statistics-package-2/src > > > -------------------------------------------------------------------------------------------- > > > renaissance-eth1:src mlivingstone$ sudo python > ../mac-setup/setup_py2app.py py2app > running py2app > creating /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/build/bdist.macosx-10.8-x86_64/python2.7-standalone/app > creating /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/build/bdist.macosx-10.8-x86_64/python2.7-standalone/app/collect > creating /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/build/bdist.macosx-10.8-x86_64/python2.7-standalone/app/temp > creating /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/dist > creating build/bdist.macosx-10.8-x86_64/python2.7-standalone/app/lib-dynload > creating build/bdist.macosx-10.8-x86_64/python2.7-standalone/app/Frameworks > /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/salstat.py:615: > SyntaxWarning: import * only allowed at module level > def _createMenu(self): > /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/salstat.py:615: > SyntaxWarning: import * only allowed at module level > def _createMenu(self): > *** using recipe: virtualenv *** > WARNING: PyQt uic module found. > avoid python3 metaclass syntax errors by adding 'PyQt4.uic' to your > excludes option. > Traceback (most recent call last): > File "../mac-setup/setup_py2app.py", line 61, in > BuildOSXApp() > File "../mac-setup/setup_py2app.py", line 54, in BuildOSXApp > setup_requires = ['py2app'], > File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", > line 152, in setup > dist.run_commands() > File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", > line 953, in run_commands > self.run_command(cmd) > File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", > line 972, in run_command > cmd_obj.run() > File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg/py2app/build_app.py", > line 492, in run > self._run() > File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg/py2app/build_app.py", > line 655, in _run > self.run_normal() > File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg/py2app/build_app.py", > line 728, in run_normal > self.process_recipes(mf, filters, flatpackages, loader_files) > File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg/py2app/build_app.py", > line 619, in process_recipes > rval = check(self, mf) > File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg/py2app/recipes/sip.py", > line 90, in check > mf.import_hook(pkg, m) > File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/modulegraph-0.10-py2.7.egg/modulegraph/modulegraph.py", > line 688, in import_hook > q, tail = self.find_head_package(parent, name, level) > File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/modulegraph-0.10-py2.7.egg/modulegraph/modulegraph.py", > line 771, in find_head_package > raise ImportError("No module named " + qname) > ImportError: No module named altgraph-0 > renaissance-eth1:src mlivingstone$ From kw at codebykevin.com Wed Aug 15 18:31:23 2012 From: kw at codebykevin.com (Kevin Walzer) Date: Wed, 15 Aug 2012 12:31:23 -0400 Subject: [Pythonmac-SIG] wxCocoa no top menu In-Reply-To: References: Message-ID: You may have better luck asking on a wxPython ML... Sent from my iPhone On Aug 15, 2012, at 12:24 PM, Mark Livingstone wrote: > No ideas? > > On 12 August 2012 13:31, Mark Livingstone wrote: >> Hi Guys, >> >> I finally dragged myself kicking and screaming into the current >> millennium, and loaded Macports py27-wxpython-devel 2.9.4. on my >> Mountain Lion machine. >> >> If I do a >> >> frame.Show() >> >> I get my program in a frame in the middle of the screen, and the usual >> top of screen menu. If I click the green LED, it resizes to take up >> most of the screen as expected. However, if I do >> >> frame.ShowFullScreen(True,False) >> >> I get the frame full screen, and I get the toolbar, but not the title >> bar with the 3 LEDs or the top menu. >> >> Has anyone else come across this behaviour? Is this a bug, my >> misunderstanding, or the way it works? >> >> I guess I could set the frame size to wx.DisplaySize() before showing >> it, but that seems messy unless it is the wxCocoa way of doing things? >> >> Thanks in advance, >> >> MarkL > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG From ronaldoussoren at mac.com Thu Aug 16 07:57:55 2012 From: ronaldoussoren at mac.com (Ronald Oussoren) Date: Thu, 16 Aug 2012 07:57:55 +0200 Subject: [Pythonmac-SIG] wxCocoa no top menu In-Reply-To: References: Message-ID: On 12 Aug, 2012, at 5:31, Mark Livingstone wrote: > Hi Guys, > > I finally dragged myself kicking and screaming into the current > millennium, and loaded Macports py27-wxpython-devel 2.9.4. on my > Mountain Lion machine. > > If I do a > > frame.Show() > > I get my program in a frame in the middle of the screen, and the usual > top of screen menu. If I click the green LED, it resizes to take up > most of the screen as expected. However, if I do > > frame.ShowFullScreen(True,False) > > I get the frame full screen, and I get the toolbar, but not the title > bar with the 3 LEDs or the top menu. > > Has anyone else come across this behaviour? Is this a bug, my > misunderstanding, or the way it works? > > I guess I could set the frame size to wx.DisplaySize() before showing > it, but that seems messy unless it is the wxCocoa way of doing things? > > Thanks in advance, Looking at the documentation of wx I'd say this behavior is expected. When you click on the green led the window is maximized, and ShowFullScreen makes the window a full screen window (simular to the arrow icon's in the lefthand corner of Safari on recent OSX versions, and simular to how full-screen games work). Wx also has a Maximize method that does do the same thing as the green LED. Ronald > > MarkL > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4788 bytes Desc: not available URL: From ronaldoussoren at mac.com Thu Aug 16 07:54:15 2012 From: ronaldoussoren at mac.com (Ronald Oussoren) Date: Thu, 16 Aug 2012 07:54:15 +0200 Subject: [Pythonmac-SIG] No module named altgraph-0 In-Reply-To: References: Message-ID: Hi, Is your app this salstat ? The traceback seems to indicate that the sip recipe (for PyQt support) tries to import 'altgraph-0'. Could you try if the attached patch fixes the issue? BTW. You're running the setup.py as root, that shouldn't be necessary and in general is a security risk. Ronald -------------- next part -------------- A non-text attachment was scrubbed... Name: py2app_sip.patch Type: application/octet-stream Size: 511 bytes Desc: not available URL: -------------- next part -------------- On 15 Aug, 2012, at 18:25, Mark Livingstone wrote: >> >> >> renaissance-eth1:src mlivingstone$ sudo python >> ../mac-setup/setup_py2app.py py2app >> running py2app >> creating /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/build/bdist.macosx-10.8-x86_64/python2.7-standalone/app >> creating /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/build/bdist.macosx-10.8-x86_64/python2.7-standalone/app/collect >> creating /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/build/bdist.macosx-10.8-x86_64/python2.7-standalone/app/temp >> creating /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/dist >> creating build/bdist.macosx-10.8-x86_64/python2.7-standalone/app/lib-dynload >> creating build/bdist.macosx-10.8-x86_64/python2.7-standalone/app/Frameworks >> /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/salstat.py:615: >> SyntaxWarning: import * only allowed at module level >> def _createMenu(self): >> /Users/mlivingstone/Documents/workspace/salstat-statistics-package-2/src/salstat.py:615: >> SyntaxWarning: import * only allowed at module level >> def _createMenu(self): >> *** using recipe: virtualenv *** >> WARNING: PyQt uic module found. >> avoid python3 metaclass syntax errors by adding 'PyQt4.uic' to your >> excludes option. >> Traceback (most recent call last): >> File "../mac-setup/setup_py2app.py", line 61, in >> BuildOSXApp() >> File "../mac-setup/setup_py2app.py", line 54, in BuildOSXApp >> setup_requires = ['py2app'], >> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", >> line 152, in setup >> dist.run_commands() >> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", >> line 953, in run_commands >> self.run_command(cmd) >> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", >> line 972, in run_command >> cmd_obj.run() >> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg/py2app/build_app.py", >> line 492, in run >> self._run() >> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg/py2app/build_app.py", >> line 655, in _run >> self.run_normal() >> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg/py2app/build_app.py", >> line 728, in run_normal >> self.process_recipes(mf, filters, flatpackages, loader_files) >> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg/py2app/build_app.py", >> line 619, in process_recipes >> rval = check(self, mf) >> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/py2app-0.7-py2.7.egg/py2app/recipes/sip.py", >> line 90, in check >> mf.import_hook(pkg, m) >> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/modulegraph-0.10-py2.7.egg/modulegraph/modulegraph.py", >> line 688, in import_hook >> q, tail = self.find_head_package(parent, name, level) >> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/modulegraph-0.10-py2.7.egg/modulegraph/modulegraph.py", >> line 771, in find_head_package >> raise ImportError("No module named " + qname) >> ImportError: No module named altgraph-0 >> renaissance-eth1:src mlivingstone$ > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4788 bytes Desc: not available URL: From livingstonemark at gmail.com Thu Aug 16 09:46:53 2012 From: livingstonemark at gmail.com (Mark Livingstone) Date: Thu, 16 Aug 2012 17:46:53 +1000 Subject: [Pythonmac-SIG] wxCocoa no top menu In-Reply-To: References: Message-ID: On 16 August 2012 15:57, Ronald Oussoren wrote: > Looking at the documentation of wx I'd say this behavior is expected. When you click on the green led the window is maximized, and ShowFullScreen makes the window a full screen window (simular to the arrow icon's in the lefthand corner of Safari on recent OSX versions, and simular to how full-screen games work). Wx also has a Maximize method that does do the same thing as the green LED. Yes, that was it. Since my app has a spreadsheet-like grid as its UI, I just did a frame.maximize() before the frame.Show() and it works beautifully. I presume that 32 bit Carbon wx 2.8.* must have started maximized as standard, while wx 2.9.4 Cocoa 64 bit doesn't. Since everyone has been following the saga, I can say that with a small patch to py2app from Ronald, I have been able to successfully create a salstat.app which, once I include a few minor modules (aui constants IIRC) looks like it will work nicely under 64 bit wxCocoa 2.9.4 for Lion & Mountain Lion with py2.7, wxPython, PyQT, sip, pydoc, PIL, matplotlib, bumpy, scipy, xlrd, xlwt, using Macports. This was all done on my Mountain Lion machine. I haven't gotten back to the the Python.org mess yet ;-) 32 bit Carbon still works fine from Source at present other than the vanishing font dialog which is a known wx "won't fix" - not a major issue! Cheers, MArkL