Hi,

I'm playing with the matplotlib example and it looks 
like the hook for matplotlib data is not working.
if I run

   python setup.py build_exe

in the samples/matplotlib directory then matplotlib
data files are not copied into the build directory
and running test_matplotlib produces an error:

RuntimeError: Could not find the matplotlib data files

If I try to include the data files manually i.e. change
setup.py to

import cx_Freeze
import sys
import matplotlib

base = None
if sys.platform == "win32":
    base = "Win32GUI"

executables = [
        cx_Freeze.Executable("test_matplotlib.py", base = base)
]

cx_Freeze.setup(
        name = "test_matplotlib",
        version = "0.1",
        description = "Sample matplotlib script",
        options = {"build_exe": {"include_files": [(matplotlib.get_data_path(),\
       'mpl-data')]}},
        executables = executables)

then when running the test_matplotlib  I get another
error:

./test_matplotlib
Traceback (most recent call last):
  File "/usr/lib64/python2.5/site-packages/cx_Freeze/initscripts/Console.py",\
 line 28, in <module>
    exec code in m.__dict__
  File "test_matplotlib.py", line 7, in <module>
AttributeError: 'module' object has no attribute 'build'

Any help would be appreciated.

Regards,
Mikhail


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
cx-freeze-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to