--- In firebird-python@yahoogroups.com, Pavel Cisar <pcisar@...> wrote:
>
 
> FDB 0.8.5 was tested on WinXP SP3 + Python 3.2.2.3 (from ActiveState) + 
> FB 2.5.1 with no problems at all. So it's either a bug in ctypes in 
> Python 3.2.3, which is very unlikely (AFAIK there were no changes in 
> ctypes between 3.2.2/3.2.3), or it's something weird in your Firebird 
> installation, as ctypes can't open the fbclient.dll. Do you have 64-bit 
> Firebird while 32-bit Python (or vice versa) by any chance?
> 
No, both are 64 bit. But there are two fbclient.dll:

c:\Program Files\Firebird\Firebird_2_5\bin\fbclient.dll, 
date Oct 03, 2011, 870912 bytes

c:\Program Files\Firebird\Firebird_2_5\WOW64\fbclient.dll, 
date Oct 03, 2011, 548864 bytes

Both were put there by the installation process.

> You may test the problem directly from your Python, simply try next:
> 
> import ctypes
> fb_library = ctypes.WinDLL('/path/to/fbclient.dll')
> 
I did this with both dll's, with different results:

Python 3.2.3 (default, Apr 11 2012, 07:12:16) [MSC v.1500 64 bit (AMD64)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctypes
>>> fb_library = ctypes.WinDLL(r'c:\Program 
>>> Files\Firebird\Firebird_2_5\bin\fbclient.dll')
>>> fb_library
<WinDLL 'c:\Program Files\Firebird\Firebird_2_5\bin\fbclient.dll', handle 100000
00 at 25966a0>
>>>

>>> fb_library = ctypes.WinDLL(r'c:\Program 
>>> Files\Firebird\Firebird_2_5\WOW64\fbclient.dll')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python32\lib\ctypes\__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
WindowsError: [Error 193] %1 ist keine zulässige Win32-Anwendung
>>>

Translation of the Windows error: '%1 is not a valid win32-application'.

Looks like something is wrong with the dll in WOW64, but what, and what should 
I do? Simply remove it (but perhaps it is needed somewhere)? Uninstall and 
reinstall Firebird?

Thank you for your help,
Sibylle


Reply via email to