clusterpy / clusterpy_qgis_plugin

Clusterpy as a plugin for QGIS
3 stars 3 forks source link

can't load plugin #33

Closed mattbasinger closed 10 years ago

mattbasinger commented 10 years ago

I am using Mac QGIS 2.2 on Mac OSX 10.8.5.

I unzipped the clusterpy plugin folder to the plugin location per the instructions, but when I started QGIS I got the following message:

Couldn't load plugin clusterpy-qgis-plugin-master 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 204, in startPlugin plugins[packageName] = package.classFactory(iface) File "/Users/mattbasinger/.qgis2/python/plugins/clusterpy-qgis-plugin-master/init.py", line 26, in classFactory from clusterpy_light import clusterpy_light File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 453, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/mattbasinger/.qgis2/python/plugins/clusterpy-qgis-plugin-master/clusterpy_light.py", line 25, in import resources_rc File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 453, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ImportError: No module named resources_rc

Python version: 2.7.2 (default, Oct 11 2012, 20:14:37) [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)]

QGIS version: 2.2.0-Valmiera Valmiera,

Python path: ['/Applications/QGIS.app/Contents/MacOS/../Resources/python', u'/Users/mattbasinger/.qgis2/python', u'/Users/mattbasinger/.qgis2/python/plugins', '/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins', '/Library/Frameworks/SQLite3.framework/Versions/B/Python/2.7', '/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7', '/Library/Python/2.7/site-packages/numpy-override', '/Library/Python/2.7/site-packages/matplotlib-override', '/Library/Frameworks/GDAL.framework/Versions/1.10/Python/2.7/site-packages', '/Library/Python/2.7/site-packages/PySAL-1.6.0-py2.7.egg', '/Library/Frameworks/cairo.framework/Versions/1/Python/2.7', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC', '/Library/Python/2.7/site-packages', '/Library/Python/2.7/site-packages/PIL']

sergiobuj commented 10 years ago

Hi, Try again with the plugin from the releases page. The zip file named clusterpy_light.zip should load correctly.

Let me know.

mattbasinger commented 10 years ago

Thanks!

It seemed to load this time… but when I brought up the Max-p Algorithm menu to start to use it, I got the below:

An error has occured while executing Python code:

Traceback (most recent call last): File "/Users/mattbasinger/.qgis2/python/plugins/clusterpy_light/clusterpy_lightdialog.py", line 91, in updateThresholdLimits maximum += val TypeError: unsupported operand type(s) for +=: 'int' and 'QPyNullVariant'

Python version: 2.7.2 (default, Oct 11 2012, 20:14:37)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)]

Maybe it still works though? I'll try and let you know.

Matt

Matt Basinger, EngScD | Environmental Engineer Founder | Director ae | Advancing Engineering Indonesia m.basinger@aeconsults.com (mailto:m.basinger@aeconsults.com)

Please see AE email disclaimer here (http://aeconsults.com/disclaimer). Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

On Friday, June 6, 2014 at 8:46 AM, Sergio Botero wrote:

Hi, Try again with the plugin from the releases page (https://github.com/clusterpy/clusterpy-qgis-plugin/releases). The zip file named clusterpy_light.zip should load correctly.
Let me know.

— Reply to this email directly or view it on GitHub (https://github.com/clusterpy/clusterpy-qgis-plugin/issues/33#issuecomment-45288931).