[Qgis-user] RE: ERROR When trying to add postgis raster

Andreas Forø Tollefsen andreasft at gmail.com
Mon Aug 22 01:49:40 PDT 2011


Uninstalled all QGIS and plugins and reinstalled using the OSGeo4W
installer.

Same problem.
Seems like plugins go in the home directory, while the program is in a
different folder.

New error:

An error has occured while executing Python code:

Traceback (most recent call last):
  File "C:/Users/andreas/.qgis/python/plugins\wktraster\wktRasterPlugin.py",
line 83, in callAddLayer
    from DlgAddRasterLayer import DlgAddRasterLayer
  File "C:/OSGeo4W/apps/qgis/./python\qgis\utils.py", line 283, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File
"C:/Users/andreas/.qgis/python/plugins\wktraster\DlgAddRasterLayer.py", line
28, in
    import conn
  File "C:/OSGeo4W/apps/qgis/./python\qgis\utils.py", line 283, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/Users/andreas/.qgis/python/plugins\wktraster\conn.py", line 78
    except DbError as e:
                    ^
SyntaxError: invalid syntax

Python version:
2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)]


QGIS version:
1.7.0-Wroclaw Wroclaw, 63ecdd7

Python path: ['C:/OSGeo4W/apps/qgis/./python',
'C:/Users/andreas/.qgis/python', 'C:/Users/andreas/.qgis/python/plugins',
'C:/OSGeo4W/apps/qgis/./python/plugins', 'C:\\Program Files
(x86)\\ArcGIS\\bin', 'C:\\Program Files (x86)\\PostgreSQL\\8.4\\bin',
'C:\\Windows\\system32\\python25.zip', 'C:\\OSGeo4W\\apps\\Python25\\DLLs',
'C:\\OSGeo4W\\apps\\Python25\\lib',
'C:\\OSGeo4W\\apps\\Python25\\lib\\plat-win',
'C:\\OSGeo4W\\apps\\Python25\\lib\\lib-tk', 'C:\\OSGeo4W\\apps\\qgis\\bin',
'C:\\OSGeo4W\\apps\\Python25',
'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages',
'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32',
'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32\\lib',
'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\Pythonwin',
'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\wx-2.8-msw-unicode',
'C:\\OSGeo4W\\apps\\qgis\\python\\plugins\\fTools\\tools']
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20110822/d566c9ba/attachment.html>


More information about the Qgis-user mailing list