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-simulator/ros-bridge/issues/368 https://python-forum.io/thread-32297.html OS: Linux 5.11.0-43-generic #47~20.04.2-Ubuntu SMP Mon Dec 13 11:06:56 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux Python: Python 3.8.10 g++: g++ (Ubuntu
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 error: Answer You can use the data field