[Spambayes] socket.error:(24, 'Too many open files'

Bill Bedford billb at mousa.uk.com
Mon Feb 27 08:54:15 CET 2006


I've recently upgraded my system from Mac OS X 10.2 to 10.3.9 and since 
then I have been having problems with Spambayes crashing. I suspect 
that this is caused by something wrong with the system rather than 
Spambayes itself. Can anyone point me to a solution?


error: uncaptured python exception, closing channel 
<__main__.BayesProxyListener listening :8110 at 0x5f4558> 
(socket.error:(24, 'Too many open files') 
[/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/asyncore.py|read|69] 
[/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/asyncore.py|handle_read_event|385] 
[/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/spambayes/Dibbler.py|handle_accept|293] 
[sb_server.py|__init__|449] [sb_server.py|__init__|270] 
[sb_server.py|__init__|151] 
[/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/asyncore.py|create_socket|258] 
[/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/socket.py|__init__|156])
error: uncaptured python exception, closing channel 
<__main__.BayesProxy connected 127.0.0.1:51468 at 0x2069800> 
(exceptions.AttributeError:'_socketobject' object has no attribute 
'isClosed' 
[/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/asyncore.py|read|69] 
[/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/asyncore.py|handle_read_event|391] 
[/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/asynchat.py|handle_read|89] 
[sb_server.py|recv|472] 
[/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/asyncore.py|recv|347] 
[/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/asynchat.py|handle_close|156] 
[sb_server.py|close|480] 
[/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/asyncore.py|__getattr__|366])
Traceback (most recent call last):
  File "sb_server.py", line 1096, in ?
    run()
  File "sb_server.py", line 1090, in run
    start()
  File "sb_server.py", line 1025, in start
    main(state.servers, state.proxyPorts, state.uiPort, state.launchUI)
  File "sb_server.py", line 1005, in main
    Dibbler.run(launchBrowser=launchUI)
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/spambayes/Dibbler.py", 
line 727, in run
    asyncore.loop(map=context._map)
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/asyncore.py", 
line 192, in loop
    poll_fun(timeout, map)
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/asyncore.py", 
line 133, in poll
    read(obj)
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/asyncore.py", 
line 73, in read
    obj.handle_error()
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/spambayes/Dibbler.py", 
line 213, in handle_error
    asynchat.async_chat.handle_error(self)
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/asyncore.py", 
line 421, in handle_error
    self.close()
  File "sb_server.py", line 480, in close
    if not self.isClosed:
  File 
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/asyncore.py", 
line 366, in __getattr__
    return getattr(self.socket, attr)
AttributeError: '_socketobject' object has no attribute 'isClosed'
logout
[Process completed]

-- 
Bill Bedford

"Nothing is as important as model railways and even that isn't very 
important" 

-some wiseguy somewhere 


More information about the SpamBayes mailing list