Docs: workaround for auto-initialize feature is not supported when linking Python statically
#1568
Labels
auto-initialize feature is not supported when linking Python statically
#1568
I get this error when trying the workaround in the FAQ
(https://pyo3.rs/master/faq.html#i-cant-run-cargo-test-im-having-linker-issues-like-symbol-not-found-or-undefined-reference-to-_pyexc_systemerror)
🌍 Environment
rustc --version
):version = "0.x.y"
withgit = "https://github.com/PyO3/pyo3")?
:💥 Reproducing
Please provide a minimal working example. This means both the Rust code and the Python.
Please also write what exact flags are required to reproduce your results.
Workaround (please add this to the FAQ/troubleshooting page):
Re-install Python in pyenv using
--enable-shared
configuration:https://github.com/pyenv/pyenv/wiki#how-to-build-cpython-with---enable-shared
Rebuild pyo3 using
cargo clean
etc.The text was updated successfully, but these errors were encountered: