[PyQt] pyqtdeploy error - QTextCodec.codecForLocale returns None

Chandrakant Gopalan chandrakant.gopalan at pinogy.com
Tue Apr 26 19:43:29 BST 2016


PyQt installs its own copy of Qt correct? Does that mean that the Qt in PyQt is returning the wrong 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

Thanks
Chandrakant


----- Original Message -----
From: "Phil Thompson" <phil at riverbankcomputing.com>
To: "Chandrakant Gopalan" <chandrakant.gopalan at pinogy.com>
Cc: "pyqt" <pyqt at riverbankcomputing.com>
Sent: Tuesday, April 26, 2016 2:05:37 PM
Subject: Re: [PyQt] pyqtdeploy error - QTextCodec.codecForLocale returns None

On 26 Apr 2016, at 6:27 pm, Chandrakant Gopalan <chandrakant.gopalan at pinogy.com> wrote:
> 
> What should QTextCodec.codecForLocale() return? Also, another coworker with the same setup is facing the same issue.

...you are likely to have the same locale settings.

See the Qt docs for what it's supposed to return.

> Does pyqtdeploy support Qt 5.6? Just FYI, I noticed the config file PyQt5-win.cfg created has no "Qt 5.6" section, so I had to manually create one.

The version in hg does.

Phil


More information about the PyQt mailing list