Closed velvia closed 3 years ago
Thanks, agreed that some improvement can be made here. I've been planning for a while to find some time to write better instructions on "getting started with pyo3", which would include installation notes for pyenv.
For a bit of history, see #763, https://github.com/PyO3/pyo3/issues/742#issuecomment-577332616
A complete rewrite of this error message was done in #1553, so I think we can call this resolved for now.
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-sharedRebuild pyo3 using
cargo clean
etc.