[PyQt] pyqtdeploy error - QTextCodec.codecForLocale returns None
Phil Thompson
phil at riverbankcomputing.com
Tue Apr 26 21:53:47 BST 2016
On 26 Apr 2016, at 7:43 pm, Chandrakant Gopalan <chandrakant.gopalan at pinogy.com> wrote:
>
> PyQt installs its own copy of Qt correct?
Yes if you are using the Windows installer.
> Does that mean that the Qt in PyQt is returning the wrong locale?
It's returning no locale.
> I tried this:
>
> C:\Program Files (x86)\Microsoft Visual Studio 14.0>ipython
> Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:38:48) [MSC v.1900 32 bit (Intel)]
> Type "copyright", "credits" or "license" for more information.
>
> IPython 4.2.0 -- An enhanced Interactive Python.
> ? -> Introduction and overview of IPython's features.
> %quickref -> Quick reference.
> help -> Python's own help system.
> object? -> Details about 'object', use 'object??' for extra details.
>
> In [1]: from PyQt5.QtCore import QTextCodec
>
> In [2]: QTextCodec.codecForLocale()
>
> In [3]: QTextCodec.codecForLocale() == None
> Out[3]: True
Which confirms it is returning no locale.
As I suggested, have you tried changing your locale settings?
Phil
More information about the PyQt
mailing list