This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients barry, ncoghlan, palm.kevin, pitrou, srid, tarek, vstinner
Date 2011-03-18.10:55:17
SpamBayes Score 3.6522502e-07
Marked as misclassified No
Message-id <1300445714.3492.1.camel@localhost.localdomain>
In-reply-to <1300435287.61.0.754594889923.issue11320@psf.upfronthosting.co.za>
Content
> As for this error:
>   Fatal Python error: Py_Initialize: Unable to get the locale encoding
>   LookupError: no codec search functions registered: can't find encoding
> 
> It seems to me that this error appears if the path passed to
> Py_SetPath does not point to a valid python lib folder.

Indeed, it does. The error message could perhaps get improved.
What Python does is try to find the current locale's encoding in the
"encodings" package and load it. If it can't find it, it assumes that's
because the encoding is unknown, not because the path is wrong.
History
Date User Action Args
2011-03-18 10:55:18pitrousetrecipients: + pitrou, barry, ncoghlan, vstinner, tarek, srid, palm.kevin
2011-03-18 10:55:17pitroulinkissue11320 messages
2011-03-18 10:55:17pitroucreate