clusterpy / clusterpy_qgis_plugin

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

Python version conflict? #31

Closed wboykinm closed 10 years ago

wboykinm commented 10 years ago

I admit that I get this error far more than I'd like to (from other plugins), but is there an easy fix for this error I get when I load the plugin?

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/wboykinm/.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/wboykinm/.qgis2/python/plugins/clusterpy-qgis-plugin-master/clusterpy_light.py", line 26, in 
    from clusterpy_lightdialog import maxpDialog, aboutDialog
  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/wboykinm/.qgis2/python/plugins/clusterpy-qgis-plugin-master/clusterpy_lightdialog.py", line 26, in 
    from uifiles.ui_maxp import Ui_maxp_ui
  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 ui_maxp

Python version:
2.7.5 (default, Aug 25 2013, 00:04:04) 
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)]

QGIS version:
2.2.0-Valmiera Valmiera, 

Python path:     ['/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing', '/Applications/QGIS.app/Contents/MacOS/../Resources/python', u'/Users/wboykinm/.qgis2/python', u'/Users/wboykinm/.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/pip-1.5-py2.7.egg', '/Library/Python/2.7/site-packages/s3funnel-0.6.5-py2.7.egg', '/Library/Python/2.7/site-packages/workerpool-0.9.2-py2.7.egg', '/Library/Python/2.7/site-packages/boto-2.22.1-py2.7.egg', '/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', '/Users/wboykinm/.qgis2/python/plugins/mmqgis/forms', '/Applications/QGIS.app/Contents/Resources/python/plugins/fTools/tools']
sergiobuj commented 10 years ago

Hi, did you clone the repo? or downloaded the zip file from the release preview? releases

I think this error is because ui_maxp.py is a file generated from ui files, and currently we don't have any generated file on the repository. But they should be on the zip file.

Let me know how it goes.

wboykinm commented 10 years ago

I downloaded the zip, mostly because I couldn't locate the plugin in the QGIS plugins manager. It definitely contains a "uifiles" directory.

sergiobuj commented 10 years ago

Yes, sorry about that, I should change the README. The process was supposed to be faster (on our side) to upload the plugin, it's not yet there.

Meanwhile you ca get it from the release page. The zip file named clusterpy_light.zip should load correctly.

wboykinm commented 10 years ago

That did it. Thanks!