Hallo,
ich wollte ein kleines Programm mit Python schreiben und
Matplotlib benutzen.
Installiert habe ich die aktuellen Versionen python Version
2.75, python3 Version 3.3 und matplotlib 1.3.1 aus dem
Repository devel:languages:python bzw devel:languages:python3.
Bei meinen Versuchen wurde immer folgende Zeile angemeckert:
from matplotlib.backends.backend_gtkagg import
FigureCanvasGTKAgg as FigureCanvas
Im Internet habe ich dann den Hinweis gefunden, dass es in
der matplotlib Probleme mit den Unterstrichen gibt. Abhilfe
: Sourcen der matplotlib herunterladen mit python setup.py
build bzw. install neu installieren.
Das hat mit Python auch funktioniert und mein Test-Programm
läuft.
Mit Python3 habe ich aber Probleme.
Der Versuch mit python3 setup.py build ergibt, das gtkagg,
gtk3agg und gtk nicht unterstützt werden (requires pygtk).
Installiert habe ich
python-gtk, python-gtk-devel in Version 2.24 und
python-matplotlib-gtk2, python-matplotlib-gtk3 in Version 1.3.1
python3-matplotlib-gtk2, python3-matplotlib-gtk3 in Version
1.3.1
python-pygtkhelpers in Version 0.4.2
Vermutlich fehlt mir so etwas wie python3-gtk,
python3-gtk-devel, das konnte ich aber in den Repositories
nicht finden.
Gibt es eine Lösung die matplotlib auch mit python3 und gtk
nutzen zu können?
Hier die Ausgabe von build:
----------------------------------------------------------------------------------------------------------
BUILDING MATPLOTLIB
matplotlib: yes [1.3.1]
python: yes [3.3.2 (default, Jun 13 2013,
16:05:31) [GCC]]
platform: yes [linux]
REQUIRED DEPENDENCIES AND EXTENSIONS
numpy: yes [version 1.8.0]
dateutil: yes [using dateutil version 2.1]
tornado: yes [using tornado version 3.1.1]
pyparsing: yes [using pyparsing version 2.0.1]
pycxx: yes [Official versions of PyCXX are
not compatible
with Python 3.x. Using local copy]
libagg: yes [pkg-config information for
'libagg' could not
be found. Using local copy.]
freetype: yes [version 16.2.10]
png: yes [version 1.6.6]
OPTIONAL SUBPACKAGES
sample_data: yes [installing]
toolkits: yes [installing]
tests: yes [using nose version 1.3.0]
OPTIONAL BACKEND EXTENSIONS
macosx: no [Mac OS-X only]
qt4agg: yes [installing, Qt: 4.8.5, PyQt4:
4.10.3]
gtk3agg: no [gtk3agg backend does not work
on Python 3]
gtk3cairo: yes [installing, version 3.4.10]
gtkagg: no [Requires pygtk]
tkagg: yes [installing, version version
not identified]
wxagg: no [requires wxPython]
gtk: no [Requires pygtk]
agg: yes [installing]
cairo: yes [installing, version 1.10.0]
windowing: no [Microsoft Windows only]
OPTIONAL LATEX DEPENDENCIES
dvipng: yes [version 1.14]
ghostscript: yes [version 9.10]
latex: yes [version 3.1415926]
pdftops: yes [version 0.20.0]
------------------------------------------------------------------------------------------------
Mit freundlichem Gruß
Karl Brandt
--
Um die Liste abzubestellen, schicken Sie eine Mail an:
opensuse-de+unsubscribe(a)opensuse.org
Um den Listen Administrator zu erreichen, schicken
Sie eine Mail an: opensuse-de+owner(a)opensuse.org