Installing python dependencies errors out with libstd.h file not found

35 צפיות
מעבר להודעה הראשונה שלא נקראה

soberhippie

לא נקראה,
30 במאי 2023, 5:26:3430.5.2023
עד bazel-discuss
Hello.

We are transitioning our python project to Bazel, but we ran into a problem with one of the libs we are using. When python installs this lib, it compiles it from the C source code, which works fine without Bazel, but when run _with_ bazel, it errors out with: `/long/path/python3.11/Python.h:23:23: Fatal error: 'stdlib.h' file not found`.

What I tried to do to fix this was follow the tutorial on adding a C++ toolchain, but it did not help. 

The python library in question is `confluent-kafka`, but it doesn't seem to be relevant. 

How can we make the stdlib headers available to the build system?




השב לכולם
השב למחבר
העבר לנמענים
0 הודעות חדשות