Skip to content

ImportError: libffi-806b1a9d.so.6.0.4: cannot open shared object file #316

@pschmitt

Description

@pschmitt

Just discovered this great project and I been trying to build pkp which relies on pykeepass.
The binary builds fine with pyoxidizer build but at runtime I get the following:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "pkp", line 12, in <module>
  File "pykeepass", line 2, in <module>
  File "pykeepass.pykeepass", line 23, in <module>
  File "pykeepass.kdbx_parsing", line 1, in <module>
  File "pykeepass.kdbx_parsing.kdbx", line 4, in <module>
  File "pykeepass.kdbx_parsing.kdbx4", line 6, in <module>
  File "argon2", line 5, in <module>
  File "argon2.low_level", line 17, in <module>
ImportError: libffi-806b1a9d.so.6.0.4: cannot open shared object file: No such file or directory

I'm just starting so I may have overlooked something obvious in the docs. Thanks for your work on this!

pyoxidizer.bzl
def make_dist():
    return default_python_distribution()
def make_exe(dist):
    policy = dist.make_python_packaging_policy()
    policy.resources_location = "filesystem-relative:lib"
    python_config = dist.make_python_interpreter_config()
    python_config.run_mode = "eval:from pkp import cli_main; cli_main()"
    exe = dist.to_python_executable(
        name="pkp-oxy",
        packaging_policy=policy,
        config=python_config,
    )
    exe.add_python_resources(exe.pip_install(["pkp==0.6.3"]))
    return exe
def make_embedded_resources(exe):
    return exe.to_embedded_resources()
def make_install(exe):
    files = FileManifest()
    files.add_python_resource(".", exe)
    return files
register_target("dist", make_dist)
register_target("exe", make_exe, depends=["dist"])
register_target("resources", make_embedded_resources, depends=["exe"], default_build_script=True)
register_target("install", make_install, depends=["exe"], default=True)
resolve_targets()
PYOXIDIZER_VERSION = "0.9.0"
PYOXIDIZER_COMMIT = "UNKNOWN"

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