[PyKDE] DeprecationWarning when importing pyrcc4 generated module

Xavier Décoret Xavier.Decoret at imag.fr
Thu Aug 24 06:43:16 BST 2006


Javier Sanz a écrit :
> Hi.
> I'm using pyrcc4 to convert the images my program uses to a an
> import-able python module. I'm doing it successfully, but I'm getting
> this warning whenever I import the resource module:
>
> DeprecationWarning: Non-ASCII character '\xe9' in file
> C:\prog\python\ogbot\src\ui\BotResources.py on line 3, but no encoding
> declared; see http://www.python.org/peps/pep-0263.html for details
> import BotResources
>
> Any help appreciated.
> PD: I'm using QT 4.1, PyQt v4 and python 2.4
>
Same problem. I am adding this line
# -*- coding: utf-8 -*-
on top of the file and it is fixed. However, I have to do it again after 
each pyrcc4.

I agree it should be handled by pyrcc4.




More information about the PyQt mailing list