packing an app with cx_Freeze

Hi,

Yesterday I tried packing an application of mine which makes use of wxPython,
scipy, and matplotlib with cx_Freeze.

The Traceback I get after running FreezePython --install-dir SPlot_dir
SPlot.py and starting the application is:

Traceback (most recent call last):
  File "/home/cm/bin/initscripts/Console.py", line 27, in ?
    exec code in m.__dict__
  File "SPlot.py", line 17, in ?
  File "/usr/lib64/python2.4/site-packages/matplotlib/__init__.py", line 720,
in ?
    defaultParams = {
  File "/usr/lib64/python2.4/site-packages/matplotlib/__init__.py", line 273,
in wrapper
    ret = func(*args, **kwargs)
  File "/usr/lib64/python2.4/site-packages/matplotlib/__init__.py", line 360,
in _get_data_path
    raise RuntimeError('Could not find the matplotlib data files')
RuntimeError: Could not find the matplotlib data files

I should mention that the everything was done on one machine (running SuSE
10.0 and python 2.4.1).

Anyone tried packing an application with matplotlib before and has a hint for
me what to change?

TIA
Christian

Check out the py2exe page about matplotlib.

http://starship.python.net/crew/theller/moin.cgi/MatPlotLib

···

On 8/14/06, Christian Meesters <meesters@...624...> wrote:

Hi,

Yesterday I tried packing an application of mine which makes use of wxPython,
scipy, and matplotlib with cx_Freeze.

The Traceback I get after running FreezePython --install-dir SPlot_dir
SPlot.py and starting the application is:

Traceback (most recent call last):
  File "/home/cm/bin/initscripts/Console.py", line 27, in ?
    exec code in m.__dict__
  File "SPlot.py", line 17, in ?
  File "/usr/lib64/python2.4/site-packages/matplotlib/__init__.py", line 720,
in ?
    defaultParams = {
  File "/usr/lib64/python2.4/site-packages/matplotlib/__init__.py", line 273,
in wrapper
    ret = func(*args, **kwargs)
  File "/usr/lib64/python2.4/site-packages/matplotlib/__init__.py", line 360,
in _get_data_path
    raise RuntimeError('Could not find the matplotlib data files')
RuntimeError: Could not find the matplotlib data files

I should mention that the everything was done on one machine (running SuSE
10.0 and python 2.4.1).

Anyone tried packing an application with matplotlib before and has a hint for
me what to change?

TIA
Christian

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users