[PyKDE] DeprecationWarning when importing pyrcc4 generated module

Phil Thompson phil at riverbankcomputing.co.uk
Sat Aug 26 11:12:26 BST 2006


On Thursday 24 August 2006 6:43 am, Xavier Décoret wrote:
> 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.

Hopefully fixed in tonight's snapshot.

Phil




More information about the PyQt mailing list