[Spambayes] TypeError:object does not support item assignment

bruce bruce at argusology.com
Sat Nov 6 01:16:34 CET 2004

I'm having difficulty getting spambayes to work with my pop mail server and need some help troubleshooting.

- Linux version 2.4.27 
- spambayes-1.0rc2
I'm using stunnel to connect to my remote mail server, but it makes no
difference whether I connect directly to mailServer:110 - 
I get the same error messages. If I bypass spambayes, all is fine (except for the loads of spam, of course).

   [bruce at argusology mail]$ /usr/bin/sb_server.py
   SpamBayes POP3 Proxy Version 1.0 (July 2004)
   and engine SpamBayes Engine Version 0.3 (January 2004).

   Loading database... Listener on port 8110 is proxying localhost:110
   User interface url is http://localhost:8880/

when I try to connect to the pop server:
   [bruce at argusology bruce]$ telnet localhost 8110
   Connected to localhost.
   Escape character is '^]'.

I get ([bruce at argusology mail]):
   error: uncaptured python exception, closing channel <__main__.BayesProxyListener listening :8110 at 0x40acfe4c> /
       (exceptions.TypeError:object does not support item assignment

then I hit <enter>, and ([bruce at argusology bruce]):
   Connection closed by foreign host.

and I get ([bruce at argusology mail]):
   error: uncaptured python exception, closing channel <__main__.BayesProxy connected at 0x40c1d86c> /
       (exceptions.AttributeError:'_socketobject' object has no attribute 'serverSocket'
   Traceback (most recent call last):
     File "/usr/bin/sb_server.py", line 961, in ?
     File "/usr/bin/sb_server.py", line 955, in run
     File "/usr/bin/sb_server.py", line 892, in start
       main(state.servers, state.proxyPorts, state.uiPort, state.launchUI)
     File "/usr/bin/sb_server.py", line 872, in main
     File "/usr/lib/python2.4/site-packages/spambayes/Dibbler.py", line 701, in run    asyncore.loop(map=context._map)
     File "/usr/lib/python2.4/asyncore.py", line 192, in loop
       poll_fun(timeout, map)
     File "/usr/lib/python2.4/asyncore.py", line 133, in poll
     File "/usr/lib/python2.4/asyncore.py", line 73, in read
     File "/usr/lib/python2.4/site-packages/spambayes/Dibbler.py", line 204, in handle_error
     File "/usr/lib/python2.4/asyncore.py", line 421, in handle_error
     File "/usr/bin/sb_server.py", line 405, in close
       if not self.isClosed:
     File "/usr/lib/python2.4/asyncore.py", line 366, in __getattr__
       return getattr(self.socket, attr)
   AttributeError: '_socketobject' object has no attribute 'isClosed'

I would appreciate it greatly if someone could point me in the right direction.


More information about the Spambayes mailing list