I’m trying to embed a Pyhton3 program into a C++ one. After following several tutorials and blog posts I get the following code, which fails: The result is the following: So, importing sys works but importing my own module fails, while adding the path to my modules seemed to work. Any idea ? Answer Replacing PyBytes_FromString by PyUnicode_DecodeFSDefault made the