Bug report #7130

ftools api error

Added by Gavin Fleming almost 11 years ago. Updated over 6 years ago.

Affected QGIS version:master Regression?:
Operating System:ubuntu Easy fix?:
Pull Request or Patch supplied:No Resolution:fixed
Crashes QGIS or corrupts data:No Copied to github as #:16199


trying to generate a vector grid with ftools:

Traceback (most recent call last):
  File "/usr/share/qgis/python/plugins/fTools/tools/doVectorGrid.py", line 148, in accept
    self.compute( boundBox, xSpace, ySpace, polygon )
  File "/usr/share/qgis/python/plugins/fTools/tools/doVectorGrid.py", line 173, in compute
    writer = QgsVectorFileWriter(self.shapefileName, self.encoding, fields, QGis.WKBPolygon, crs)
TypeError: arguments did not match any overloaded call:
  QgsVectorFileWriter(QString, QString, QgsFields, QGis.WkbType, QgsCoordinateReferenceSystem, QString driverName="ESRI Shapefile", QStringList datasourceOptions=QStringList(), QStringList layerOptions=QStringList(), QString newFilename=None): argument 3 has unexpected type 'dict'
  QgsVectorFileWriter(QgsVectorFileWriter): argument 1 has unexpected type 'unicode'

Python version:
2.7.3 (default, Sep 26 2012, 21:53:55) 
[GCC 4.7.2]

QGIS version:
1.9.0-Master Master, exported

Related issues

Duplicates QGIS Application - Bug report #7055: All plugins report python error in QGIS 1.9.0 Alpha, rev ... Closed 2013-01-27

Associated revisions

Revision 92cbf8f5
Added by Jürgen Fischer almost 11 years ago

ftools api update (fixes #7130)


#1 Updated by Jürgen Fischer almost 11 years ago

  • Status changed from Open to Closed

#2 Updated by Jürgen Fischer almost 11 years ago

  • Resolution set to fixed
  • Subject changed from ftools unicode error to ftools api error

#3 Updated by Giovanni Manghi over 6 years ago

The "ftools" category is being removed from the tracker, changing the category of this ticket to "Processing/QGIS" to not leave the category orphaned.

Also available in: Atom PDF