Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

db manager throws errors when expending spatialite database node #16904

Closed
qgib opened this issue Jun 14, 2013 · 4 comments
Closed

db manager throws errors when expending spatialite database node #16904

qgib opened this issue Jun 14, 2013 · 4 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! DB Manager Relating to the DB Manager core plugin High Priority
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Jun 14, 2013

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
Copy link
Contributor Author

qgib commented Jun 14, 2013

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


  • priority_id was changed from Normal to High

@qgib
Copy link
Contributor Author

qgib commented Jun 14, 2013

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


  • fixed_version_id was configured as Version 2.0.0
  • category_id was configured as DB Manager

@qgib
Copy link
Contributor Author

qgib commented Jun 14, 2013

Author Name: Giovanni Manghi (@gioman)


should not be blocker?

@qgib
Copy link
Contributor Author

qgib commented Jun 14, 2013

Author Name: Nathan Woodrow (@NathanW2)


Fixed in changeset "6c2689edc35648100dcf197582d280eba4a80714".


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority DB Manager Relating to the DB Manager core plugin labels May 24, 2019
@qgib qgib added this to the Version 2.0.0 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! DB Manager Relating to the DB Manager core plugin High Priority
Projects
None yet
Development

No branches or pull requests

1 participant