Fehler mit Matplotlib beim Erstellen einer ausführbaren Datei mit Py2exe (Python)

Ich habe ein Problem beim Versuch, eine ausführbare Datei mit einer Python-Anwendung zu erstellen.

Dazu verwende ich Py2exe mit der 2.7-Version von Python.

Meine Anwendung hat 3 Python-Skripte -> IHM_monotone_flux_GTC.py, die eine grafische Oberfläche starten

und dann 2 andere Skripte: -> lectureDonnees.py -> main.py

Um eine ausführbare Datei zu erstellen, habe ich eine setup.py-Datei erstellt, die sicherlich unvollständig ist:

von distutils.core import setup import py2exe

setup (windows = ['IHM_monotone_flux_gtc.py'])

Leider funktioniert es nicht und ich bekomme folgende Fehlermeldung:

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

Danke für jede Hilfe. (Ich arbeite mit Windows XP)

Cédric.

Antworten auf die Frage(1)

Ihre Antwort auf die Frage