Skip to content

Importing pyzes fails because _LoadZeLibrary() hardcodes /usr/lib/x86_64-linux-gnu/lib #485

Description

@okolenmi

Current code:
libName = "/usr/lib/x86_64-linux-gnu/lib" + libName + ".so.1"

Results in this:

OSError: /usr/lib/x86_64-linux-gnu/libze_loader.so.1:
cannot open shared object file

Replacing the hardcoded path with something like:

from ctypes.util import find_library
libName = find_library("ze_loader")

fixes the issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions