From pykde Sat Aug 26 10:12:26 2006 From: Phil Thompson Date: Sat, 26 Aug 2006 10:12:26 +0000 To: pykde Subject: Re: [PyKDE] DeprecationWarning when importing pyrcc4 generated module Message-Id: <200608261112.26711.phil () riverbankcomputing ! co ! uk> X-MARC-Message: https://marc.info/?l=pykde&m=115658798100905 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 _______________________________________________ PyKDE mailing list PyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde