Embedding python : can't find encoding error
Mathieu CLERICI
mathieu.clerici at gmail.com
Mon Feb 28 06:57:18 EST 2011
Hi,
I'm trying to embed python in a c++ program.
I have compiled python32.lib with msvc 2010 targetting 32bits, i link
it with my program wich is also 32bit.
I get an error when calling Py_Initialize() : "no codec search
functions registered: can't find encoding"
Py_FileSystemDefaultEncoding value is "mbcs".
_PyCodec_Lookup raise an eror because len = PyList_Size(interp-
>codec_search_path); returns 0 in codecs.c
Does someone already had this problem ? I have no idea how to solve
that.
Sorry for my bad english.
More information about the Python-list
mailing list