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

Error when adding query results via DB Manager #29286

Closed
qgib opened this issue Mar 4, 2019 · 2 comments
Closed

Error when adding query results via DB Manager #29286

qgib opened this issue Mar 4, 2019 · 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

Comments

@qgib
Copy link
Contributor

qgib commented Mar 4, 2019

Author Name: Topi Tjukanov (@tjukanovt)
Original Redmine Issue: 21469
Affected QGIS version: 3.4.5
Redmine category:db_manager


When trying to add a new layer from PostGIS query results via DB Manager (Load as new layer) the layer doesn't get added, but instead I get the following error:

An error has occurred while executing Python code: 

AttributeError: 'DlgSqlWindow' object has no attribute '_getSqlExecutableQuery' 
Traceback (most recent call last):
  File "C:/PROGRA~1/QGIS3~1.6/apps/qgis/./python/plugins\db_manager\dlg_sql_window.py", line 434, in loadSqlLayer
    layer = self._getSqlLayer(self.filter)
  File "C:/PROGRA~1/QGIS3~1.6/apps/qgis/./python/plugins\db_manager\dlg_sql_window.py", line 396, in _getSqlLayer
    query = self._getSqlExecutableQuery()
AttributeError: 'DlgSqlWindow' object has no attribute '_getSqlExecutableQuery'


Python version: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] 
QGIS version: 3.6.0-Noosa Noosa, 58734527ab 

Python Path:
C:/PROGRA~1/QGIS3~1.6/apps/qgis/./python
C:/Users/T T/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/T T/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/PROGRA~1/QGIS3~1.6/apps/qgis/./python/plugins
C:\Program Files\QGIS 3.6\bin\python37.zip
C:\PROGRA~1\QGIS3~1.6\apps\Python37\DLLs
C:\PROGRA~1\QGIS3~1.6\apps\Python37\lib
C:\Program Files\QGIS 3.6\bin
C:\PROGRA~1\QGIS3~1.6\apps\Python37
C:\PROGRA~1\QGIS3~1.6\apps\Python37\lib\site-packages
C:\PROGRA~1\QGIS3~1.6\apps\Python37\lib\site-packages\win32
C:\PROGRA~1\QGIS3~1.6\apps\Python37\lib\site-packages\win32\lib
C:\PROGRA~1\QGIS3~1.6\apps\Python37\lib\site-packages\Pythonwin
C:/Users/T T/AppData/Roaming/QGIS/QGIS3\profiles\default/python

Error is in both 3.6 Nooa and 3.4.5 LTR


Related issue(s): #29370 (duplicates)
Redmine related issue(s): 21554


@qgib
Copy link
Contributor Author

qgib commented Mar 4, 2019

Author Name: Giovanni Manghi (@gioman)


Already fixed and backported, wait for the new builds/point releases.


  • resolution was changed from to invalid
  • status_id was changed from Open to Closed

@qgib qgib closed this as completed Mar 4, 2019
@qgib
Copy link
Contributor Author

qgib commented Mar 11, 2019

Author Name: Alessandro Pasotti (@elpaso)


@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
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