Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polygonizer plug-in not working in Master #16170

Closed
qgib opened this issue Feb 2, 2013 · 3 comments
Closed

Polygonizer plug-in not working in Master #16170

qgib opened this issue Feb 2, 2013 · 3 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins

Comments

@qgib
Copy link
Contributor

qgib commented Feb 2, 2013

Author Name: Nick Hopton (Nick Hopton)
Original Redmine Issue: 7088
Affected QGIS version: master
Redmine category:python_plugins


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']

@qgib
Copy link
Contributor Author

qgib commented Feb 2, 2013

Author Name: Jürgen Fischer (@jef-n)


please notify the plugin's author.


  • resolution was changed from to invalid
  • status_id was changed from Open to Rejected

@qgib
Copy link
Contributor Author

qgib commented Mar 10, 2013

Author Name: Patrick Dunford (@enzedrailmaps)


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']

@qgib
Copy link
Contributor Author

qgib commented Mar 11, 2013

Author Name: Nick Hopton (Nick Hopton)


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.

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins labels May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins
Projects
None yet
Development

No branches or pull requests

1 participant