Giter VIP home page Giter VIP logo

fdb_embedded's People

Contributors

andrewleech avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

fdb_embedded's Issues

python 3.5 (maybe not only 3.5) issue with sql request strings

`

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)

xsqlda = xsqlda_factory(1)

  • sql = b(sql,_FS_ENCODING)
  • For yet unknown reason, the isc_dsql_execute_immediate segfaults when

    NULL (None) is passed as XSQLDA, so we provide one here

    api.isc_dsql_execute_immediate(isc_status, db_handle, trans_handle,
    `

`

Requires libncurses5 instead of 6?

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.