You need to install this driver before you can use firebird from python:
http://kinterbasdb.sourceforge.net/
On Monday, 4 June 2012 12:45:06 UTC-5, pjag wrote:
>
> Greetings,
>
> Getting up to speed on web2py, and am trying to use Firebird as my DB.
> When I start my web2py app, I get the following error message:
>
> <type 'exceptions.RuntimeError'> Failure to connect, tried 5 times:
> Traceback (most recent call last): File "gluon/dal.py", line 5955, in
> __init__ File "gluon/dal.py", line 2449, in __init__ NameError: global name
> 'kinterbasdb' is not defined
>
> Here's my connection code in db.py:
>
> db =
> DAL('firebird://sysdba:masterkey@localhost:3050/C:\\web2py\\applications\\myapp\\myappdb.fdb')
>
> I'm using Python 2.7.3 x64 (Win7), web2py 1.99.7, Firebird 2.5.1 x64. I
> installed kinterbasdb 3.3 manually (doesn't it get installed with web2py?),
> but still have the same error.
>
> Help please!
>
>
>