Skip to content
Discussion options

You must be logged in to vote

PyCMethod_New was added in Python 3.9 so you should check your build environment (you can do PYO3_PRINT_CONFIG=1 cargo build to get PyO3 to dump what it has detected). PyO3 has presumably detected a 3.9 interpreter (or newer) and is building with that one.

This is why it fails when you're importing on a 3.8 interpreter.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ghyatzo
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants