nakijun / qspatialite

Automatically exported from code.google.com/p/qspatialite
0 stars 0 forks source link

plugin not compatible with master (1.9) #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. click on import ogr layer
2. select shapefile and add to list of files
3. click ok

What is the expected output? What do you see instead?

An error has occured while executing Python code:

Traceback (most recent call last):
  File "/home/tourigny/.qgis//python/plugins/QspatiaLite/importOgr/importOgr.py", line 147, in validate
    if not self.parent.db.importGisFile( item[0], item[1], int(item[2]),item[3]):
  File "/home/tourigny/.qgis//python/plugins/QspatiaLite/Classes/Database.py", line 271, in importGisFile
    return self.uploadQgisVectorLayer(layer, srid, tableName=tableName)
  File "/home/tourigny/.qgis//python/plugins/QspatiaLite/Classes/Database.py", line 161, in uploadQgisVectorLayer
    for id,name in provider.fields().iteritems():
AttributeError: 'QgsFields' object has no attribute 'iteritems'

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

QGIS version:
1.9.0-Master Master, db7b46a

Python path: ['/home/soft/share/qgis/python', '/home/tourigny/.qgis//python', 
'/home/tourigny/.qgis//python/plugins', '/home/soft/share/qgis/python/plugins', 
'/home/soft/lib/python2.7/site-packages', '/usr/lib/python2.7', 
'/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', 
'/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', 
'/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', 
'/usr/lib/python2.7/dist-packages/PIL', 
'/usr/lib/python2.7/dist-packages/gst-0.10', 
'/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', 
'/usr/lib/python2.7/dist-packages/ubuntu-sso-client', 
'/home/soft/share/qgis/python/plugins/fTools/tools']

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by etourign...@gmail.com on 4 Apr 2013 at 12:29

GoogleCodeExporter commented 9 years ago
I'll try to make it compatible with v2.0 before July

Original comment by romain.r...@gmail.com on 4 Apr 2013 at 1:49

GoogleCodeExporter commented 9 years ago
Issue 18 has been merged into this issue.

Original comment by romain.r...@gmail.com on 4 Apr 2013 at 1:50

GoogleCodeExporter commented 9 years ago

Original comment by romain.r...@gmail.com on 9 Feb 2015 at 9:56