Hello World,
I'm using py2exe to create an executable on windows .
There is a setup.py file that allows me to create this executable under eclipse.
I have a problem with basemap.
Probably, the app needs data basemap directory but I don't know where to put it.
Thanks for your help.
Yagua
The contents of the log file is as follows:
Traceback (most recent call last)
File "traitement_points.py", line 40, in <module>
File "mpl_toolkits\basemap\__init__.pyc", line 774, in __init__
File "mpl_toolkits\basemap\__init__.pyc", line 848, in _readboundarydata
IOError: Unable to open boundary dataset file. Only the 'crude', 'low',
'intermediate' and 'high' resolution datasets are installed by default.
If you are requesting a 'full' resolution dataset, you may need to
download and install those files separately
(see the basemap README for details).
The contents of the setup file is :
from distutils.core import setup
import py2exe
import glob
opts = {
'py2exe': { "includes" : ["sip", "PyQt4", "matplotlib.backends",
"matplotlib.backends.backend_qt4agg",
"matplotlib.figure","pylab", "numpy",
"matplotlib.numerix.fft",
"matplotlib.numerix.linear_algebra",
"matplotlib.numerix.random_array",
"matplotlib.backends.backend_tkagg"],
'excludes': ['_gtkagg', '_tkagg', '_agg2', '_cairo',
'_cocoaagg',
'_fltkagg', '_gtk', '_gtkcairo', ],
'dll_excludes': ['libgdk-win32-2.0-0.dll',
'libgobject-2.0-0.dll']
}
}
data_files = [(r'mpl-data',
glob.glob(r'C:\Python25\Lib\site-packages\matplotlib\mpl-data\*.*')),
(r'mpl-data',
[r'C:\Python25\Lib\site-packages\matplotlib\mpl-data\matplotlibrc']),
(r'mpl-data\images',glob.glob(r'C:\Python25\Lib\site-packages\matplotlib\mpl-data\images\*.*')),
(r'mpl-data\fonts',glob.glob(r'C:\Python25\Lib\site-packages\matplotlib\mpl-data\fonts\*.*'))]
setup(windows=[{"script" : "traitement_points.py", "icon_resources":
[(1, "lambda.ico")]}],
description="test py2exe.",
version = "1.0",
options=opts, data_files=data_files)
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users