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

dbManager - cannot import name QAbstractTableModel #20304

Closed
qgib opened this issue Feb 2, 2015 · 2 comments
Closed

dbManager - cannot import name QAbstractTableModel #20304

qgib opened this issue Feb 2, 2015 · 2 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
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Feb 2, 2015

Author Name: Pedro Venâncio (Pedro Venâncio)
Original Redmine Issue: 12110
Affected QGIS version: master
Redmine category:db_manager


This error occurs whenever I try to run a query in DBManager SQL window, in master version 2.7.0-87 (OSGeo4W 64bit).

An error has occured while executing Python code:

Traceback (most recent call last):
  File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\\db_manager\\dlg_sql_window.py", line 155, in executeSql
    model = self.db.sqlResultModel( sql, self )
  File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\\db_manager\\db_plugins\\postgis\\plugin.py", line 116, in sqlResultModel
    from .data_model import PGSqlResultModel
  File "C:/OSGEO4~1/apps/qgis-dev/./python\\qgis\\utils.py", line 478, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\\db_manager\\db_plugins\\postgis\\data_model.py", line 25, in 
    from ..data_model import TableDataModel, SqlResultModel
  File "C:/OSGEO4~1/apps/qgis-dev/./python\\qgis\\utils.py", line 478, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/OSGEO4~1/apps/qgis-dev/./python/plugins\\db_manager\\db_plugins\\data_model.py", line 24, in 
    from PyQt4.QtGui import QAbstractTableModel, QFont, QStandardItemModel, QStandardItem, QApplication
ImportError: cannot import name QAbstractTableModel

Python version:
2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]

QGIS version:
2.7.0-Master Master, 6e94688

It does not happen in 2.6.1 and did not happen in the master version until last Friday.

@qgib
Copy link
Contributor Author

qgib commented Feb 2, 2015

Author Name: Pedro Venâncio (Pedro Venâncio)


At this moment it can not be tested in Linux because of #20214

@qgib
Copy link
Contributor Author

qgib commented Feb 2, 2015

Author Name: Jürgen Fischer (@jef-n)


fixed in ca459ee


  • 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! DB Manager Relating to the DB Manager core plugin labels May 25, 2019
@qgib qgib added this to the Version 2.8 milestone May 25, 2019
@qgib qgib closed this as completed May 25, 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
Projects
None yet
Development

No branches or pull requests

1 participant