Menu

#28 import fail

closed-fixed
5
2003-05-20
2003-03-21
Anonymous
No

Traceback (most recent call last):
File "<interactive input>", line 1, in ?
File "C:\Python22\Lib\site-
packages\kinterbasdb\__init__.py", line 40, in ?
import _kinterbasdb as _k
ImportError: DLL load failed with error code 182

I'm working with the 2.2.22 ActiveState version of Python.
Windows2k professional.
If I re-try to import it run but I don't have acces to the
connect metod.
I did try with the 3.0.2 version and then with the 3.0.1
and 3.1_pre3 but I had almost the same error
(for the 3.0 versions change the line number and I don't
have the 'as _k')

Enrico Secco
enricosecco@hotmail.com

Discussion

  • David S. Rushby

    David S. Rushby - 2003-03-22

    Logged In: YES
    user_id=414645

    For me, Windows 2000 is the primary development and
    deployment platform for kinterbasdb, so there's no question
    that kinterbasdb works on Windows 2000. However, I use the
    standard Python distribution rather than ActiveState Python.

    I've never personally observed--nor seen a report of--the
    error message that you posted.

    - What version of Firebird or Interbase are you using? Do
    you have multiple versions of Firebird or Interbase
    installed on one machine?

    - On your system, where is the file gds32.dll located?
    - What happens when you:
    import win32api
    win32api.LoadLibrary('gds32.dll')

    - Is the "egenix mx base package" installed?

    - What Win2000 service pack are you using?

    - Is this an official build of kinterbasdb or one you
    compiled yourself?

    - On your system, where is the file _kinterbasdb.pyd located?

    - On your system, where is the file python22.dll located?

     
  • enrico secco

    enrico secco - 2003-03-24

    Logged In: YES
    user_id=739498

    Hi woodsplitter,
    I have Interbase version: WI-V5.5.0.742 and is unique.
    (from Interbase configuration tool)
    the gds32.dll is in: c:\winnt\system32 and the version is:
    5.6.0.29
    when I do:
    >>> import win32api
    >>> win32api.LoadLibrary('gds32.dll')
    in the shell, it print
    1079181312
    Yes, the mx base package is installed, and the odbc too.
    I'm using Win2000 sp3.
    I did download all the versions tested from sourceforge in
    binary form.
    the file _kinterbasdb.pyd is located in:
    C:\Python22\Lib\site-packages\kinterbasdb
    and the python22.dll in:
    c:\winnt\system32

    best regards and thank for help.
    Enrico Secco

     
  • David S. Rushby

    David S. Rushby - 2003-03-25

    Logged In: YES
    user_id=414645

    The official win32 binaries of kinterbasdb are compiled
    against Firebird 1.0, so they may be incompatible with
    Interbase 5.5. I don't have Interbase 5.5, so I can't
    *test* against it at all. However, I do have the library
    and header files for Interbase 5.5, so I can *compile*
    against it.

    I will e-mail you a zip file containing a version of current
    kinterbasdb CVS win32-compiled against the following:
    - Python 2.2
    - Interbase 5.5

    Try it and see if it works. If it does not, I'm afraid
    there's not much I can do to help you, since I don't have
    Interbase 5.5. If it does work, I'll make Interbase
    5.5-oriented win32 binaries of kinterbasdb available in
    future releases.

     
  • David S. Rushby

    David S. Rushby - 2003-03-25
    • assigned_to: nobody --> woodsplitter
     
  • enrico secco

    enrico secco - 2003-03-25

    Logged In: YES
    user_id=739498

    Hi woodsplitter,
    the version that you did send me import without problem!!!
    And it seems to work fine.
    Just now I did try only some select because, before to try
    write or struct modification query I must backup my data.
    If you have some test to conseil or you have the necessity to
    test something with the 5.5 version send me an e-mail with
    the instructions.
    Thank you very much.
    Enrico Secco.

     
  • David S. Rushby

    David S. Rushby - 2003-05-20
    • status: open --> closed
     
  • David S. Rushby

    David S. Rushby - 2003-05-20
    • status: closed --> closed-fixed
     
  • David S. Rushby

    David S. Rushby - 2003-05-20

    Logged In: YES
    user_id=414645

    With version 3.1_pre4, I released binaries compiled against
    the Interbase 5.5 header file and linked against its library
    file.

     

Log in to post a comment.