[Qgis-developer] RT Sql Layer plugin problem
John C. Tull
jctull at gmail.com
Wed Mar 23 16:51:41 EDT 2011
Hi Giuseppe,
I am trying to use the RT Sql Layer plugin on OS X. I get the following error when trying to load my postgis database. Hopefully this is an easy fix.
Regards,
John
An error has occured while executing Python code:
Traceback (most recent call last):
File "/Users/jctull/.qgis/python/plugins/rt_sql_layer/ManagerWindow.py", line 112, in dbConnectSlot
self.dbConnect( self.sender() )
File "/Users/jctull/.qgis/python/plugins/rt_sql_layer/ManagerWindow.py", line 152, in dbConnect
self.refreshTable()
File "/Users/jctull/.qgis/python/plugins/rt_sql_layer/ManagerWindow.py", line 261, in refreshTable
model.loadFromDb(self.db)
File "/Users/jctull/.qgis/python/plugins/rt_sql_layer/DatabaseModel.py", line 250, in loadFromDb
self.tree.constructTreeFromDb(self.db)
File "/Users/jctull/.qgis/python/plugins/rt_sql_layer/DatabaseModel.py", line 96, in constructTreeFromDb
list_tables = db.list_geotables()
File "/Users/jctull/.qgis/python/plugins/rt_sql_layer/connectors/postgis.py", line 272, in list_geotables
items[i] = geo_item
IndexError: list assignment index out of range
Python version:
2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
[GCC 4.2.1 (Apple Inc. build 5646)]
QGIS version:
1.7.0-Wroclaw Wroclaw, 15583M
Python path: ['/Applications/QGIS.app/Contents/MacOS/../Resources/python', '/Users/jctull/.qgis/python', '/Users/jctull/.qgis/python/plugins', '/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins', '/Library/Frameworks/SQLite3.framework/Versions/3/Python', '/Library/Frameworks/GDAL.framework/Versions/1.8/Python/site-packages', '/Library/Python/2.6/site-packages/DateUtils-0.5.1-py2.6.egg', '/Library/Python/2.6/site-packages/nose-0.11.0-py2.6.egg', '/Library/Python/2.6/site-packages/pytz-2010l-py2.6.egg', '/Library/Python/2.6/site-packages/pysal-1.0.0-py2.6.egg', '/Library/Python/2.6/site-packages/Shapely-1.2.5-py2.6.egg', '/Library/Python/2.6/site-packages/simplejson-2.1.1-py2.6-macosx-10.6-universal.egg', '/Library/Python/2.6/site-packages/lxml-2.3beta1-py2.6-macosx-10.6-universal.egg', '/Library/Python/2.6/site-packages/PIL-1.1.7-py2.6-macosx-10.6-universal.egg', '/Library/Python/2.6/site-packages/pyamg-0.0.0-py2.6-macosx-10.6-universal.egg', '/Library/Python/2.6/site-packages/geopy-0.94-py2.6.egg', '/Library/Python/2.6/site-packages/GDAL-1.7.0-py2.6-macosx-10.6-universal.egg', '/Library/Python/2.6/site-packages/numpy-2.0.0.dev_f72c605_20110113-py2.6-macosx-10.6-universal.egg', '/Library/Python/2.6/site-packages/matplotlib-1.0.0-py2.6-macosx-10.6-universal.egg', '/Library/Python/2.6/site-packages/scipy-0.10.0.dev_20110113-py2.6-macosx-10.6-universal.egg', '/Library/Python/2.6/site-packages/pymc-2.2alpha-py2.6-macosx-10.6-universal.egg', '/Library/Python/2.6/site-packages/readline-6.1.0-py2.6-macosx-10.6-universal.egg', '/Library/Python/2.6/site-packages/ipython-0.11.dev-py2.6.egg', '/Library/Python/2.6/site-packages/rpy2-2.1.9_20110127-py2.6-macosx-10.6-universal.egg', '/Library/Python/2.6/site-packages/psycopg2-2.4_beta1-py2.6-macosx-10.6-universal.egg', '/Library/Python/2.6/site-packages/setuptools-0.6c12dev_r88124-py2.6.egg', '/Library/Frameworks/cairo.framework/Versions/1/Python', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload', '/Library/Python/2.6/site-packages', '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC', '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode', '/Applications/QGIS.app/Contents/Resources/python/plugins/fTools/tools', '/Users/jctull/.qgis/python/plugins/openlayersov/logic', '/Users/jctull/.qgis/python/plugins/openlayersov/gui', '/usr/share/qgis/python', '/Users/jctull/.qgis/python/plugins/ziplayers/logic', '/Users/jctull/.qgis/python/plugins/ziplayers/gui', '/Users/jctull/Documents/John 2007/NWP/Energy Info/TransWest Express']
More information about the Qgis-developer
mailing list