Subject Installing kinterbasdb 3.3 for Firebird 1.5 and Python 2.6
Author maxi_robaina
Hi,
I'm trying to install kinterbasedb 3.3. I'm using Python 2.6 and Firebird 1.5 on Windows XP.
I do my research about how to install it and I found what I need to compile kinterbasdb to work with Firebird 1.5.
(Actually I need to install kinterbasdb on virtualenv too.)


Then I tried to compile kinterbase using MinGW.
The compile result was:

D:\dev\Python\soft\db\kinterbasdb-3.3.0>python setup.py build --compile=mingw32
running build
running build_py
creating build
creating build\lib.win32-2.6
creating build\lib.win32-2.6\kinterbasdb
copying .\__init__.py -> build\lib.win32-2.6\kinterbasdb
copying .\k_exceptions.py -> build\lib.win32-2.6\kinterbasdb
copying .\typeconv_naked.py -> build\lib.win32-2.6\kinterbasdb
copying .\typeconv_backcompat.py -> build\lib.win32-2.6\kinterbasdb

[snip]

-------------------------------------------------------------------------------
WILL NOW PROBE DATABASE API FOR FEATURES.
COMPILER ERRORS THAT ARISE DURING THIS PHASE ARE NOT A PROBLEM.
-------------------------------------------------------------------------------
_configtest.c: In function `main':
_configtest.c:7: error: `ISC_EVENT_CALLBACK' undeclared (first use in this funct
ion)
_configtest.c:7: error: (Each undeclared identifier is reported only once
_configtest.c:7: error: for each function it appears in.)
_configtest.c:7: error: syntax error before "x"
_configtest.c: In function `main':
_configtest.c:5: error: `isc_tpb_lock_timeout' undeclared (first use in this fun
ction)
_configtest.c:5: error: (Each undeclared identifier is reported only once
_configtest.c:5: error: for each function it appears in.)
_configtest.c:5: warning: unused variable `x'
_configtest.c: In function `main':
_configtest.c:5: error: `isc_info_active_tran_count' undeclared (first use in th
is function)
_configtest.c:5: error: (Each undeclared identifier is reported only once
_configtest.c:5: error: for each function it appears in.)
_configtest.c:5: warning: unused variable `x'


[snip]


-------------------------------------------------------------------------------
FINISHED PROBING DATABASE API FOR FEATURES.
-------------------------------------------------------------------------------
building 'kinterbasdb._kinterbasdb' extension
creating build\temp.win32-2.6
creating build\temp.win32-2.6\Release
C:\Programs\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DWIN32 -UNDEBUG -IC:\P
rograms\Python\Python26\include -IC:/Programs/Firebird/FB155/include -IC:\Progra
ms\Python\Python26\include -IC:\Programs\Python\Python26\PC -c _kinterbasdb.c -o
build\temp.win32-2.6\Release\_kinterbasdb.o
writing build\temp.win32-2.6\Release\_kinterbasdb.def
C:\Programs\MinGW\bin\gcc.exe -mno-cygwin -shared -s build\temp.win32-2.6\Release\_kinterbasdb.o build\temp.win32-2.6\Release\_kinterbasdb.def -LC:/Programs/Fir
ebird/FB155/lib -LC:\Programs\Python\Python26\libs -LC:\Programs\Python\Python26
\PCbuild -lfbclient_ms -lpython26 -lmsvcr90 -o build\lib.win32-2.6\kinterbasdb\_
kinterbasdb.pyd
building 'kinterbasdb._kiservices' extension
C:\Programs\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DWIN32 -UNDEBUG -IC:\P
rograms\Python\Python26\include -IC:/Programs/Firebird/FB155/include -IC:\Progra
ms\Python\Python26\include -IC:\Programs\Python\Python26\PC -c _kiservices.c -o
build\temp.win32-2.6\Release\_kiservices.o
writing build\temp.win32-2.6\Release\_kiservices.def
C:\Programs\MinGW\bin\gcc.exe -mno-cygwin -shared -s build\temp.win32-2.6\Releas
e\_kiservices.o build\temp.win32-2.6\Release\_kiservices.def -LC:/Programs/Fireb


[snip]

Succeeded:
C:\Programs\Python\Python26\python.exe setup.py build --compile=mingw32



Here all seems ok, but when I try to test it:


Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import kinterbasdb
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Programs\Python\Python26\lib\site-packages\kinterbasdb\__init__.py",
line 119, in <module>
import _kinterbasdb as _k
ImportError: DLL load failed: No se encontrĀ¾ el proceso especificado.


What's wrong here?
What's my mistake?

Any help will be apreciated.
---
Maxi.