[Qgis-user] Couldn't load plugin contour due an error when calling its classFactory() method

William Kyngesburye woklist at kyngchaos.com
Tue Sep 24 12:27:02 PDT 2013


My matplotlib package has a last-minute manual install for pyparsing explained in the readme.  When I have time I'll try to automate it.

On Sep 24, 2013, at 1:11 PM, Chris Crook wrote:

> HI Paulo
> 
> I'm not familiar with the MacBook and configuring QGIS on it, but the problem is that the contour plugin uses a python module called matplotlib, and that in turn uses a python module called pyparsing.  The error message is saying that the pyparsing module is missing.
> Unfortunately I cannot help further than that.  The pyparsing module is available at http://pyparsing.wikispaces.com/Download+and+Installation
> but how you install it depends on how your python installation is set up.
> 
> When you have fixed this there may be another couple of python dependencies you may need to install, listed at
> http://matplotlib.org/users/installing.html
> 
> Good luck
> Chris
> ________________________________________
> From: Paulo Gali Macedo [pgmacedo at fc.up.pt]
> Sent: 25 September 2013 03:28
> To: QGIS User
> Subject: [Qgis-user] Couldn't load plugin contour due an error when calling     its classFactory() method
> 
> Hi Everybody,
> 
> I ' m a newcomer to QGIS and I'm finding so problems in running some of its plugins.
> 
> I have Qgis 1.8.0 - Lisboa, running on a MacBook Pro with OSX 10.6.8 (Snow Leopard).
> 
> On trying to load the "Contour" Plugin, I get the message below. Can anybody help me ?
> 
> On waiting for your answers, I thank you all in advance.
> 
> All the Best.
> 
> Paulo Gali
> 
> 
> Couldn't load plugin contour due an error when calling its classFactory() method
> 
> Traceback (most recent call last):
>  File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 164, in startPlugin
>    plugins[packageName] = package.classFactory(iface)
>  File "/Users/pgmacedo/.qgis//python/plugins/contour/__init__.py", line 73, in classFactory
>    from contour import Contour
>  File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 309, in _import
>    mod = _builtin_import(name, globals, locals, fromlist, level)
>  File "/Users/pgmacedo/.qgis//python/plugins/contour/contour.py", line 38, in
>    import matplotlib as mpl
>  File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 309, in _import
>    mod = _builtin_import(name, globals, locals, fromlist, level)
>  File "/Library/Python/2.6/site-packages/matplotlib/__init__.py", line 115, in
>    raise ImportError("matplotlib requires pyparsing")
> ImportError: matplotlib requires pyparsing

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Oh, look, I seem to have fallen down a deep, dark hole.  Now what does that remind me of?  Ah, yes - life."

- Marvin





More information about the Qgis-user mailing list