I'm unale to connect python to a firebird database using fdb
i successefully installed fdb via pip
my code looks like:
import fdb
con = fdb.connect(dsn='localhost:C:\\path\\to\\database.FDB',user='SYSDBA',password='123')
When i run it, i got the following error:
File "main.py", line 3, in
con = fdb.connect(dsn='localhost:C:\tg2\GCVIDE.FDB',user='SYSDBA',password='masterkey')
File "C:\Users\a\AppData\Local\Programs\Python\Python36\lib\site-packages\fdb\fbcore.py", line 800, in connect
load_api(fb_library_name)
File "C:\Users\a\AppData\Local\Programs\Python\Python36\lib\site-packages\fdb\fbcore.py", line 231, in load_api
setattr(sys.modules[name], 'api', ibase.fbclient_API(fb_library_name))
File "C:\Users\a\AppData\Local\Programs\Python\Python36\lib\site-packages\fdb\ibase.py", line 1396, in init
fb_library = WinDLL(fb_library_name)
File "C:\Users\a\AppData\Local\Programs\Python\Python36\lib\ctypes_init_.py", line 348, in init
self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 n’est pas une application Win32 valide
(Translate: "n’est pas une application Win32 valide" => is not a Win32 valid application