Bug report #8065
db manager throws errors when expending spatialite database node
Status: | Closed | ||
---|---|---|---|
Priority: | High | ||
Assignee: | - | ||
Category: | DB Manager | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 16904 |
Description
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.
History
#1 Updated by Mathieu Pellerin - nIRV over 11 years ago
- Priority changed from Normal to High
#2 Updated by Mathieu Pellerin - nIRV over 11 years ago
- Target version set to Version 2.0.0
- Category set to DB Manager
#3 Updated by Giovanni Manghi over 11 years ago
should not be blocker?
#4 Updated by Nathan Woodrow over 11 years ago
- Status changed from Open to Closed
Fixed in changeset 6c2689edc35648100dcf197582d280eba4a80714.