Skip to content

ImportError: dlopen(..., 0x0002): symbol not found in flat namespace _PyCMethod_New #3376

Closed Answered by davidhewitt
ghyatzo asked this question in Questions
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