Bug report #8162
QGIS master error matplotlib
Status: | Rejected | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | Python plugins | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Windows | Easy fix?: | No |
Pull Request or Patch supplied: | No | Resolution: | upstream |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 16986 |
Description
Hi everybody,
I have this error with QGIS master weekly 1.9.0-25.
From the Python console run:
from matplotlib.backends.backend_qt4agg import *
Traceback (most recent call last): File "<input>", line 1, in <module> File "C:/Program Files (x86)/QGIS Weekly/apps/qgis-dev/./python\\qgis\\utils.py", line 453, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:\\Program Files (x86)\\QGIS Weekly\\apps\\Python27\\lib\\site-packages\\matplotlib\\backends\\backend_qt4agg.py", line 12, in <module> from backend_qt4 import QtCore, QtGui, FigureManagerQT, FigureCanvasQT,\\ File "C:/Program Files (x86)/QGIS Weekly/apps/qgis-dev/./python\\qgis\\utils.py", line 453, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:\\Program Files (x86)\\QGIS Weekly\\apps\\Python27\\lib\\site-packages\\matplotlib\\backends\\backend_qt4.py", line 18, in <module> import matplotlib.backends.qt4_editor.figureoptions as figureoptions File "C:/Program Files (x86)/QGIS Weekly/apps/qgis-dev/./python\\qgis\\utils.py", line 453, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:\\Program Files (x86)\\QGIS Weekly\\apps\\Python27\\lib\\site-packages\\matplotlib\\backends\\qt4_editor\\figureoptions.py", line 11, in <module> import matplotlib.backends.qt4_editor.formlayout as formlayout File "C:/Program Files (x86)/QGIS Weekly/apps/qgis-dev/./python\\qgis\\utils.py", line 453, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:\\Program Files (x86)\\QGIS Weekly\\apps\\Python27\\lib\\site-packages\\matplotlib\\backends\\qt4_editor\\formlayout.py", line 59, in <module> from PyQt4.QtCore import (Qt, SIGNAL, SLOT, QSize, QString, ImportError: cannot import name QString
I think it is related to the new SIP API update.
Cheers!
History
#1 Updated by Alexander Bruy over 11 years ago
- Status changed from Open to Feedback
Please update your installation with latest matplotlib package (1.2.1) available in OSGeo4W.
BTW, this is not QGIS issue, but OSGeo4W one
#2 Updated by Alexander Bruy over 11 years ago
- Resolution set to upstream
- Status changed from Feedback to Rejected
#3 Updated by Luca Congedo over 11 years ago
Thank you. This solved the issue.
Probably matplotlib should be updated also in the weekly package (downloaded from http://qgis.org/downloads/weekly/).
Cheers!
#4 Updated by Jürgen Fischer over 11 years ago
Luca Congedo wrote:
Thank you. This solved the issue.
Probably matplotlib should be updated also in the weekly package (downloaded from http://qgis.org/downloads/weekly/).
Will happen automatically next week...
#5 Updated by Luca Congedo over 11 years ago
Jürgen Fischer wrote:
Will happen automatically next week...
Perfect. Thank you very much.