If I define de DAL in __init__ and make a query in the constructor (just for trying), it works. But it doesn't on the run method, I can not make any query outside the constructor.
*Solved:* I have to define the DAL in the run method again. I dont know why but now it works. def run(self): db = DAL('mysql://mydatabase', folder='applications/gestion/databases',auto_import =True) Thank you and my apologies due my low english level. El martes, 8 de mayo de 2012 14:59:39 UTC+2, Anthony escribió: > > I've added this line in my code: >> >> db = DAL('mysql://mydatabase', >> folder='applications/gestion/databases',auto_import >> =True) >> >> But the result was the same I got at the beginig: >> >> raise errorclass, errorvalue >> InterfaceError: (0, '') >> > > Are you saying if you take away the folder and auto_import arguments, the > InterfaceError goes away and you instead get the KeyError you reported in > the last message? > > Anthony >