pybind11_bazel icon indicating copy to clipboard operation
pybind11_bazel copied to clipboard

Hermetic Python: pyconfig.h: No such file or directory

Open dprogm opened this issue 2 years ago • 2 comments

Hello, I am facing the following issue when trying to build with a hermetic python interpreter according to this repo: https://github.com/sha1n-playground/bazel-python-toolchain

In file included from external/pybind11/include/pybind11/detail/common.h:215:0, from external/pybind11/include/pybind11/pytypes.h:12, from external/pybind11/include/pybind11/cast.h:13, from external/pybind11/include/pybind11/attr.h:13, from external/pybind11/include/pybind11/pybind11.h:13, from dependencies/commonapi/src-gen/PyBAPProxy.cpp:33: bazel-out/k8-fastbuild/bin/external/local_config_python/python_include/Python.h:8:10: fatal error: pyconfig.h: No such file or directory #include "pyconfig.h" ^~~~~~~~~~~~ compilation terminated.

Has anybody a solution for this problem?

dprogm avatar Feb 28 '22 13:02 dprogm

Came here because I'm experiencing the same issue. Any solutions found?

jmeekhof avatar Jun 07 '22 19:06 jmeekhof

I'm experiencing the same issue as well. @dprogm were you able to find a solution?

nthatte avatar Sep 06 '22 20:09 nthatte