-
Notifications
You must be signed in to change notification settings - Fork 763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test suite failures and missing symbols on macOS #742
Labels
Comments
Oh, hey, look at that. If you install Python with a shared library:
then all your problems go away. So this is my mistake. But others seem to have hit it. Maybe just note this somewhere in the docs? |
Thank you for sharing the workaround! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 Bug Reports
There are failures in the test suite on macOS with
pyenv
installed Python 3.7.6.The issue is caused by missing Python library symbols in the final linked rust executable. For example, the failure in
test_check_exception
happens on animport socket
. The Pythonsocket
module imports a C extension module_socket
that references_PyTime_AsMilliseconds
, which is missing:The issue may be related to the fact that the
pyenv
installation only provides a static Python library.The issue may be known; it was obliquely mentioned in #704 before being deleted from the original issue report.
🌍 Environment
Your operating system and version:
macOS 10.15.2
Your python version:
3.7.6
How did you install python (e.g. apt or pyenv)? Did you use a virtualenv?:
pyenv
Your rust version (
rustc --version
):1.41.0-nightly
Are you using the latest pyo3 version? Have you tried using latest master (replace
version = "0.x.y"
withgit = "https://github.com/PyO3/pyo3")?
Yes.
💥 Reproducing
cargo test
The text was updated successfully, but these errors were encountered: