FirebirdSQL / python3-driver

Firebird driver for Python that uses new Firebird API
https://www.firebirdsql.org/en/devel-python-driver/
MIT License
26 stars 10 forks source link

driver.load_api method not working #1

Closed Prussian1870 closed 3 years ago

Prussian1870 commented 3 years ago

Hi:

I'm using Version 0.8.0 and I can't seem to get the driver.load_api method to work. I tried using forward and backward slashes and I still get an error. In this example I'm using the r(raw) indicator:

import firebird as fdb

fdb.driver.load_api(r"c:\working\fbdll\fbclient.dll")

The error returned is: "argument of type 'WindowsPath' is not iterable"

Thanks

pcisar commented 3 years ago

Well, I cannot reproduce with version 1.0.0. If your problem persist even with 1.0.0, please show me the stack trace for this exception.

Prussian1870 commented 3 years ago

line1934c:\working\fbdll\fbclient.dll Traceback (most recent call last): fdriver.load_api(r"c:\working\fbdll\fbclient.dll") File "C:\Python\Python38\lib\site-packages\firebird\driver\fbapi.py", line 2045, in load_api _api = FirebirdAPI(filename) File "C:\Python\Python38\lib\site-packages\firebird\driver\fbapi.py", line 1935, in init self.client_library: ctypes.CDLL = ctypes.WinDLL(filename) File "C:\Python\Python38\lib\ctypes__init.py", line 363, in init__ if '/' in name or '\' in name: TypeError: argument of type 'WindowsPath' is not iterable

pcisar commented 3 years ago

Try latest 3.8 Python release (3.8.6)