[Pythonmac-SIG] Having a problem to install PyObjC to Snow Leopard
Hello, I'm trying to install PyObjC by "sudo port -d install py26-pyobjc2" I got an error message related with KeyError '_objc'. The error message is >> DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-pyobjc2/work/pyobjc-core" && /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 setup.py --no-user-cfg build " returned error 1 Command output: running build running build_py running build_ext Traceback (most recent call last): File "setup.py", line 324, in '': ['*.bridgesupport'], File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py", line 152, in setup dist.run_commands() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 987, in run_commands self.run_command(cmd) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 1007, in run_command cmd_obj.run() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/command/build.py", line 134, in run self.run_command(cmd_name) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/cmd.py", line 333, in run_command self.distribution.run_command(command) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 1007, in run_command cmd_obj.run() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/build_ext.py", line 46, in run File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/command/build_ext.py", line 340, in run self.build_extensions() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/command/build_ext.py", line 449, in build_extensions self.build_extension(ext) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/build_ext.py", line 175, in build_extension File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/command/build_ext.py", line 460, in build_extension ext_path = self.get_ext_fullpath(ext.name) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/command/build_ext.py", line 633, in get_ext_fullpath filename = self.get_ext_filename(modpath[-1]) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/build_ext.py", line 85, in get_ext_filename KeyError: '_objc' while executing "command_exec build" (procedure "portbuild::build_main" line 9) invoked from within "$procedure $targetname" Warning: the following items did not execute (for py26-pyobjc2): org.macports.activate org.macports.build org.macports.destroot org.macports.install Error: Status 1 encountered during processing. << Would you give some hit for me please? TIA, T. Iwamoto ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Shortcut for IDLE on Mac OS X (LEOPARD)
On Oct 7, 2009, at 7:35 PM, Christopher Barker wrote: Ben Golding wrote: You should be able to put this in a double-clickable file by putting that string in a file called, say, IDLE.command and then making it executable. Files ending in ".command" are recognised by Launch Services as shell scripts (I believe). Has no-one made a nifty utility to make a *.app bundle from a shell script? That would seem like an obvious utility to want... -Chris You can do that with Automator by choosing the Application template, choosing the shell-script action, and then saving it. Dave ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Installer variants [Was: Building 2.5 on SL]
On Oct 7, 2009, at 6:39 PM, Ned Deily wrote: So, to summarize, I suggest that we continue to provide the current style of 10.3+ 32-fat installers for 2.m.n and 3.x.y for the indefinite future and that we work towards providing a second installer for 2.m.n and 3.x.y (m, n, x, y TBD), providing 10.6+ intel 32/64 support. If that seems reasonable to everyone (and, particularly, to Ronald), perhaps we should open a tracker issue (more a meta-issue) towards that end. +1 ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Build python app using wxpython on intel-leopard and deploy on powerpc-tiger?
Just tried a "hello world " app to troubleshoot py2app as Chris Barker suggested. When I say open sayhello.app Nothing happens. No additional console opens . IS this the normal behavior. Here is my hello world style app and its setup.py ( see below) Should the app created with py2app automatically open a console? Even if I click on the *.app icon..nothing happens. Hari ### printto100.py ### def main(): print "Hello, world!" for i in range(100): print i if __name__ == "__main__": main() # setup.py # """ This is a setup.py script generated by py2applet Usage: python setup.py py2app """ from setuptools import setup APP = ['printo100.py'] DATA_FILES = [] OPTIONS = {'argv_emulation': True, 'iconfile': './gzilla_ico_fin.icns'} setup( app=APP, data_files=DATA_FILES, options={'py2app': OPTIONS}, setup_requires=['py2app'], ) On Wed, Oct 7, 2009 at 7:28 PM, Christopher Barker wrote: > hari jayaram wrote: >> >> Thanks Chris for your emails.. > > one more thought -- this is looking like it may have nothing to do with > wxPython -- try a simple "hello world" script, and see what happens. > > > -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.bar...@noaa.gov > ___ > Pythonmac-SIG maillist - pythonmac-...@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
[Pythonmac-SIG] Latest Py2app bug..
Hi folks, hari jayaram wrote: Just tried a "hello world " app to troubleshoot py2app as Chris Barker suggested. I was trying to help this guy out, and updated by py2app to the dev version: easy_install py2app==dev Now it's broken for me, on OS-X 10.4, Python.org 2.5: (tested in a very simple "hello world" app, and also one that was building fine yesterday, before I did the py2app upgrade. I suspect this is some simple difference between python or OS-X version differences. -Chris creating /Users/cbarker/Junk/dist/printo100.app/Contents/Frameworks/Python.framework/Versions/2.5/Resources Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/build_app.py", line 589, in _run self.run_normal() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/build_app.py", line 660, in run_normal self.create_binaries(py_files, pkgdirs, extensions, loader_files) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/build_app.py", line 768, in create_binaries mm.mm.run_file(runtime) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/macholib-1.2.1-py2.5.egg/macholib/MachOGraph.py", line 62, in run_file m = self.findNode(pathname) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/macholib-1.2.1-py2.5.egg/macholib/MachOGraph.py", line 55, in findNode newname = self.locate(name) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/macholib-1.2.1-py2.5.egg/macholib/MachOStandalone.py", line 30, in locate return self.delegate.locate(newname) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/macholib-1.2.1-py2.5.egg/macholib/MachOStandalone.py", line 69, in locate res = self.copy_framework(info) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/build_app.py", line 60, in copy_framework destfn = self.appbuilder.copy_framework(info, self.dest) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/build_app.py", line 891, in copy_framework self.copy_python_framework(info, dst) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/build_app.py", line 911, in copy_python_framework pydir = 'python%d.%d'%(info['version']) TypeError: int argument required > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/build_app.py(911)copy_python_framework() -> pydir = 'python%d.%d'%(info['version']) -- 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.bar...@noaa.gov ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Build python app using wxpython on intel-leopard and deploy on powerpc-tiger?
hari jayaram wrote: Just tried a "hello world " app to troubleshoot py2app as Chris Barker suggested. When I say open sayhello.app Nothing happens. No additional console opens . IS this the normal behavior. yes -- app bundles re-direct stdout to the console, but don't open it for you. Try opening the console yourself: /Applications/Utilities/Console.app clear it, then run your app bundle -- you should see the output. -Chris Here is my hello world style app and its setup.py ( see below) Should the app created with py2app automatically open a console? Even if I click on the *.app icon..nothing happens. Hari ### printto100.py ### def main(): print "Hello, world!" for i in range(100): print i if __name__ == "__main__": main() # setup.py # """ This is a setup.py script generated by py2applet Usage: python setup.py py2app """ from setuptools import setup APP = ['printo100.py'] DATA_FILES = [] OPTIONS = {'argv_emulation': True, 'iconfile': './gzilla_ico_fin.icns'} setup( app=APP, data_files=DATA_FILES, options={'py2app': OPTIONS}, setup_requires=['py2app'], ) On Wed, Oct 7, 2009 at 7:28 PM, Christopher Barker wrote: hari jayaram wrote: Thanks Chris for your emails.. one more thought -- this is looking like it may have nothing to do with wxPython -- try a simple "hello world" script, and see what happens. -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.bar...@noaa.gov ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig -- 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.bar...@noaa.gov ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Latest Py2app bug..
Christopher Barker wrote: I was trying to help this guy out, and updated by py2app to the dev version: easy_install py2app==dev Now it's broken for me, on OS-X 10.4, Python.org 2.5: Another note -- I just cleared it out, and did: $ easy_install py2app and got 0.4.2 Still the same bug, even though I'm pretty sure I was running 0.4.2 before. Is there a way to check the revision number? -Chris easy_install output: Searching for py2app Reading http://pypi.python.org/simple/py2app/ Reading http://undefined.org/python/#py2app Best match: py2app 0.4.2 Downloading http://pypi.python.org/packages/source/p/py2app/py2app-0.4.2.tar.gz#md5=fab793a7e97620afec146e515bbf4e80 Processing py2app-0.4.2.tar.gz Running py2app-0.4.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-SazbDU/py2app-0.4.2/egg-dist-tmp-EtCr4Y Adding py2app 0.4.2 to easy-install.pth file Installing py2applet script to /Library/Frameworks/Python.framework/Versions/2.5/bin Installed /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg Processing dependencies for py2app Finished processing dependencies for py2app (tested in a very simple "hello world" app, and also one that was building fine yesterday, before I did the py2app upgrade. I suspect this is some simple difference between python or OS-X version differences. -Chris creating /Users/cbarker/Junk/dist/printo100.app/Contents/Frameworks/Python.framework/Versions/2.5/Resources Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/build_app.py", line 589, in _run self.run_normal() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/build_app.py", line 660, in run_normal self.create_binaries(py_files, pkgdirs, extensions, loader_files) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/build_app.py", line 768, in create_binaries mm.mm.run_file(runtime) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/macholib-1.2.1-py2.5.egg/macholib/MachOGraph.py", line 62, in run_file m = self.findNode(pathname) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/macholib-1.2.1-py2.5.egg/macholib/MachOGraph.py", line 55, in findNode newname = self.locate(name) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/macholib-1.2.1-py2.5.egg/macholib/MachOStandalone.py", line 30, in locate return self.delegate.locate(newname) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/macholib-1.2.1-py2.5.egg/macholib/MachOStandalone.py", line 69, in locate res = self.copy_framework(info) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/build_app.py", line 60, in copy_framework destfn = self.appbuilder.copy_framework(info, self.dest) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/build_app.py", line 891, in copy_framework self.copy_python_framework(info, dst) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/build_app.py", line 911, in copy_python_framework pydir = 'python%d.%d'%(info['version']) TypeError: int argument required > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/build_app.py(911)copy_python_framework() -> pydir = 'python%d.%d'%(info['version']) -- 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.bar...@noaa.gov ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Latest Py2app bug..
Hi, Just to say that It happens also with me. Using Snow Leopard and python2.6. File "/Users/bastiao/Umit/svn/trunk/py2app-0.4.2-py2.6.egg/py2app/build_app.py", line 60, in copy_framework destfn = self.appbuilder.copy_framework(info, self.dest) File "/Users/bastiao/Umit/svn/trunk/py2app-0.4.2-py2.6.egg/py2app/build_app.py", line 891, in copy_framework self.copy_python_framework(info, dst) File "/Users/bastiao/Umit/svn/trunk/py2app-0.4.2-py2.6.egg/py2app/build_app.py", line 911, in copy_python_framework pydir = 'python%d.%d'%(info['version']) TypeError: %d format: a number is required, not str > /Users/bastiao/Umit/svn/trunk/py2app-0.4.2-py2.6.egg/py2app/build_app.py(911)copy_python_framework() -> pydir = 'python%d.%d'%(info['version']) (Pdb) Solutions? On Thu, Oct 8, 2009 at 5:35 PM, Christopher Barker wrote: > Hi folks, > > hari jayaram wrote: > >> Just tried a "hello world " app to troubleshoot py2app as Chris Barker >> suggested. >> > > I was trying to help this guy out, and updated by py2app to the dev > version: > > easy_install py2app==dev > > Now it's broken for me, on OS-X 10.4, Python.org 2.5: > > (tested in a very simple "hello world" app, and also one that was building > fine yesterday, before I did the py2app upgrade. > > I suspect this is some simple difference between python or OS-X version > differences. > > -Chris > > > creating > /Users/cbarker/Junk/dist/printo100.app/Contents/Frameworks/Python.framework/Versions/2.5/Resources > Traceback (most recent call last): > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/build_app.py", > line 589, in _run >self.run_normal() > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/build_app.py", > line 660, in run_normal >self.create_binaries(py_files, pkgdirs, extensions, loader_files) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/build_app.py", > line 768, in create_binaries >mm.mm.run_file(runtime) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/macholib-1.2.1-py2.5.egg/macholib/MachOGraph.py", > line 62, in run_file >m = self.findNode(pathname) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/macholib-1.2.1-py2.5.egg/macholib/MachOGraph.py", > line 55, in findNode >newname = self.locate(name) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/macholib-1.2.1-py2.5.egg/macholib/MachOStandalone.py", > line 30, in locate >return self.delegate.locate(newname) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/macholib-1.2.1-py2.5.egg/macholib/MachOStandalone.py", > line 69, in locate >res = self.copy_framework(info) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/build_app.py", > line 60, in copy_framework >destfn = self.appbuilder.copy_framework(info, self.dest) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/build_app.py", > line 891, in copy_framework >self.copy_python_framework(info, dst) > File > "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/build_app.py", > line 911, in copy_python_framework >pydir = 'python%d.%d'%(info['version']) > TypeError: int argument required > > > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/build_app.py(911)copy_python_framework() > -> pydir = 'python%d.%d'%(info['version']) > > > > > > -- > 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.bar...@noaa.gov > ___ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > Best Regards, -- Luís A. Bastião Silva ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Having a problem to install PyObjC to Snow Leopard
In article <3f39e1330910080429y16802094pef7505d7e7456...@mail.gmail.com>, Takahiro IWAMOTO wrote: > I'm trying to install PyObjC by "sudo port -d install py26-pyobjc2" > > I got an error message related with KeyError '_objc'. The problem was due to a Distutils incompatibility released in Python 2.6.3. It will be fixed in 2.6.4 which will be released in two weeks but the MacPorts maintainers have already patched setuptools to get around it. Just rerun: sudo port sync and try the install again. This time it should also install a new version of py26-setuptools and the install of py26-pyobjc2 should now work. -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Latest Py2app bug..
In article <277c20420910080947i564f41a2u2890e890767d5...@mail.gmail.com>, "Luis A. Bastiao Silva" wrote: > Just to say that It happens also with me. Using Snow Leopard and python2.6. > > File > "/Users/bastiao/Umit/svn/trunk/py2app-0.4.2-py2.6.egg/py2app/build_app.py", > line 60, in copy_framework > destfn = self.appbuilder.copy_framework(info, self.dest) > File > "/Users/bastiao/Umit/svn/trunk/py2app-0.4.2-py2.6.egg/py2app/build_app.py", > line 891, in copy_framework > self.copy_python_framework(info, dst) > File > "/Users/bastiao/Umit/svn/trunk/py2app-0.4.2-py2.6.egg/py2app/build_app.py", > line 911, in copy_python_framework > pydir = 'python%d.%d'%(info['version']) > TypeError: %d format: a number is required, not str > > > /Users/bastiao/Umit/svn/trunk/py2app-0.4.2-py2.6.egg/py2app/build_app.py(911)c > opy_python_framework() > -> pydir = 'python%d.%d'%(info['version']) > (Pdb) > > > Solutions? Looks like it was caused by a one-line patch that was just added to py2app. Try reverting it by changing line 911 of py2app-0.4.2-py2.6.egg/py2app/build_app.py from: pydir = 'python%d.%d'%(info['version']) back to: pydir = 'python%d.%d'%(sys.version_info[:2]) -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Latest Py2app bug..
Ned Deily wrote: Looks like it was caused by a one-line patch that was just added to py2app. Try reverting it by changing line 911 of py2app-0.4.2-py2.6.egg/py2app/build_app.py from: pydir = 'python%d.%d'%(info['version']) back to: pydir = 'python%d.%d'%(sys.version_info[:2]) yup -- that fixed it -- do you have SVN access to roll that back? Thanks, -CHB PS: the printo100 app works fine for me (output to the console), as does my own app. -- 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.bar...@noaa.gov ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Latest Py2app bug..
Hi Chris , Ned and everyone else . I fixed the line 911 in py2app/build_app.py as recommended by Ned , then reinstalled py2app My printto100.app ( hello world app) does output the numbers to console, so it works fine I however still cannot get the wxpython app to build correctly. I am trying it with a simple hello world styled app that pops up a Frame (source below). Running the built app with setup.p attached gives the same error as before : ImportError: '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/wx/_core_.so' not found I am attaching the test source and the setup.py here . The app is 33M big and has the _core_s.so in the directory . So for some reason the app is looking for the _core_.so in the System folder instead of the app bundle location. ./Contents/Resources/lib/python2.5/lib-dynload/wx/_core_.so Thanks Hari ## sayhello.py ## #!/usr/bin/python import wx class MyFrame(wx.Frame): def __init__(self,*args,**kwds): kwds["size"] = (640,480) wx.Frame.__init__(self,*args,**kwds) self.Show() if __name__ == "__main__": ma = wx.PySimpleApp() f = MyFrame(None,-1,title="An App") ma.MainLoop() setup.py """ This is a setup.py script generated by py2applet Usage: python setup.py py2app """ from setuptools import setup APP = ['sayhello.py'] DATA_FILES = [] OPTIONS = {'argv_emulation': True, 'iconfile': './gzilla_ico_fin.icns'} setup( app=APP, data_files=DATA_FILES, options={'py2app': OPTIONS}, setup_requires=['py2app'], ) On Thu, Oct 8, 2009 at 3:40 PM, Christopher Barker wrote: > Ned Deily wrote: >> >> Looks like it was caused by a one-line patch that was just added to >> py2app. Try reverting it by changing line 911 of >> py2app-0.4.2-py2.6.egg/py2app/build_app.py from: >> >> pydir = 'python%d.%d'%(info['version']) >> >> back to: >> >> pydir = 'python%d.%d'%(sys.version_info[:2]) > > yup -- that fixed it -- do you have SVN access to roll that back? > > Thanks, > > -CHB > > PS: the printo100 app works fine for me (output to the console), as does my > own app. > > > -- > 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.bar...@noaa.gov > ___ > Pythonmac-SIG maillist - pythonmac-...@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Shortcut for IDLE on Mac OS X (LEOPARD)
Thanks for all those replies. I'll try them out and investigate them next weekend. Subsequently I'll give you some more feedback. For those of you using Python 2.6 or 3.x and interested in Python's new turtle module: There is a turtle subdirectory in the Demo folder of your Python installation. There you can find a script called turtleDemo.py that lets you view and run demos from a set of approx.15 demo scripts. morever you can find a set of 50+ demos here: http://python-turtle-demo.googlecode.com Regards, Gregor ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Latest Py2app bug..
hari jayaram wrote: My printto100.app ( hello world app) does output the numbers to console, so it works fine what is in: printo100.app/Contents/MacOS/ is should have: $ ls -l printo100.app/Contents/MacOS/ total 264 -rwxr-xr-x 1 cbarker cbarker 100276 Oct 8 12:38 printo100 -rwxr-xr-x 1 cbarker cbarker 30028 Oct 8 12:38 python In your broken app before, "python" was a link to a system python, rather that a file -- I think that may be your problem. It may not manifest itself in the simple case, as there isn't as much to find, and the system stuff is there, if it's looking there. Sorry for such slow debugging -- I've never dug into the py2app code, only used 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.bar...@noaa.gov ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Latest Py2app bug..
Hi Chris , Ned and everyone else I looked at all my app bundles created with py2app . Inside App/Contents/MacOS The python is a link to the system python . ( for eg see below for the wxpython app I am trying to build) So I guess the question is why is that happening with my setup.py and py2app 0.4.2 Hari harijaymac:MacOS hari$ ls -altrh total 208 drwxr-xr-x 7 hari harijay 238B Oct 8 16:20 .. lrwxr-xr-x 1 hari harijay92B Oct 8 16:20 python -> /Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python -rwxr-xr-x 1 hari harijay98K Oct 8 16:20 GridZilla drwxr-xr-x 4 hari harijay 136B Oct 8 16:20 . harijaymac:MacOS hari$ cd On Thu, Oct 8, 2009 at 5:53 PM, Christopher Barker wrote: > hari jayaram wrote: >> >> My printto100.app ( hello world app) does output the numbers to >> console, so it works fine > > what is in: > > printo100.app/Contents/MacOS/ > > is should have: > > $ ls -l printo100.app/Contents/MacOS/ > total 264 > -rwxr-xr-x 1 cbarker cbarker 100276 Oct 8 12:38 printo100 > -rwxr-xr-x 1 cbarker cbarker 30028 Oct 8 12:38 python > > In your broken app before, "python" was a link to a system python, rather > that a file -- I think that may be your problem. It may not manifest itself > in the simple case, as there isn't as much to find, and the system stuff is > there, if it's looking there. > > Sorry for such slow debugging -- I've never dug into the py2app code, only > used 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.bar...@noaa.gov > ___ > Pythonmac-SIG maillist - pythonmac-...@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Shortcut for IDLE on Mac OS X (LEOPARD)
In article <4ace4fe3.6050...@aon.at>, Gregor Lingl wrote: > There is a turtle subdirectory in the Demo folder of your Python > installation. > There you can find a script called turtleDemo.py that lets you view and > run demos > from a set of approx.15 demo scripts. I love those demos. I use them all the time to test Python! -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig