Closed DelazJ closed 9 years ago
Hi
This looks like a problem with the matplotlib installation rather than the the contour plugin. matplotlib is the python library that the contour plugin uses.
So the contour plugin includes the line (below)
import matplotlib.pyplot as plt
and that is what is failing. Form the following error messages it looks like this is to do with a module rrule. So if this is working on 2.4, what I don't understand is how you could be get the error running 2.4. It may be that the customised import process in qgis/utils.py has been changed in 2.5 and is creating the issue.
You could test this by type "import matplotlib.pyplot" in the python console in QGIS, and from a python intepreter at the OSGEO4W command prompt.
Cheers Chris
From: DelazJ [notifications@github.com] Sent: 31 July 2014 21:18 To: ccrook/QGIS-Contour-Plugin Subject: [QGIS-Contour-Plugin] can't load plugin 1.1.0 on master 2.5 (#9)
when executing QGIs master with Contour plugin enabled, I got an error message relative to a lack of a module named "rrule". All work on QGIS 2.4.
Impossible de charger l'extension contour provoque une erreur lors de l'appel de sa méthode classFactory()
Traceback (most recent call last): File "C:/OSGeo4W/apps/qgis-dev/./python\qgis\utils.py", line 204, in startPlugin plugins[packageName] = package.classFactory(iface) File "C:/Users/harrissou/.qgis2/python/plugins\contourinit.py", line 47, in classFactory from contour import Contour File "C:/OSGeo4W/apps/qgis-dev/./python\qgis\utils.py", line 454, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:/Users/harrissou/.qgis2/python/plugins\contour\contour.py", line 39, in import matplotlib.pyplot as plt File "C:/OSGeo4W/apps/qgis-dev/./python\qgis\utils.py", line 454, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:\OSGeo4W\apps\Python27\lib\site-packages\matplotlib\pyplot.py", line 26, in from matplotlib.figure import Figure, figaspect File "C:/OSGeo4W/apps/qgis-dev/./python\qgis\utils.py", line 454, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:\OSGeo4W\apps\Python27\lib\site-packages\matplotlib\figure.py", line 36, in from matplotlib.axes import Axes, SubplotBase, subplot_class_factory File "C:/OSGeo4W/apps/qgis-dev/./python\qgis\utils.py", line 454, in _import mod = _builtinimport(name, globals, locals, fromlist, level) File "C:\OSGeo4W\apps\Python27\lib\site-packages\matplotlib\axes.py", line 19, in import matplotlib.dates as # File "C:/OSGeo4W/apps/qgis-dev/./python\qgis\utils.py", line 454, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:\OSGeo4W\apps\Python27\lib\site-packages\matplotlib\dates.py", line 122, in from dateutil.rrule import rrule, MO, TU, WE, TH, FR, SA, SU, YEARLY, \ File "C:/OSGeo4W/apps/qgis-dev/./python\qgis\utils.py", line 454, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ImportError: No module named rrule
Version de Python : 2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]
Version de QGIS : 2.5.0-Master Master, d0e9d8d
— Reply to this email directly or view it on GitHubhttps://github.com/ccrook/QGIS-Contour-Plugin/issues/9.
This message contains information, which may be in confidence and may be subject to legal privilege. If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify us immediately (Phone 0800 665 463 or info@linz.govt.nz) and destroy the original message. LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ. Thank You.
Hi
Just wondering if you are still having this issue with 2.5?
Cheers Chris
Hi, I just reinstall Contour plugin and no more bug. all is ok.
Thanks Harrissou
Great - thanks
when executing QGIs master with Contour plugin enabled, I got an error message relative to a lack of a module named "rrule". All work on QGIS 2.4.
Impossible de charger l'extension contour provoque une erreur lors de l'appel de sa méthode classFactory()
Traceback (most recent call last): File "C:/OSGeo4W/apps/qgis-dev/./python\qgis\utils.py", line 204, in startPlugin plugins[packageName] = package.classFactory(iface) File "C:/Users/harrissou/.qgis2/python/plugins\contourinit.py", line 47, in classFactory from contour import Contour File "C:/OSGeo4W/apps/qgis-dev/./python\qgis\utils.py", line 454, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:/Users/harrissou/.qgis2/python/plugins\contour\contour.py", line 39, in import matplotlib.pyplot as plt File "C:/OSGeo4W/apps/qgis-dev/./python\qgis\utils.py", line 454, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:\OSGeo4W\apps\Python27\lib\site-packages\matplotlib\pyplot.py", line 26, in from matplotlib.figure import Figure, figaspect File "C:/OSGeo4W/apps/qgis-dev/./python\qgis\utils.py", line 454, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:\OSGeo4W\apps\Python27\lib\site-packages\matplotlib\figure.py", line 36, in from matplotlib.axes import Axes, SubplotBase, subplot_class_factory File "C:/OSGeo4W/apps/qgis-dev/./python\qgis\utils.py", line 454, in _import mod = _builtinimport(name, globals, locals, fromlist, level) File "C:\OSGeo4W\apps\Python27\lib\site-packages\matplotlib\axes.py", line 19, in import matplotlib.dates as # File "C:/OSGeo4W/apps/qgis-dev/./python\qgis\utils.py", line 454, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "C:\OSGeo4W\apps\Python27\lib\site-packages\matplotlib\dates.py", line 122, in from dateutil.rrule import rrule, MO, TU, WE, TH, FR, SA, SU, YEARLY, \ File "C:/OSGeo4W/apps/qgis-dev/./python\qgis\utils.py", line 454, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ImportError: No module named rrule
Version de Python : 2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]
Version de QGIS : 2.5.0-Master Master, d0e9d8d