-
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
Running Python in Rust example in README errors #4543
Comments
The problem here is that you're using the docs for the as-yet-unreleased 0.23 version, but the 0.22.2 version for your code. |
Reopened because the README should be clearer about this. |
hello, I have also experienced this issue and fixed the example based on suggestions from rust-analyser it seems like there's been _bound added to some of the functions that are called in the readme I have put the version that worked on my demo project into this pull request #4551 I am a novice with rust and like the concept of the library. |
I was able to run the sample from the latest tag and everything ran great - thank you!
Important Active development is done in the main branch. Breaking changes will and have occurred. Before attempting these instructions go to the latest tagged release. here. Do not use the branches named release-vxxxx.
Thanks again for all your work here! |
Bug Description
Sample fails to compile for calling python in rust
Brand new to trying to run python in a rust app haven't found one sample that compiles yet.
Steps to Reproduce
Backtrace
Your operating system and version
Kernel: Linux 6.10.9-arch1-1
Your Python version (
python --version
)Python 3.12.5
Your Rust version (
rustc --version
)rustc 1.81.0 (eeb90cda1 2024-09-04)
Your PyO3 version
0.22.2
How did you install python? Did you use a virtualenv?
system provided (via pacman).
Yes created a venv using
python -m venv .
Additional Info
No response
The text was updated successfully, but these errors were encountered: