[spambayes-bugs] [ spambayes-Bugs-842984 ] No browser found

SourceForge.net noreply at sourceforge.net
Wed Dec 31 09:11:03 EST 2003

Bugs item #842984, was opened at 2003-11-16 02:38
Message generated for change (Comment added) made by richiehindle
You can respond by visiting: 

Category: imapfilter
Group: Source code 1.0a6
Status: Closed
Resolution: Invalid
Priority: 5
Submitted By: Bip (bippo312)
Assigned to: Tony Meyer (anadelonbrin)
Summary: No browser found

Initial Comment:
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 
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 ? 
  File "/usr/bin/sb_imapfilter.py", line 802, in run 
line 688, in run 
    webbrowser.open_new("http://localhost:%d/" % 
  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 
konqueror is installed and mozilla should be 


>Comment By: Richie Hindle (richiehindle)
Date: 2003-12-31 14:11

Logged In: YES 

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


Comment By: Tony Meyer (anadelonbrin)
Date: 2003-11-18 03:01

Logged In: YES 

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.


You can respond by visiting: 

More information about the Spambayes-bugs mailing list