> > On Fri, Feb 29, 2008 at 9:14 AM, Nathan <[EMAIL PROTECTED]> > wrote: >> On Thu, Feb 28, 2008 at 7:57 PM, Shu Ning Bian >> <[EMAIL PROTECTED]> wrote: >>> Can we take a look at the setup.py you used? >> >> Absolutely, but as I was creating this email I thought "wait a >> minute...I had to set PYTHONPATH=/Library/Python/2.5/site-packages in >> my environment to get the custom Twisted installation to work in the >> first place, I wonder..." >> >> ...and then I added this to the top of my script: >> >> import sys >> sys.path.insert(0, '/Library/Python/2.5/site-packages') >> >> ...and then it worked! Yay! > > Doh! I spoke too soon. Even though the .app now works on _my_ box, > when I gave it to someone else with Leopard to test it, it failed with > the same "ImportError: cannot import name amp" error. So obviously my > fix made the .app look out into the system for twisted, instead of > causing py2app to properly include it like I thought it would. > > > Here's my setup.py: > > """ > This is a setup.py script generated by py2applet > > Usage: > python setup.py py2app > """
> from setuptools import setup > > APP = ['running-man.py'] > DATA_FILES = ['images'] > OPTIONS = {'argv_emulation': True} > > setup( > app=APP, > data_files=DATA_FILES, > options={'py2app': OPTIONS}, > setup_requires=['py2app'], > ) > > Stabbing blindly in the dark, perhaps modify your setup.py to use the following? -- from setuptools import setup,find_packages import sys import ez_setup ez_setup.use_setuptools() -- That is the only real difference I can see between our respective setup.pys. You can also try the --package argument documented at http://undefined.org/python/py2app.html#py2app-documentation to see if you can force twisted to be thus included. Let us know how that goes :) Cheers, Steve --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to pyglet-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---