From pykde Thu Nov 30 08:13:52 2006 From: "Martin Kiebacher" Date: Thu, 30 Nov 2006 08:13:52 +0000 To: pykde Subject: Re: [PyKDE] pylupdate4 parse error on files with .pyw extension Message-Id: <719944540611300013k19ba5ac1yb56f3b1e399f70c6 () mail ! gmail ! com> X-MARC-Message: https://marc.info/?l=pykde&m=116487521305788 Thank's for your quick info. I'am using the binaries, so i'll wait for a fix in the next official pyqt-release. martin 2006/11/29, Andreas Pakulat : > On 29.11.06 16:05:53, Martin Kiebacher wrote: > > Hello list, > > > > when i try to create a .ts-file from my python-script with > > .pyw-extension, i'm getting the following error message from > > pylupdate4: > > > > XML error: Parse error at line 1, column 1 (error occurred while > > parsing element). > > form_04.pyw: Parse error in UI file > > > > A ts-file is being created, but without the necessary elements in it. > > When i rename the file-extension to .py everything works fine! > > > > Here is the command-line i used: > > > > pylupdate4 -verbose src\form_04.pyw -ts translations\form_de.ts > > > > os is windows xp. > > Fix is simple, change pylupdate/main.cpp line 241 to read: > if ( fi.suffix() == "py" || fi.sufffix() == "pyw" ) { > > If you're using PyQt4 binaries, I guess you have to wait until Phil > fixes this in a snapshot. > > Andreas > > -- > Don't let your mind wander -- it's too little to be let out alone. > > _______________________________________________ > PyKDE mailing list PyKDE@mats.imk.fraunhofer.de > http://mats.imk.fraunhofer.de/mailman/listinfo/pykde > _______________________________________________ PyKDE mailing list PyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde