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

SourceForge.net noreply at sourceforge.net
Mon Nov 17 22:01:12 EST 2003


Bugs item #842984, was opened at 2003-11-16 15:38
Message generated for change (Comment added) made by anadelonbrin
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=842984&group_id=61702

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 
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. 

----------------------------------------------------------------------

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

Message:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=842984&group_id=61702



More information about the Spambayes-bugs mailing list