List Info

Thread: Problems bundleing my application with py2app




Problems bundleing my application with py2app
user name
2006-11-25 16:00:29
Hello,

I'm currently trying to bundle my wxPython application with
py2app so
it's easy for MacOS X users to run.

I keep running into the following error on a few different
modules. 

Traceback (most recent call last):
  File
"/System/Library/Frameworks/Python.framework/Versions/2
.3/lib/python2.3/site-packages/py2app-0.3.5-py2.3.egg/py2app
/build_app.py", line 548, in _run
    self.run_normal()
  File
"/System/Library/Frameworks/Python.framework/Versions/2
.3/lib/python2.3/site-packages/py2app-0.3.5-py2.3.egg/py2app
/build_app.py", line 618, in run_normal
    py_files, extensions = self.finalize_modulefinder(mf)
  File
"/System/Library/Frameworks/Python.framework/Versions/2
.3/lib/python2.3/site-packages/py2app-0.3.5-py2.3.egg/py2app
/build_app.py", line 589, in finalize_modulefinder
    py_files, extensions = parse_mf_results(mf)
  File
"build/bdist.darwin-7.9.0-Power_Macintosh/egg/modulegra
ph/find_modules.py", line 75, in parse_mf_results
RuntimeError: Don't know how to handle
''/Users/tim/Desktop/source/libtpclient-py/client''
>
/Users/tim/Desktop/source/tpclient-pywx/build/bdist.darwin-7
.9.0-Power_Macintosh/egg/modulegraph/find_modules.py(75)pars
e_mf_results()
(Pdb) 


I can't figure out what is causing it. I can seem to fix the
errors by
changing the imports from "from x.y import w" to
"import w".

I'm not able to produce a simple example of what is causing
it.
Googling for results doesn't produce any hits.

All the source code is open source and can be found at
http://darcs.t
housandparsec.net/repos/

If you want to run the code you will need to do the
following,
* darcs
* Python
* wxPython 2.6
* PIL
* Numeric or NumArray

Then

mkdir tp
cd tp
darcs get --partial http
://darcs.thousandparsec.net/repos/scratchpad
darcs get --partial h
ttp://darcs.thousandparsec.net/repos/libtpproto-py
darcs get --partial 
http://darcs.thousandparsec.net/repos/libtpclient-py
darcs get --partial h
ttp://darcs.thousandparsec.net/repos/tpclient-pywx
cd scratchpad
sh setup.sh
cd ..
cd tpclient-pywx
./tpclient-pywx


Does anyone have any ideas on how to fix it?

Thanks for your help.

Tim Ansell

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIGpython.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
Problems bundleing my application with py2app
user name
2006-11-26 18:52:01
On Sun, 2006-11-26 at 02:30 +1030, Tim Ansell wrote:
> Hello,
> 
> I'm currently trying to bundle my wxPython application
with py2app so
> it's easy for MacOS X users to run.
> 
> I keep running into the following error on a few
different modules. 
> 
> Traceback (most recent call last):
>   File
>
"/System/Library/Frameworks/Python.framework/Versions/2
.3/lib/python2.3/site-packages/py2app-0.3.5-py2.3.egg/py2app
/build_app.py", line 548, in _run
>     self.run_normal()
>   File
>
"/System/Library/Frameworks/Python.framework/Versions/2
.3/lib/python2.3/site-packages/py2app-0.3.5-py2.3.egg/py2app
/build_app.py", line 618, in run_normal
>     py_files, extensions =
self.finalize_modulefinder(mf)
>   File
>
"/System/Library/Frameworks/Python.framework/Versions/2
.3/lib/python2.3/site-packages/py2app-0.3.5-py2.3.egg/py2app
/build_app.py", line 589, in finalize_modulefinder
>     py_files, extensions = parse_mf_results(mf)
>   File
>
"build/bdist.darwin-7.9.0-Power_Macintosh/egg/modulegra
ph/find_modules.py", line 75, in parse_mf_results
> RuntimeError: Don't know how to handle
> ''/Users/tim/Desktop/source/libtpclient-py/client''
> >
/Users/tim/Desktop/source/tpclient-pywx/build/bdist.darwin-7
.9.0-Power_Macintosh/egg/modulegraph/find_modules.py(75)pars
e_mf_results()
> (Pdb) 
> 

After many hours moving stuff around I have gotten rid of
these errors.
I'm still not quite sure was causing this in the first
place.

Tim

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIGpython.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )