andrewleech / fdb_embedded Goto Github PK
View Code? Open in Web Editor NEWFork of firebird fdb driver with bundled firebird embedded libraries. Forked from: svn://svn.code.sf.net/p/firebird/code/python/fdb/trunk
License: Other
Fork of firebird fdb driver with bundled firebird embedded libraries. Forked from: svn://svn.code.sf.net/p/firebird/code/python/fdb/trunk
License: Other
`
Because of string encoding (mixing bytes and str) need to patch fbcore.py:
`
@@ -783,7 +783,7 @@ def create_database(sql='', sql_dialect=3, dsn='', user=None, password=None,
else:
dsn = database
dsn = b(dsn,_FS_ENCODING)
#dsn = b(dsn,_FS_ENCODING)
# Parameter checks
@@ -801,7 +801,9 @@ def create_database(sql='', sql_dialect=3, dsn='', user=None, password=None,
trans_handle = isc_tr_handle(0)
db_handle = isc_db_handle(0)
`
Installed after doing a small modification to the setup.py by changing "python" to "python2"
and changing httplib
to http.client as httplib
in build_firebird.py (since httplib is deprecated now). Then:
python setup.py bdist_wheel
sudo pip install dist/fdb_embedded*.whl
and it seems to have installed correctly.
Now calling fdb_embedded in my script yields the following error:
Traceback (most recent call last):
File "./fdb_query.py", line 10, in <module>
File "/usr/lib/python3.6/site-packages/fdb_embedded/fbcore.py", line 656, in connect
load_api(fb_library_name)
File "/usr/lib/python3.6/site-packages/fdb_embedded/fbcore.py", line 182, in load_api
setattr(sys.modules[__name__],'api',fbclient_API(fb_library_name))
File "/usr/lib/python3.6/site-packages/fdb_embedded/ibase.py", line 1214, in __init__
fb_library = CDLL(fb_library_name)
File "/usr/lib/python3.6/ctypes/__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libncurses.so.5: cannot open shared object file: No such file or directory
Do I need to find libncurses5? Am I missing something obvious? Running Arch Linux, my libncurses shared libs are all version 6.
Edit: running an strace, it's clearly looking for libncurses5... maybe it should be bundled with it?
openat(AT_FDCWD, "/usr/lib/python3.6/site-packages/fdb_embedded/lib/libncurses.so.5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/tls/libncurses.so.5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/libncurses.so.5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.