Hallo,
ich habe gestern SIP heruntergeladen um damit wrapper programmieren zu können. Ich wollte ein python programm wie gewohnt über die Konsole
ausführen mit
pythen file.py
Nun können anscheinend die Module nicht mehr importierte werden, dabei bin ich gestern die Anweisung für die Installation von SIP Schritt für Schriit:
lucacerone.net/2013/08/installing-pyqt4-and-sip-in-a-virtual-environment-ubuntu-1204/#.Uyx-dGd_phF/ gefolgt, die ich
unter der AUR-Seite:
/www.archlinux.org/packages/extra/x86_64/python-sip/ herunter geladen habe.
Als ich dann aber das Python Skript mit Modulen (import) ausführen wollte, erhielt ich Fehlermeldungen:
[vain@chinchi2 python_programme]$ python test.py
Traceback (most recent call last):
File "test.py", line 25, in <module>
from pylab import plotfile
File "/usr/lib/python3.3/site-packages/pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "/usr/lib/python3.3/site-packages/matplotlib/pylab.py", line 269, in <module>
from matplotlib.pyplot import *
File "/usr/lib/python3.3/site-packages/matplotlib/pyplot.py", line 98, in <module>
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "/usr/lib/python3.3/site-packages/matplotlib/backends/__init__.py", line 28, in pylab_setup
globals(),locals(),[backend_name],0)
File "/usr/lib/python3.3/site-packages/matplotlib/backends/backend_qt4agg.py", line 13, in <module>
from .backend_qt4 import QtCore, QtGui, FigureManagerQT, FigureCanvasQT,\
File "/usr/lib/python3.3/site-packages/matplotlib/backends/backend_qt4.py", line 21, in <module>
import matplotlib.backends.qt4_editor.figureoptions as figureoptions
File "/usr/lib/python3.3/site-packages/matplotlib/backends/qt4_editor/figureoptions.py", line 13, in <module>
import matplotlib.backends.qt4_editor.formlayout as formlayout
File "/usr/lib/python3.3/site-packages/matplotlib/backends/qt4_editor/formlayout.py", line 51, in <module>
from matplotlib.backends.qt4_compat import QtGui,QtCore
File "/usr/lib/python3.3/site-packages/matplotlib/backends/qt4_compat.py", line 56, in <module>
from PyQt4 import QtCore, QtGui
RuntimeError: the sip module implements API v11.0 but the PyQt4.QtCore module requires API v10.1
Ich weiß nicht, was ich jetzt machen soll,
kann mir vielleicht jemand weiter helfen?
Ach ja, ich habe auch noch das gecheckt:
ImportError: No module named 'PyQt4.Qsci'
Ich habe auch das gemacht:
pacman -Sy python-qscintilla-common
,aber immer noch kein PyQt4.Qsci. Ich habe Python 3 installiert und würde es gerne auch behalten, gibt es einen Weg?
Für jede Hilfe wäre ich dankbar,
Gruß chinchi