[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] pyqtdeploy error - QTextCodec.codecForLocale returns None
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2016-04-26 20:53:47
Message-ID: 1F9AD716-5340-4ED7-8575-019FE103449E () riverbankcomputing ! com
[Download RAW message or body]

On 26 Apr 2016, at 7:43 pm, Chandrakant Gopalan <chandrakant.gopalan@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
_______________________________________________
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