Skip to content

Requires libncurses5 instead of 6? #2

@glubsy

Description

@glubsy

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions