[PyQt] LookupErrorFatal Python error: : unknown encoding: cp936
Phil Thompson
phil at riverbankcomputing.com
Sun Sep 4 14:36:23 BST 2016
On 1 Sep 2016, at 5:06 pm, Zhao Lee <redstone-cold at 163.com> wrote:
>
> I am using pyqtdeploy to deployment my PyQt5 application on win7,
> Working environment :
> OS: Win7 sp1 x86
> Qt_5_7_0_MSVC2015_32bit
>
>
> after built the application code and the qmake .pro file, the qmake command get succeed ,
> <undefined>
>
>
> After built the application code and the qmake .pro file, then I load the project with Qt Creator and try to run the project , I got error
>
>
> Starting C:\Qt\SYSROOT\project\build\release\PyQtDeployTest.exe...
> Fatal Python error: Py_Initialize: can't initialize sys standard streams
> LookupErrorFatal Python error: : unknown encoding: cp936
>
> Current thread 0x00001e68 (most recent call first):
> Py_Initialize: can't initialize sys standard streams
> C:\Qt\SYSROOT\project\build\release\PyQtDeployTest.exe exited with code 3
>
>
>
> so how to fix the issue?
Add the missing codec using the "Standard Library" tab.
Phil
More information about the PyQt
mailing list