Skip to content

Release builds fail with PyO3 auto-initialize due to static Python linking #120

@joshuadavidthomas

Description

@joshuadavidthomas

Ah damn, I thought I had figured it out. The recent changes in #118 and #119 work in the test environment, but not in the release environment.

Relevant error logs:

  error: The `auto-initialize` feature is enabled, but your python installation only supports embedding the Python interpreter statically. If you are attempting to run tests, or a binary which is okay to link dynamically, install a Python distribution which ships with the Python shared library.

  Embedding the Python interpreter statically does not yet have first-class support in PyO3. If you are sure you intend to do this, disable the `auto-initialize` feature.

  For more information, see https://pyo3.rs/v0.24.2/building-and-distribution.html#embedding-python-in-rust

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