Pyzor testing?

Michele Neylon :: Blacknight Solutions michele at BLACKNIGHTSOLUTIONS.COM
Tue Nov 18 01:32:18 GMT 2003


You may have two copies of python on the system... We solved this problem
once before though I think we had to do some weird messing around

Mr. Michele Neylon
Blacknight Internet Solutions Ltd
http://www.blacknightsolutions.ie/
http://www.search.ie/
Tel. + 353 (0)59 9139897
Lowest price domains in Ireland

> -----Original Message-----
> From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK]On
> Behalf Of Dan Farmer
> Sent: 18 November 2003 01:27
> To: MAILSCANNER at JISCMAIL.AC.UK
> Subject: Re: Pyzor testing?
>
>
> Michele-
>
> Yeah, in the errors, you can see pyzor is installed into the python2.3
> directory structure, and:
> # python
> Python 2.3.2 (#1, Nov 14 2003, 14:32:17)
> [GCC 2.96 20000731 (Red Hat Linux 7.2 2.96-108.1)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>  >>>
>
> I checked the Bugs link on sourceforge, and see two others with the
> exact same symptoms as me with no responses that even hint at what the
> cause may be.
>
> I ran the unittests.py file hoping I was doing it right (I know nothing
> about python, really) and got the following-
>
> # python unittests.py
> ..................F
> ======================================================================
> FAIL: test_cleaning (__main__.rfc822BodyCleanerTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "unittests.py", line 191, in test_cleaning
>      self.assertEqual(line, expected.readline())
>    File "/usr/local/lib/python2.3/unittest.py", line 302, in
> failUnlessEqual
>      raise self.failureException, \
> AssertionError: '\n' != '<?xml version="1.0" encoding="UTF-8"?>\r\n'
>
> ----------------------------------------------------------------------
> Ran 19 tests in 0.015s
>
> FAILED (failures=1)
>
> there is only one page found by google for the string "test_cleaning",
> and it is irrelevant to pyzor, so I'm up a certain creek without a
> paddle. Any other ideas?
>
> Dan
>
> On Nov 17, 2003, at 6:02 PM, Michele Neylon :: Blacknight Solutions
> wrote:
>
> > Dan
> >
> > Have you got the correct version of Python installed?
> > Pyzor needs a more recent version than any available as standard on
> > RH7.*
> > M
> >
> > Mr. Michele Neylon
> > Blacknight Internet Solutions Ltd
> > http://www.blacknightsolutions.ie/
> > http://www.search.ie/
> > Tel. + 353 (0)59 9139897
> > Lowest price domains in Ireland
> >
> >> -----Original Message-----
> >> From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK]On
> >> Behalf Of Dan Farmer
> >> Sent: 18 November 2003 00:56
> >> To: MAILSCANNER at JISCMAIL.AC.UK
> >> Subject: Re: Pyzor testing?
> >>
> >>
> >> Boy do I feel stupid, I just realized I could probably test the GTUBE
> >> Standard Test Email, so I created a second test message to try, and
> >> got
> >> the following results:
> >>
> >> # pyzor check < rfc822.gtube
> >> Traceback (most recent call last):
> >>    File "/usr/local/bin/pyzor", line 4, in ?
> >>      pyzor.client.run()
> >>    File "/usr/local/lib/python2.3/site-packages/pyzor/client.py", line
> >> 934, in run
> >>      ExecCall().run()
> >>    File "/usr/local/lib/python2.3/site-packages/pyzor/client.py", line
> >> 188, in run
> >>      if not apply(dispatch, (self, args)):
> >>    File "/usr/local/lib/python2.3/site-packages/pyzor/client.py", line
> >> 264, in check
> >>      response = runner.run(server, (digest, server))
> >>    File "/usr/local/lib/python2.3/site-packages/pyzor/client.py", line
> >> 725, in run
> >>      response = apply(self.routine, varargs, kwargs)
> >>    File "/usr/local/lib/python2.3/site-packages/pyzor/client.py", line
> >> 57, in check
> >>      msg = CheckRequest(digest)
> >>    File "/usr/local/lib/python2.3/site-packages/pyzor/__init__.py",
> >> line
> >> 381, in __init__
> >>      typecheck(digest, str)
> >>    File "/usr/local/lib/python2.3/site-packages/pyzor/__init__.py",
> >> line
> >> 494, in typecheck
> >>      raise TypeError
> >> TypeError
> >>
> >> So apparently, it isn't installed quite right. Does anyone else have
> >> this working on RHAS 2.1 (or RH 7.2)?
> >>
> >> Thanks, again....
> >> Dan
> >>
> >> On Nov 17, 2003, at 5:42 PM, Dan Farmer wrote:
> >>
> >>> Am I correct in trying to test a message like this:
> >>> ] pyzor check < rfc822.spam
> >>> 66.250.40.33:24441      (200, 'OK')     48      0
> >>
> >>
> >
> > #########################################################
> > This message (and any attachment) is intended only for the
> > recipient and may contain confidential and/or privileged
> > material.  If you have received this in error, please contact the
> > sender and delete this message immediately.  Disclosure, copying
> > or other action taken in respect of this email or in
> > reliance to it is prohibited.
> >
>
>


#########################################################
This message (and any attachment) is intended only for the
recipient and may contain confidential and/or privileged
material.  If you have received this in error, please contact the
sender and delete this message immediately.  Disclosure, copying
or other action taken in respect of this email or in
reliance to it is prohibited.



More information about the MailScanner mailing list