Mar-06-2017, 04:01 PM
Hello,
I'm trying to use Python API in a C++ program.
I have downloaded source files of Python 3.4.4 and I have compiled them with Microsoft Visual C++ 2010.
In my project (Application console), I just include Python.h and try to call Py_Initialize() :
"Fatal Python error: Py_Initialize: unable to load the file system codec"
I do not use other version of Python on the computer.
I have spent lots of time to find a solution online but I cannot find a begining of solution.
Would someone have an idea ? some actions to make in order to reduce the scope of the problem ?
Where can I check the existence of "file system codec ?" ? are they file on disk ? if yes where ?
Thanks by advance for the help,
Julien
I'm trying to use Python API in a C++ program.
I have downloaded source files of Python 3.4.4 and I have compiled them with Microsoft Visual C++ 2010.
In my project (Application console), I just include Python.h and try to call Py_Initialize() :
#include "stdafx.h" #include <Python.h> int _tmain(int argc, _TCHAR* argv[]) { Py_Initialize(); Py_Finalize(); return 0; }This initialization aborts because of this error :
"Fatal Python error: Py_Initialize: unable to load the file system codec"
I do not use other version of Python on the computer.
I have spent lots of time to find a solution online but I cannot find a begining of solution.
Would someone have an idea ? some actions to make in order to reduce the scope of the problem ?
Where can I check the existence of "file system codec ?" ? are they file on disk ? if yes where ?
Thanks by advance for the help,
Julien