Bug report #7088
Polygonizer plug-in not working in Master
Status: | Rejected | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | Python plugins | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Ubuntu | Easy fix?: | No |
Pull Request or Patch supplied: | No | Resolution: | invalid |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 16170 |
Description
Using nightly Master, Ubuntu 12.04 (amd64).
Attempting to use the Polygonizer fails with the Python errors listed below.
ERRORS======An error has occured while executing Python code:
Traceback (most recent call last):
File "/home/nick/.qgis//python/plugins/Polygonizer/PolygonizerDialog.py", line 103, in threadFinished
msg = QMessageBox.question(self, 'Polygonizer', 'Polygonization finished in %03.2f seconds. \
%d polygons were crested. \
Load created layer?' % ((self.t2 - self.t1), polyCount), QMessageBox.Yes | QMessageBox.No, QMessageBox.Yes)
NameError: global name 'polyCount' is not defined
Python version:
2.7.3 (default, Aug 1 2012, 05:25:23)
[GCC 4.6.3]
QGIS version:
1.9.0-Master Master, exported
Python path: ['/usr/share/qgis/python/plugins/sextante', '/usr/share/qgis/python', '/home/nick/.qgis//python', '/home/nick/.qgis//python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PIL', '/usr/lib/pymodules/python2.7/gtk-2.0', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', '/usr/lib/python2.7/dist-packages/ubuntuone-client', '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel', '/usr/lib/python2.7/dist-packages/ubuntuone-couch', '/usr/lib/python2.7/dist-packages/ubuntuone-installer', '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol', '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode', '/usr/share/qgis/python/plugins/fTools/tools']
History
#1 Updated by Jürgen Fischer almost 12 years ago
- Resolution set to invalid
- Status changed from Open to Rejected
please notify the plugin's author.
#2 Updated by Patrick Dunford over 11 years ago
Couldn't load plugin Polygonizer due an error when calling its classFactory() method
Traceback (most recent call last):
File "C:/OSGeo4W/apps/qgis-dev/./python\\qgis\\utils.py", line 203, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:/Users/0/.qgis//python/plugins\\Polygonizer\\__init__.py", line 41, in classFactory
from polygonizer import Polygonizer
File "C:/OSGeo4W/apps/qgis-dev/./python\\qgis\\utils.py", line 452, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/Users/0/.qgis//python/plugins\\Polygonizer\\polygonizer.py", line 28, in
from PolygonizerDialog import PolygonizerDialog, getLayersNames
File "C:/OSGeo4W/apps/qgis-dev/./python\\qgis\\utils.py", line 452, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/Users/0/.qgis//python/plugins\\Polygonizer\\PolygonizerDialog.py", line 31, in
from shapely.ops import polygonize
File "C:/OSGeo4W/apps/qgis-dev/./python\\qgis\\utils.py", line 452, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: No module named shapely.ops
Python version:
2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]
QGIS version:
1.9.0-Master Master, 0c1faa5
Python path: ['C:/OSGeo4W/apps/qgis-dev/./python', 'C:/Users/0/.qgis//python', 'C:/Users/0/.qgis//python/plugins', 'C:/OSGeo4W/apps/qgis-dev/./python/plugins', 'C:\\\\OSGeo4W\\\\bin\\\\python27.zip', 'C:\\\\OSGeo4W\\\\apps\\\\Python27\\\\DLLs', 'C:\\\\OSGeo4W\\\\apps\\\\Python27\\\\lib', 'C:\\\\OSGeo4W\\\\apps\\\\Python27\\\\lib\\\\plat-win', 'C:\\\\OSGeo4W\\\\apps\\\\Python27\\\\lib\\\\lib-tk', 'C:\\\\OSGeo4W\\\\bin', 'C:\\\\OSGeo4W\\\\apps\\\\Python27', 'C:\\\\OSGeo4W\\\\apps\\\\Python27\\\\lib\\\\site-packages', 'C:\\\\OSGeo4W\\\\apps\\\\Python27\\\\lib\\\\site-packages\\\\PIL', 'C:\\\\OSGeo4W\\\\apps\\\\Python27\\\\lib\\\\site-packages\\\\win32', 'C:\\\\OSGeo4W\\\\apps\\\\Python27\\\\lib\\\\site-packages\\\\win32\\\\lib', 'C:\\\\OSGeo4W\\\\apps\\\\Python27\\\\lib\\\\site-packages\\\\Pythonwin', 'C:\\\\OSGeo4W\\\\apps\\\\Python27\\\\lib\\\\site-packages\\\\wx-2.8-msw-unicode']
#3 Updated by Nick Hopton over 11 years ago
The developer of the Polygonizer plug-in is Piotr Pociask. He is aware of the problem and has produced a version that will work with Master, which he hopes to add to the repository soon.