Posts Tagged with "sourceforge"

FIX: Pyzor 0.4.0’s Discover Problem

July 24th, 2008 at 1:27 pm by Mark
Tags: , , , , , , , ,

     If you’re using Pyzor to help you block spam (a lot of people use it alongside SpamAssassin), then you’ve probably run into these nasty “pyzor: check failed: internal error” messages in your maillog since July 21st.
     After digging into on my own a bit, I found two things.  The first was the “InternalError” was being caused by a corrupt “servers” file that contained nothing but “File Not Found” information.  The second was that the “discover” command line was returning:

downloading servers from
Traceback (most recent call last):
  File “/usr/bin/pyzor”, line 4, in ?
  File “/usr/lib/python2.4/site-packages/pyzor/”, line 991, in run
  File “/usr/lib/python2.4/site-packages/pyzor/”, line 185, in run
    self.servers  = self.get_servers(servers_fn)
  File “/usr/lib/python2.4/site-packages/pyzor/”, line 410, in get_servers
  File “/usr/lib/python2.4/site-packages/pyzor/”, line 119, in read
  File “/usr/lib/python2.4/site-packages/pyzor/”, line 458, in from_str
    fields[1] = int(fields[1])
IndexError: list index out of range 

     Obviously, linking to non-existent files, especially in the /cgi-bin/ directory, is a bad thing.

     As a temporary measure, simply disable your “pyzor discover” cron job, and manually add “” into your “servers” file (wherever it may be with your configuration).