Hi
I have a project in QGIS that I am trying to publish using GeoServer via the plugin.
When I try and publish a layer I get:
global name 'provider' is not defined Traceback (most recent call last): File "/Users/rful011/.qgis2/python/plugins/opengeo/gui/explorer.py", line 118, in run command(*params) File "/Users/rful011/.qgis2/python/plugins/opengeo/gui/confirm.py", line 18, in publishLayer catalog.publishLayer(layer, workspace, overwrite, name) File "/Users/rful011/.qgis2/python/plugins/opengeo/qgis/catalog.py", line 379, in publishLayer self.upload(layer, workspace, overwrite, title) File "/Users/rful011/.qgis2/python/plugins/opengeo/qgis/catalog.py", line 245, in upload self._publishExisting(layer, workspace, overwrite) File "/Users/rful011/.qgis2/python/plugins/opengeo/qgis/catalog.py", line 171, in _publishExisting uri = QgsDataSourceURI(provider.dataSourceUri()) NameError: global name 'provider' is not defined
I have looked at the plugin code and can not find any references to ‘provider’ before the fateful reference that fails.
Any ideas what is wrong?
Russell
Hi Russell,
I’d suggest this would be better placed on the QGIS mailing list as the error quoted seems to be within the QGIS plugin. Alternately you may want to try the plugin’s author directly given it appears it may be a bug.
Cheers,
Jonathan
This transmission is intended for the named addressee(s) only and may contain confidential, sensitive or personal information and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.
···
On 4 July 2014 19:46, Russell Fulton <russell@anonymised.com> wrote:
Hi
I have a project in QGIS that I am trying to publish using GeoServer via the plugin.
When I try and publish a layer I get:
global name ‘provider’ is not defined Traceback (most recent call last): File “/Users/rful011/.qgis2/python/plugins/opengeo/gui/explorer.py”, line 118, in run command(*params) File “/Users/rful011/.qgis2/python/plugins/opengeo/gui/confirm.py”, line 18, in publishLayer catalog.publishLayer(layer, workspace, overwrite, name) File “/Users/rful011/.qgis2/python/plugins/opengeo/qgis/catalog.py”, line 379, in publishLayer self.upload(layer, workspace, overwrite, title) File “/Users/rful011/.qgis2/python/plugins/opengeo/qgis/catalog.py”, line 245, in upload self._publishExisting(layer, workspace, overwrite) File “/Users/rful011/.qgis2/python/plugins/opengeo/qgis/catalog.py”, line 171, in _publishExisting uri = QgsDataSourceURI(provider.dataSourceUri()) NameError: global name ‘provider’ is not defined
I have looked at the plugin code and can not find any references to ‘provider’ before the fateful reference that fails.
Any ideas what is wrong?
Russell
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users