I have an overloaded constructor in C++ (default + other). My automatically generated pybind code looks like this: When I delete the first constructor everything works fine. But for the first one I get this error: Does anyone know why this error is coming up and how to fix it? Edit: I am using a custom pybind generator. Answer Thanks