May-21-2022, 04:49 PM
(May-21-2022, 04:21 PM)Gribouillis Wrote: Clearly the listinterp->codec_search_path
is empty and the code expected this list to have been populated by some other part of the code. I suggest to grepcodec_search_path
in the source tree to find where it should be populated.
Apart from that, the value '/' forsys.executable
looks invalid because this variable normally contains the path to the python command.
Thanks for your suggestion.
I have found the following logic to append value to codec_search_path.
int PyCodec_Register(PyObject *search_function)
{
...
return PyList_Append(interp->codec_search_path, search_function); // <==== Set breakpoint
...
}
Tried setting breakpoint here, but it does not hit. It seems there is something wrong causes logic of append is not called.
I'm working on it.