[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] pyqtdeploy (win32): generated console exe crashes with LookupError: unknown encoding
From: Ilya Kulakov <kulakov.ilya () gmail ! com>
Date: 2015-11-09 19:16:59
Message-ID: E4285B0B-E971-4972-A27E-DD2AA78107CF () gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Looks like you didn't include any encodings in your pdy file.
Best Regards,
Ilya Kulakov
> On 09 Nov 2015, at 14:11, Marius Shekow <marius.shekow@fit.fraunhofer.de> wrote:
>
> Hi,
>
> I'm on Windows 8 and I'm trying to get my Python 3 PyQt application working as a \
> redistributable executable. I've been able to create the exe file using pyqtdeploy \
> successfully. I'm using sip and PyQt 5.5.1 as static builds, Qt and Python 3.4.3 as \
> dynamic builds. I'm using MSVS 2012 for compilation.
> When I start the executable (and the console option in pyqtdeploy is disabled), \
> simply nothing happens (no window is shown and I don't know how to get debug output \
> in this case). That's why I enabled the console option in pyqtdeploy. However, then \
> the exe file always immediately crashes with the following error:
> Fatal Python error: Py_Initialize: can't initialize sys standard streams
> LookupError: unknown encoding: cp850
>
> Please note that it doesn't matter whether I chcp the code page to something else \
> (in particular 65001, which doesn't work either, I'll just get "LookupError: \
> unknown encoding: cp65001").
> Any ideas?
>
> Best regards,
> Marius Shekow
> --
> Marius Shekow
> Mixed and Augmented Reality Solutions, Fraunhofer FIT
> http://www.fit.fraunhofer.de/mars
> Tel.: +49 (0)2241 - 14-2184
> _______________________________________________
> PyQt mailing list PyQt@riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[Attachment #5 (unknown)]
<html><head><meta http-equiv="Content-Type" content="text/html \
charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: \
space; -webkit-line-break: after-white-space;" class="">Looks like you didn't include \
any encodings in your pdy file.<div class=""><br class=""><div class=""> <span \
class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); \
font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: \
normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: \
-webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; \
word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; \
-webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; \
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="">Best \
Regards,</div><div class="">Ilya Kulakov</div><div class=""><br \
class=""></div></span><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 09 Nov 2015, at \
14:11, Marius Shekow <<a href="mailto:marius.shekow@fit.fraunhofer.de" \
class="">marius.shekow@fit.fraunhofer.de</a>> wrote:</div><br \
class="Apple-interchange-newline"><div class=""><div class="">Hi,<br class=""><br \
class="">I'm on Windows 8 and I'm trying to get my Python 3 PyQt application working \
as a redistributable executable. I've been able to create the exe file using \
pyqtdeploy successfully. I'm using sip and PyQt 5.5.1 as static builds, Qt and Python \
3.4.3 as dynamic builds. I'm using MSVS 2012 for compilation.<br class=""><br \
class="">When I start the executable (and the console option in pyqtdeploy is \
disabled), simply nothing happens (no window is shown and I don't know how to get \
debug output in this case). That's why I enabled the console option in pyqtdeploy. \
However, then the exe file always immediately crashes with the following error:<br \
class=""><br class="">Fatal Python error: Py_Initialize: can't initialize sys \
standard streams<br class="">LookupError: unknown encoding: cp850<br class=""><br \
class="">Please note that it doesn't matter whether I chcp the code page to something \
else (in particular 65001, which doesn't work either, I'll just get "LookupError: \
unknown encoding: cp65001").<br class=""><br class="">Any ideas?<br class=""><br \
class="">Best regards,<br class="">Marius Shekow<br class="">-- <br class="">Marius \
Shekow<br class="">Mixed and Augmented Reality Solutions, Fraunhofer FIT<br \
class=""><a href="http://www.fit.fraunhofer.de/mars" \
class="">http://www.fit.fraunhofer.de/mars</a><br class="">Tel.: +49 (0)2241 - \
14-2184<br class="">_______________________________________________<br class="">PyQt \
mailing list PyQt@riverbankcomputing.com<br \
class="">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</div></div></blockquote></div><br \
class=""></div></body></html>
[Attachment #6 (text/plain)]
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic