Bug report #16102
Geoprocessing Python Error using QGIS clip
Status: | Closed | ||
---|---|---|---|
Priority: | Severe/Regression | ||
Assignee: | |||
Category: | Processing/QGIS | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | Yes | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 24015 |
Description
I've tried a couple of tools and I think I've narrowed this down to only occurring to the QGIS Clip Geoprocessing tool (I haven't tried everything though).
I've uploaded the data in Geopackage format.
I take a line layer (streams) and clip it with a polygon (watershed). If I save to anything (scratch, geopackage, spatialite, postgis) but a shapefile I get an error.
I am running QGIS on Ubuntu 16.04 and am using the QGIS and ubuntuGIS repository.
The Error is:
An error has occurred while executing Python code:
TypeError: coercing to Unicode: need string or buffer, Type found
Traceback (most recent call last):
File "/usr/share/qgis/python/plugins/processing/gui/AlgorithmDialog.py", line 290, in accept
if runalg(self.alg, self):
File "/usr/share/qgis/python/plugins/processing/gui/AlgorithmExecutor.py", line 49, in runalg
alg.execute(progress or SilentProgress())
File "/usr/share/qgis/python/plugins/processing/core/GeoAlgorithm.py", line 219, in execute
unicode(e.message, errors='replace') + self.tr('\
See log for more details'), lines, e)
TypeError: coercing to Unicode: need string or buffer, Type found
Python version: 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]
QGIS version: 2.18.3 Las Palmas, 77b8c3d
Python Path:
/usr/share/qgis/python/plugins/processing
/usr/share/qgis/python
/home/rjhale/.qgis2/python
/home/rjhale/.qgis2/python/plugins
/usr/share/qgis/python/plugins
/usr/lib/python2.7
/usr/lib/python2.7/plat-x86_64-linux-gnu
/usr/lib/python2.7/lib-tk
/usr/lib/python2.7/lib-old
/usr/lib/python2.7/lib-dynload
/home/rjhale/.local/lib/python2.7/site-packages
/usr/local/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages/PILcompat
/usr/lib/python2.7/dist-packages/gtk-2.0
/usr/lib/python2.7/dist-packages/wx-3.0-gtk2
/home/rjhale/.qgis2//python
/home/rjhale/.qgis2/python/plugins/DigitizingTools/tools
/home/rjhale/temp
Associated revisions
[Processing] Yet another fix for error message encoding errors. Fixes #16102
[Processing] Yet another fix for error message encoding errors. Fixes #16102
History
#1
Updated by Randal Hale over 7 years ago
If I move both layers to a "scratch" layer (temporary) AND I merge all the polygons in watershed to make 1 polygon - I can run the clip. So I'm back to testing this again.
#2
Updated by Borys Jurgiel over 7 years ago
- Pull Request or Patch supplied changed from No to Yes
- OS version deleted (
Ubuntu 16.04) - Operating System deleted (
Linux) - Priority changed from Normal to Severe/Regression
Sorry, my fault. Fixed in https://github.com/qgis/QGIS/pull/4041
#3
Updated by Borys Jurgiel over 7 years ago
- Status changed from Open to Closed
Fixed in changeset 730c16486024cc39934b771b23103325dc576c33.