Erros com o Matplotlib ao criar um executável com o Py2exe (Python)
Eu tenho um problema ao tentar fazer um executável com um aplicativo Python.
Para fazer isso, estou usando o Py2exe com a versão 2.7 do Python.
Minha aplicação tem 3 scripts python -> IHM_monotone_flux_GTC.py que é quem lança uma interface gráfica
e depois 2 outros scripts: -> lectureDonnees.py -> main.py
Para criar um executável eu fiz um arquivo setup.py que certamente está incompleto:
a partir de distutils.core import setup import py2exe
setup (windows = ['IHM_monotone_flux_gtc.py'])
Infelizmente, não funciona e recebi esta mensagem de erro:
Traceback (most recent call last):
File "IHM_monotone_flux_gtc.py", line 16, in <module>
File "main.pyc", line 22, in <module>
File "matplotlib\__init__.pyc", line 838, in <module>
File "matplotlib\__init__.pyc", line 749, in rc_params
File "matplotlib\__init__.pyc", line 664, in matplotlib_fname
File "matplotlib\__init__.pyc", line 292, in wrapper
File "matplotlib\__init__.pyc", line 585, in _get_data_path_cached
File "matplotlib\__init__.pyc", line 581, in _get_data_path
RuntimeError: Could not find the matplotlib data files
Obrigado por qualquer ajuda. (Estou trabalhando com o Windows XP)
Cédric.