pybind11 - ImportError: undefined symbol: _Py_ZeroStruct
#3979
Unanswered
joshiayush
asked this question in
Q&A
Replies: 1 comment
-
I posted an answer there #3983. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm following the
pybind11
documentation and trying to create Python bindings for a simple function Creating bindings for a simple function, but after compiling my C++ code with the following command:when I try to import the library in python using:
I get an
ImportError
sayingundefined symbol: _Py_ZeroStruct
I'm using:
Ubuntu 20.04.4 LTS
Python 3.8.10
Pip 20.0.2
What I tried to solve the issue
I looked into many articles related to the same error but couldn't really get an understanding of how I'm going to resolve my issue:
Any kind of help will be greatly appreciated.
SO
Beta Was this translation helpful? Give feedback.
All reactions