Skip to content

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

@okolenmi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions