-
Notifications
You must be signed in to change notification settings - Fork 784
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
prepare_freethreaded_python
in crate pyo3
on OSX Big Sur
#1686
Comments
That function is not available when compiling for |
It's also unavailable on 0.13.2 if your Python interpreter does not claim to have the
If you don't get "1" output above, this could explain it. We decided that disabling this API in this way was a mistake in #1553, so in the very-soon-to-be-released 0.14 or |
Thank you ,@davidhewitt ! Switching to main solved this issue. But , it has introduced a new issue.
Any idea how do I fix it? My cargo.toml file looks like this
|
Do you have |
@davidhewitt , I am also using |
try patch instead [dependencies]
pyo3 = { version = "0.13.2", features = ["extension-module"]}
[patch.crates-io]
pyo3 = {git = "https://github.com/PyO3/pyo3/",branch = "main", features = ["extension-module"]} |
Thank you, @messense . Your solution works for me! 🥳 |
Glad to hear. As the original problem has been solved, I'm going to close this issue out. |
🐛 Bug Reports
When reporting a bug, please provide the following information. If this is not a bug report you can just discard this template.
I am getting the error :
prepare_freethreaded_python
in cratepyo3
on OSX Big Sur when I am using the prepare_freethreaded_python function.🌍 Environment
rustc --version
): 1.50.0 (cb75ad5db 2021-02-10version = "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.
Error message:
Please also write what exact flags are required to reproduce your results.
The text was updated successfully, but these errors were encountered: