[Qgis-developer] python plugin error

Muhammad Abu Hasan mdabuhasan at gmail.com
Mon Nov 22 09:38:52 EST 2010


Dear all,

i am using python2.5
windows OS XP
QGIS 1.4.0

i have made an python plugin for QGIS , and when i want to open this plugin
from QGIS it gives me the follwoing error

"An error has occured while executing Python code:

Traceback (most recent call last):
  File "C:/Documents and
Settings/sumon/.qgis//python/plugins\qqsreasoner\qqsreasonerDialog.py", line
79, in on_CalculusCB_currentIndexChanged
    self.populateRelations()
  File "C:/Documents and
Settings/sumon/.qgis//python/plugins\qqsreasoner\qqsreasonerDialog.py", line
63, in populateRelations
    for relation, in
self.pgDB.getRelationsById(self.pgDB.getCalculusIdByName(self.ui.CalculusCB.currentText())):
  File "C:/Documents and
Settings/sumon/.qgis//python/plugins\qqsreasoner\db.py", line 43, in
getCalculusIdByName
    self.cur.execute(query)
ProgrammingError: relation "Calculi" does not exist

Python version:
2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]

Python path: ['C:\\Documents and
Settings\\sumon\\.qgis\\python\\plugins\\GeoCoding', 'C:\\Documents and
Settings\\sumon\\.qgis\\python\\plugins\\elevation', 'C:/Program
Files/Quantum GIS Enceladus/./python', 'C:/Documents and
Settings/sumon/.qgis//python', 'C:/Documents and
Settings/sumon/.qgis//python/plugins', 'C:/Program Files/Quantum GIS
Enceladus/./python/plugins', 'C:\\Program Files\\Quantum GIS
Enceladus\\bin\\python25.zip', 'C:\\Python25\\Lib', 'C:\\Python25\\DLLs',
'C:\\Python25\\Lib\\lib-tk', 'C:\\Program Files\\Quantum GIS Enceladus',
'C:\\Program Files\\Quantum GIS Enceladus\\bin', 'C:\\Python25',
'C:\\Python25\\lib\\site-packages', 'C:\\Documents and
Settings\\sumon\\.qgis\\python\\plugins\\fTools\\tools']"

i have checked my database (postgresql ) its ok (every table are exist), and
i dont know how can i solve this problem, is there anybody who can help me
please, i treid to open this plugin with QGIS (1.5.0) and the problem is
same

best regards
Hasan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20101122/1addecf4/attachment.html


More information about the Qgis-developer mailing list