I receive an python error when starting the postgis manager pluging in QGIS. This problem started when moving from QGIS 1.7.0 to QGIS 1.8.0 Lisboa. I reinstalled everything but that didin't fixed the problem. I tried to reinstall QGIS 1.7.4 again, but still got an error.
Hope someone can help.
The error is:
An error has occured while executing Python code:
Traceback (most recent call last): File "C:/Users/stefanh/.qgis//python/plugins\postgis_manager\ManagerWindow.py", line 113, in dbConnectInit self.dbConnect(selected) File "C:/Users/stefanh/.qgis//python/plugins\postgis_manager\ManagerWindow.py", line 171, in dbConnect self.dbInfo() File "C:/Users/stefanh/.qgis//python/plugins\postgis_manager\ManagerWindow.py", line 238, in dbInfo self.updateView() File "C:/Users/stefanh/.qgis//python/plugins\postgis_manager\ManagerWindow.py", line 285, in updateView self.tabChanged( self.tabs.currentIndex() ) File "C:/Users/stefanh/.qgis//python/plugins\postgis_manager\ManagerWindow.py", line 212, in tabChanged self.txtMetadata.showDbInfo() File "C:/Users/stefanh/.qgis//python/plugins\postgis_manager\MetadataBrowser.py", line 29, in showDbInfo gis_info = self.db.get_postgis_info() File "C:/Users/stefanh/.qgis//python/plugins\postgis_manager\postgis_utils.py", line 173, in get_postgis_info self._exec_sql(c, "SELECT postgis_lib_version(), postgis_scripts_installed(), postgis_scripts_released(), postgis_geos_version(), postgis_proj_version(), postgis_uses_stats()") File "C:/Users/stefanh/.qgis//python/plugins\postgis_manager\postgis_utils.py", line 748, in _exec_sql raise DbError(e) DbError: function postgis_uses_stats() does not exist LINE 1: ..., postgis_geos_version(), postgis_proj_version(), postgis_us... ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
Query: SELECT postgis_lib_version(), postgis_scripts_installed(), postgis_scripts_released(), postgis_geos_version(), postgis_proj_version(), postgis_uses_stats()
Python version: 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]
QGIS version: 1.8.0-Lisboa Lisboa, 6416f38
Python path: ['C:/PROGRA~1/Quantum GIS Lisboa/apps/qgis/./python', 'C:/Users/stefanh/.qgis//python', 'C:/Users/stefanh/.qgis//python/plugins', 'C:/PROGRA~1/Quantum GIS Lisboa/apps/qgis/./python/plugins', 'C:\Program Files\Jahshaka\OpenLibraries\python', 'C:\PROGRA~1\Quantum GIS Lisboa\bin\python27.zip', 'C:\PROGRA~1\Quantum GIS Lisboa\apps\Python27\DLLs', 'C:\PROGRA~1\Quantum GIS Lisboa\apps\Python27\lib', 'C:\PROGRA~1\Quantum GIS Lisboa\apps\Python27\lib\plat-win', 'C:\PROGRA~1\Quantum GIS Lisboa\apps\Python27\lib\lib-tk', 'C:\PROGRA~1\Quantum GIS Lisboa\apps\qgis\bin', 'C:\PROGRA~1\Quantum GIS Lisboa\apps\Python27', 'C:\PROGRA~1\Quantum GIS Lisboa\apps\Python27\lib\site-packages', 'C:\PROGRA~1\Quantum GIS Lisboa\apps\Python27\lib\site-packages\PIL', 'C:\PROGRA~1\Quantum GIS Lisboa\apps\Python27\lib\site-packages\win32', 'C:\PROGRA~1\Quantum GIS Lisboa\apps\Python27\lib\site-packages\win32\lib', 'C:\PROGRA~1\Quantum GIS Lisboa\apps\Python27\lib\site-packages\Pythonwin', 'C:\PROGRA~1\Quantum GIS Lisboa\apps\Python27\lib\site-packages\wx-2.8-msw-unicode', 'C:\PROGRA~1\Quantum GIS Lisboa\apps\qgis\python\plugins\fTools\tools']