Bug report #8074

Numerous Ftools, GDALtools, give errors as of update 6/12

Added by Theron Morgan-Brown about 11 years ago. Updated about 11 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:-
Category:Python plugins
Affected QGIS version:master Regression?:No
Operating System:Ubuntu Linux Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:16913

Description

Hi all,

I updated yesterday, and then again today. Yesterday's update (which was labeled as 20130612) and today's update (labeled as 20130614) contain python problems that appear to effect several tools. Here are a list of some of the errors I have encountered.

When using polygon from layer extent...

An error has occured while executing Python code:

Traceback (most recent call last):
  File "/usr/share/qgis/python/plugins/fTools/tools/doGeometry.py", line 285, in runFinishedFromThread
    self.tr( "Created output shapefile:\
%1\
%2\
\
Would you like to add the new layer to the TOC?" ).arg( unicode( self.shapefileName ) ).arg( extra ),
AttributeError: 'unicode' object has no attribute 'arg'

Python version:
2.7.3 (default, Aug  1 2012, 05:25:23) 
[GCC 4.6.3]

QGIS version:
1.9.0-Master Master, exported

When using Clipper

An error has occured while executing Python code:

Traceback (most recent call last):
  File "/usr/share/qgis/python/plugins/GdalTools/tools/widgetPluginBase.py", line 53, in someValueChanged
    self.emit(SIGNAL("valuesChanged(PyQt_PyObject)"), self.getArguments())
  File "/usr/share/qgis/python/plugins/GdalTools/tools/doPolygonize.py", line 95, in getArguments
    arguments = QStringList()
NameError: global name 'QStringList' is not defined

When using rasterize...

An error has occured while executing Python code:

Traceback (most recent call last):
  File "/usr/share/qgis/python/plugins/GdalTools/tools/doRasterize.py", line 78, in fillFieldsCombo
    self.loadFields( self.getInputFileName() )
  File "/usr/share/qgis/python/plugins/GdalTools/tools/doRasterize.py", line 148, in loadFields
    if vectorFile.isEmpty():
AttributeError: 'unicode' object has no attribute 'isEmpty'

When using randompoints

An error has occured while executing Python code:

Traceback (most recent call last):
  File "/usr/share/qgis/python/plugins/fTools/tools/doRandPoints.py", line 94, in accept
    if outPath.contains("\\\\"):
AttributeError: 'unicode' object has no attribute 'contains'

Associated revisions

Revision f6ae6c48
Added by Matthias Kuhn about 11 years ago

[Gdaltools] SIP API update (Fix #8074)

History

#1 Updated by Matthias Kuhn about 11 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF