[PyQt] pyqtdeploy: Encoding Error Causing Crash

Phil Thompson phil at riverbankcomputing.com
Fri Sep 25 16:07:56 BST 2015


On 25 Sep 2015, at 4:03 pm, Robert Kent <rob at gulon.co.uk> wrote:
> 
> Hi All,
> 
> Subsequent to my earlier trials and tribulations, I finally have an environment from which I can successfully build an executable with pyqtdeploy 1.1 on Windows 7 with (Py)Qt5.4 and the MSVC2010 compiler. However, when I run the application, I get:
> 
> Starting C:\Users\Rob\Documents\pyqtdeploy_test\build\release\TestApp.exe
> Fatal Python error: PyInitialize: can’t initialize sys standard streams
> Fatal Python error: LookupError: unknown encoding: cp1252
> Py_Initialize: can’t initialize sys standard streams
> C:\Users\Rob\Documents\pyqtdeploy_test\build\release\TestApp.exe exited with code 3
> 
> The exact same very basic, one file PyQt5 test application builds fine with pyqtdeploy on Mac so I’m guessing I’ve screwed up something on Windows… not sure what though!
> 
> All and any thoughts gratefully appreciated as always.

pyqtdeploy requires you to explicitly include the codecs you want to support.

Phil


More information about the PyQt mailing list