qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.35k stars 2.98k forks source link

db manager throws errors when expending spatialite database node #16904

Closed qgib closed 5 years ago

qgib commented 11 years ago

Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV) Original Redmine Issue: 8065 Affected QGIS version: master Redmine category:db_manager


Steps to reproduce:

  1. Open db manager
  2. Expend the spatialite node, and expend any spatialite database present
  3. QGIS will throw a series of python error console with this content:
    
    An error has occured while executing Python code:

Traceback (most recent call last): File "C:/OSGeo4W/apps/qgis-dev/./python/plugins\db_manager\db_manager.py", line 83, in itemChanged self.refreshTabs() File "C:/OSGeo4W/apps/qgis-dev/./python/plugins\db_manager\db_manager.py", line 134, in refreshTabs self.info.showInfo( item ) File "C:/OSGeo4W/apps/qgis-dev/./python/plugins\db_manager\info_viewer.py", line 71, in showInfo self._showDatabaseInfo(item) File "C:/OSGeo4W/apps/qgis-dev/./python/plugins\db_manager\info_viewer.py", line 110, in _showDatabaseInfo html += connection.database().info().toHtml() File "C:/OSGeo4W/apps/qgis-dev/./python/plugins\db_manager\db_plugins\info_model.py", line 84, in toHtml conn_details = self.connectionDetails() File "C:/OSGeo4W/apps/qgis-dev/./python/plugins\db_manager\db_plugins\spatialite\info_model.py", line 35, in connectionDetails (self.tr("Filename:"), self.db.connector.dbname) AttributeError: SLDatabaseInfo instance has no attribute 'tr'

Python version: 2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]

QGIS version: 1.9.0-Master Master, d547b25

Python path: ['C:/OSGeo4W/apps/qgis-dev/./python/plugins\\sextante', 'C:/OSGeo4W/apps/qgis-dev/./python', 'C:\\Users\\MATH/.qgis2/python', 'C:\\Users\\MATH/.qgis2/python/plugins', 'C:/OSGeo4W/apps/qgis-dev/./python/plugins', 'C:\\OSGeo4W\\apps\\orfeotoolbox\\wrapping\\lib', 'C:\\OSGeo4W\\apps\\orfeotoolbox\\wrapping\\Python', 'C:\\OSGeo4W\\apps\\orfeotoolbox\\python', 'C:\\', 'C:\\OSGeo4W\\bin\\python27.zip', 'C:\\OSGeo4W\\apps\\Python27\\DLLs', 'C:\\OSGeo4W\\apps\\Python27\\lib', 'C:\\OSGeo4W\\apps\\Python27\\lib\\plat-win', 'C:\\OSGeo4W\\apps\\Python27\\lib\\lib-tk', 'C:\\OSGeo4W\\bin', 'C:\\OSGeo4W\\apps\\Python27', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\PIL', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\win32', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\win32\\lib', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\Pythonwin', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode', 'C:\\OSGeo4W\\apps\\qgis-dev\\python\\plugins\\fTools\\tools']



Note: it doesn't actually prevent from reaching database content, so only flagging this as high priority. It is however a recent regression.
qgib commented 11 years ago

Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV)


qgib commented 11 years ago

Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV)


qgib commented 11 years ago

Author Name: Giovanni Manghi (@gioman)


should not be blocker?

qgib commented 11 years ago

Author Name: Nathan Woodrow (@NathanW2)


Fixed in changeset "6c2689edc35648100dcf197582d280eba4a80714".