Python Forum

Full Version: ImportError: /home/pybind11_example.cpython-37m-x86_64-linux-gnu.so: undefined symbol
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi im trying to execute python bindings for c/c++ uding pybind11 method
and im getting following error

ImportError: /home/pybind11_example.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _PyThreadState_Current

Kindly help
The error is mentioned here as a known issue with a recipe for how to manage it.
(Feb-02-2021, 08:08 AM)Serafim Wrote: [ -> ]The error is mentioned here as a known issue with a recipe for how to manage it.

Thanks serafim, the issue got resolved. Basically my ubuntu version was 14.04 which is not supported by some packages in pybind11. After migrating to ubuntu 16.04 the issue dint occur. It works fine now.