[spambayes-dev] 1.0 Build Testing (please!)

Kenny Pitt kenny.pitt at gmail.com
Mon Sep 20 21:50:31 CEST 2004


Earlier, I wrote:
> Richie Hindle <richie at entrian.com> wrote:
> > I uninstalled SB, installed IE5.5, reinstalled SB, and the server
> > started but then silently quit.  I restarted it and was able to
> > configure it, but I couldn't connect.  Here's the log:
> > 
> > [snip details]
> >   File "spambayes\resources\__init__.pyc", line 30, in ?
> >   File "resourcepackage\package.pyc", line 100, in scan
> > WindowsError: [Errno 3] The system cannot find the path specified: 'C:\\PROGRAM FILES\\SPAMBAYES\\lib\\spambayes.zip\\spambayes\\resources/*.*'
> 
> Just guessing because I haven't had a chance to test this out myself,
> but this sounds like the binary was built with the resourcepackage
> scanning still enabled. IIRC, you need to replace __init__.py in
> spambayes/resources with a 0-length file before you build the release
> binary to prevent this.

I compiled a 0-length __init__.py in my source dir and used it to
replace the spambayes/resources/__init__.pyc in spambayes.zip. I also
deleted the .pyc files for resourcepackage.

After this change, sb_server remained running and I was able to access
the UI. When I tried to proxy through it to retrieve mail, however, I
got the following error in the log file (which looks remarkably
similar to the error Richie reported):

"""
error: uncaptured python exception, closing channel
<sb_server.BayesProxyListener listening :9210 at 0xd6a6c0>
(exceptions.KeyError:('pop3proxy', 'allow_remote_connections')
[asyncore.pyc|read|69] [asyncore.pyc|handle_read_event|384]
[spambayes\Dibbler.pyc|handle_accept|284] [sb_server.pyc|__init__|374]
[sb_server.pyc|__init__|191] [sb_server.pyc|onIncomingConnection|206]
[spambayes\OptionsClass.pyc|__getitem__|604]
[spambayes\OptionsClass.pyc|get|601]
[spambayes\OptionsClass.pyc|get_option|595])
"""

-- 
Kenny Pitt


More information about the spambayes-dev mailing list