From: Emmanuel Favre-N. <man...@gm...> - 2007-02-02 20:46:11
|
I tried directly the setup.py, it does not work with wxcursor_demo.py My first try was=A0 modifying the following in the setup.py : #mpldata =3D glob.glob(r'C:\Python24\share\matplotlib\*') mpldata=3D[] for di in allsubdirs(r'C:\Python24\Lib\site-packages\matplotlib'): =A0=A0=A0 ti=3Ddi+'*.py*' =A0=A0=A0 mpldata=3Dmpldata+glob.glob(ti) #mpldata.append(r'C:\Python24\share\matplotlib\.matplotlibrc') mpldata.append (r'C: \Python24\Lib\site-packages\matplotlib\mpl-data\matplotlibrc') The exe fails at importation line : from matplotlib.numerix import arange, sin, pi Here is the error log : Traceback (most recent call last):=20 =A0 File "wxcursor_demo.py", line 7, in ? =A0 File "zipextimporter.pyo", line 82, in load_module =A0 File "matplotlib\__init__.pyo", line 720, in ? =A0 File "matplotlib\__init__.pyo", line 273, in wrapper=20 =A0 File "matplotlib\__init__.pyo", line 360, in _get_data_path RuntimeError: Could not find the matplotlib data files So I guess I did quite wrong! I have too look further... BTW, I'm using enthon-python2.4-1.0.0.exe |