Massimo,

Got it working by running from source - thanks!

On Monday, June 4, 2012 4:40:43 PM UTC-4, Massimo Di Pierro wrote:
>
> Sorry I misunderstood. My guess is that you have different python version. 
> make sure you run web2py from source and you use the python version where 
> you installed  kinterbasdb.
>
> On Monday, 4 June 2012 15:27:29 UTC-5, pjag wrote:
>>
>> Massimo,
>>
>> Thanks for the reply  I've already installed kinterbasdb, as I mentioned 
>> in my original message.  I can access Firebird with kinterbasdb in a simple 
>> Python script.  However, web2py doesn't see it.  Correct me if I'm wrong, 
>> because I've barely scratched the surface with the web2py documentation, 
>> but isn't Python 2.5 built into web2py?  If so, might that be my problem? 
>>  I've installed the kinterbasdb package in my Python 2.7 install, but not 
>> web2py?  I'm confused, since the web2py docs say there's built-in DB 
>> support for multiple databases, including Firebird.  I was hoping Firebird 
>> access in web2py would be "baked in", and not give me the problem I'm 
>> experiencing.
>>
>>
>> On Monday, June 4, 2012 3:51:59 PM UTC-4, Massimo Di Pierro wrote:
>>>
>>> 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!
>>>>
>>>>
>>>>

Reply via email to