Using Mandrake 9.2 and spambayes vsn 1.0a7.
I just installed spambayes and was trying to set up
the preferences. (mail server, pwd, etc...) so I
tried running the web interface.
# sb_imapfilter.py -b
SpamBayes IMAP Filter Beta1, version 0.1 (September
2003),
using SpamBayes IMAP Filter Web Interface Alpha2,
version 0.02
and engine SpamBayes Beta2, version 0.2 (July 2003).
User interface url is http://localhost:8880/
Traceback (most recent call last):
File "/usr/bin/sb_imapfilter.py", line 825, in ?
run()
File "/usr/bin/sb_imapfilter.py", line 802, in run
Dibbler.run(launchBrowser=launchUI)
File
"/usr/lib/python2.3/site-packages/spambayes/Dibbler.py",
line 688, in run
webbrowser.open_new("http://localhost:%d/" %
context._HTTPPort)
File "/usr/lib/python2.3/webbrowser.py", line 47,
in open_new
get().open(url, 1)
File "/usr/lib/python2.3/webbrowser.py", line 39,
in get
raise Error("could not locate runnable browser")
webbrowser.Error: could not locate runnable browser
.. Couldn't this just notify you that you need to go
to 'http://localhost:8880' instead of throwing an
error?
konqueror is installed and mozilla should be
installed.
Logged In: YES
user_id=552329
By using the "-b" switch, you are requesting that the browser
be opened - if you run it without the "-b" switch, then it will
give the behaviour you request.
As to why the browser doesn't open - this is a python issue
rather than a spambayes one (you could try "import
webbrowser; webbrowser.open("http://url.here")" from
python, and it should give the same results. The help pages
for the webbrowser module in python give hints about how to
set things up so that a browser correctly opens.
Logged In: YES
user_id=85414
If webbrowser.open_new() fails, we now print a
message saying "Please point your web browser at
http://localhost:8880/" rather than bombing out.
Dibbler.py 1.12