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

Union error: "global name 'vproviderA' is not defined #23506

Closed
qgib opened this issue Sep 19, 2016 · 7 comments
Closed

Union error: "global name 'vproviderA' is not defined #23506

qgib opened this issue Sep 19, 2016 · 7 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Sep 19, 2016

Author Name: Hugo Nicolau Barbosa de Gusmão (Hugo Nicolau Barbosa de Gusmão)
Original Redmine Issue: 15582
Affected QGIS version: 2.16.2
Redmine category:unknown


Hi everyone!

In Qgis 2.16.2-2 and 2.16.2-3 the " Join" tool does not work . When trying to join two shapefiles , an error occurs :
"global name 'vproviderA' is not defined. See log for more details" .

Log:
File "C:/PROGRA1/QGIS21.16/apps/qgis/./python/plugins\processing\algs\qgis\Union.py", line 78, in processAlgorithm
geomType, vproviderA.crs())
NameError: global name 'vproviderA' is not defined.


  • erro.PNG (Hugo Nicolau Barbosa de Gusmão)
@qgib
Copy link
Contributor Author

qgib commented Sep 19, 2016

Author Name: Frank Sokolic (Frank Sokolic)


I get the same error when using the Union tool on QGIS Master with Ubuntu 16.04. The error occurs when accessing the tool via the menu (Vector > Geoprocessing Tools > Union) or via the Processing toolbox (QGIS Algorithms > Vector overlay tools > Union).

@qgib
Copy link
Contributor Author

qgib commented Sep 22, 2016

Author Name: Victor Ducrot (Victor Ducrot)


Same error and manjaro linux (based on arch).

@qgib
Copy link
Contributor Author

qgib commented Sep 22, 2016

Author Name: Victor Ducrot (Victor Ducrot)


vproviderA has to be replaced by vlayerA line 78 of /usr/share/qgis/python/plugins/processing/algs/qgis/Union.py in Linux.
The modification seems to have been done already on qgis-master on github: https://github.com/qgis/QGIS/blob/master/python/plugins/processing/algs/qgis/Union.py
You can also presumably just replace your Union.py file by this one.

@qgib
Copy link
Contributor Author

qgib commented Sep 26, 2016

Author Name: Ervin Wirth (Ervin Wirth)


The same error on Windows 7 64 bit with QGIS 2.16

@qgib
Copy link
Contributor Author

qgib commented Oct 3, 2016

Author Name: Eivind Olsen (Eivind Olsen)


Same error on Windows 7 64 bit with QGIS 2.16.3, both within QGIS and from a standalone script. Editing "C:\OSGeo4W64\apps\qgis\python\plugins\processing\algs\qgis\Union.py" as suggested in #4 above does the trick for the Union tool from within QGIS. It seems to fix the problem in the standalone script, but now produces new errors:

ERROR 1: Attempt to write non-polygon (MULTILINESTRING) geometry to POLYGON type
shapefile.
ERROR 1: Attempt to write non-polygon (POINT) geometry to POLYGON type shapefile

@qgib
Copy link
Contributor Author

qgib commented Dec 28, 2016

Author Name: Alexander Bruy (@alexbruy)


Seems already fixed. Please reopen if necessary.


  • status_id was changed from Open to Closed
  • resolution was changed from to fixed/implemented

@qgib
Copy link
Contributor Author

qgib commented Sep 22, 2017

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


  • category_id was configured as Unknown

@qgib qgib added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label May 25, 2019
@qgib qgib added this to the Version 2.16 milestone May 25, 2019
@qgib qgib closed this as completed May 25, 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!
Projects
None yet
Development

No branches or pull requests

1 participant