Ir al contenido principal

Ralsina.Me — El sitio web de Roberto Alsina

Good news in PyQt

Phil´s sup­port is great. That´s good enough news, but he helped me make im­ages-and-http-in-q­textbrows­er work again.

I think I will pack­age that wid­get neat­ly, be­cause it´s of gen­er­al use­ful­ness.

Roberto Alsina / 2006-04-03 05:42:

If you are using Python earlier than 2.2, it's probably because the script tries to iterate over a file, and that's a new feature.



Try replacing



for line in open(message):



by



for line in open(message).readlines():



If that's line 55, of course ;-)



Any problem, just email by clicking on the little envelope :-)

Hari / 2006-04-03 05:42:

Hi



I am so greatful for the qmail-cleaner script, it looks like the perfect tool for my qmail problems..... but having trouble, was hoping if you could please solve this problem with using the tool....



When I run it it gives the following error: and I have no clue to solve this..

your two minutes would save me so much toruble, thanks a ton in advance:



Traceback (most recent call last):

File "./qc.py", line 80, in ?

check (msgdir+"/"+dir+"/"+file)

File "./qc.py", line 55, in check

for line in open(message):

TypeError: loop over non-sequence


Contents © 2000-2024 Roberto Alsina