When I’m running bazel test … the cpp code will compile, but Python gets stuck. I read these before I wrote this question, but I can not find any solution: https://github.com/pybind/pybind11/issues/314 undefined symbol: _PyThreadState_Current when importing tensorflow https://github.com/carla-simu…
Tag: bazel
Bazel, how to add Python library built in C++ into Python Binary?
I have a C++ Library with Python Bindings built as follows, and a Python Binary that needs to import the libPerceptionPybind.so that is generated. I see that the libPerceptionPybind.so has been generated in my bazel-bin/pybind folder. I tried to add PerceptionPybind to the deps as you can see, but it gives an…