Hi,

i'm tring for the first time to use py2app :-)
i need to create a .app
of a module that have the follow dependancies :

import os
from scipy import io, linalg
from numpy import *
from pylab import save
import sys
from PyQt4 import QtGui
from PyQt4 import QtCore


but unlucky tring " py2app -A " :

sashas-macbook-pro-15:pyapp sasha$ python setup.py py2app -A
running py2app
creating /Users/sasha/Desktop/pyapp/build
creating /Users/sasha/Desktop/pyapp/build/bdist.macosx-10.5-i386
creating /Users/sasha/Desktop/pyapp/build/bdist.macosx-10.5-i386/ python2.5-semi_standalone creating /Users/sasha/Desktop/pyapp/build/bdist.macosx-10.5-i386/ python2.5-semi_standalone/app creating /Users/sasha/Desktop/pyapp/build/bdist.macosx-10.5-i386/ python2.5-semi_standalone/app/collect creating /Users/sasha/Desktop/pyapp/build/bdist.macosx-10.5-i386/ python2.5-semi_standalone/app/temp
creating /Users/sasha/Desktop/pyapp/dist
creating build/bdist.macosx-10.5-i386/python2.5-semi_standalone/app/ lib-dynload creating build/bdist.macosx-10.5-i386/python2.5-semi_standalone/app/ Frameworks
*** creating application bundle: degree ***
sashas-macbook-pro-15:pyapp sasha$ open -a /Users/sasha/Desktop/pyapp/ dist/degree.app

it do nor runs

########   console log :

5/19/08 3:30:20 AM [0x0-0x356356].org.pythonmac.unspecified.degree[7158] File "/Users/ sasha/Desktop/pyapp/dist/degree.app/Contents/Resources/__boot__.py", line 153, in _run 5/19/08 3:30:20 AM [0x0-0x356356].org.pythonmac.unspecified.degree[7158] execfile(path, globals(), globals()) 5/19/08 3:30:20 AM [0x0-0x356356].org.pythonmac.unspecified.degree[7158] File "/Users/ sasha/Desktop/pyapp/degree.py", line 5, in <module> 5/19/08 3:30:20 AM [0x0-0x356356].org.pythonmac.unspecified.degree[7158] from scipy import io, linalg 5/19/08 3:30:20 AM [0x0-0x356356].org.pythonmac.unspecified.degree[7158] ImportError: No module named scipy 5/19/08 3:30:23 AM com.apple.launchd[139] ([0x0-0x356356].org.pythonmac.unspecified.degree[7158]) Exited with exit code: 255 5/19/08 3:30:27 AM tuncfgd[7162] tuncfg: already running, use 'killall tuncfg; tuncfg' to restart it 5/19/08 3:30:27 AM com.apple.launchd[1] (tuncfgd[7162]) Exited with exit code: 1

########

while tring the option : --packages=PyQt4,scipy

i get :


sashas-macbook-pro-15:pyapp sasha$ python setup.py py2app -- packages=PyQt4,scipy
running py2app
creating /Users/sasha/Desktop/pyapp/build
creating /Users/sasha/Desktop/pyapp/build/bdist.macosx-10.5-i386
creating /Users/sasha/Desktop/pyapp/build/bdist.macosx-10.5-i386/ python2.5-semi_standalone creating /Users/sasha/Desktop/pyapp/build/bdist.macosx-10.5-i386/ python2.5-semi_standalone/app creating /Users/sasha/Desktop/pyapp/build/bdist.macosx-10.5-i386/ python2.5-semi_standalone/app/collect creating /Users/sasha/Desktop/pyapp/build/bdist.macosx-10.5-i386/ python2.5-semi_standalone/app/temp
creating /Users/sasha/Desktop/pyapp/dist
creating build/bdist.macosx-10.5-i386/python2.5-semi_standalone/app/ lib-dynload creating build/bdist.macosx-10.5-i386/python2.5-semi_standalone/app/ Frameworks
Traceback (most recent call last):
File "/Library/Python/2.5/site-packages/py2app-0.3.6-py2.5.egg/ py2app/build_app.py", line 548, in _run
    self.run_normal()
File "/Library/Python/2.5/site-packages/py2app-0.3.6-py2.5.egg/ py2app/build_app.py", line 604, in run_normal
    self.process_recipes(mf, filters, flatpackages, loader_files)
File "/Library/Python/2.5/site-packages/py2app-0.3.6-py2.5.egg/ py2app/build_app.py", line 518, in process_recipes
    rval = check(self, mf)
File "/Library/Python/2.5/site-packages/py2app-0.3.6-py2.5.egg/ py2app/recipes/matplotlib.py", line 5, in check
    mf.import_hook('pytz.zoneinfo', m, ['UTC'])
File "/System/Library/Frameworks/Python.framework/Versions/2.5/ Extras/lib/python/modulegraph/modulegraph.py", line 381, in import_hook
    m = self.load_tail(q, tail)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/ Extras/lib/python/modulegraph/modulegraph.py", line 444, in load_tail
    raise ImportError, "No module named " + mname
ImportError: No module named pytz.zoneinfo
> /System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/ python/modulegraph/modulegraph.py(444)load_tail()
-> raise ImportError, "No module named " + mname
(Pdb) q

i tried to copy a zipped file of my site packages into

may.app/Contents/Resources/lib/python2.5/
but without succes :-(

i installed py2app using easy_install
on a mac osx 10.5.2



thanks for any help !

regards,
Massimo



Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to