On Tue, Mar 4, 2008 at 7:25 PM, Shu Ning Bian <[EMAIL PROTECTED]> wrote: > > > > > > On Tue, Mar 4, 2008 at 5:56 AM, Shu Ning Bian <[EMAIL PROTECTED]> > > wrote: > >>> ...I still get the following error: > >>> > >>> $ python setup.py py2app > >>> Traceback (most recent call last): > >>> File "setup.py", line 12, in <module> > >>> import ez_setup > >>> ImportError: No module named ez_setup > >>> > >>> > >> Ok, it looks like I had ez_setup.py in the same directory as > >> setup.py. > >> You can find it here: > http://trac.pictorii.com/mactorii/browser/ez_setup.py > >> > >> Try downloading that, and whacking it in the same directory as > >> setup.py! > > > > Ok, so I did that, and the .app builds as normal and gets the same > > error importing amp as normal. > > > > What else could I try? > > > Hrm, can you create a short python script which has the same imports > as whatever you are writing, and create a setup.py for it so it > reproduces the problem? If so, if you can do that and zip it up, I can > have a poke around on my end? > > Otherwise I am all out of cat.
With the help of people on the twisted list, I was able to isolate what is happening, but I still don't know how to fix it. What is happening is simple: The .app is seeing a minimal Twisted 2.4 installation that ships with Leopard instead of the custom (full) Twisted 2.5 installation that I'm using and that py2app successfully puts into MyApp.app/Contents/Resources/lib/python2.5/site-packages.zip. So I just need to tell my .app somehow to use the inside-the-app version of twisted and NOT the one out on the system...somehow... ~ Nathan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
