[Pythonmac-SIG] Webbrowser module?

Schollnick, Benjamin Benjamin.Schollnick@usa.xerox.com
Fri, 11 Jan 2002 07:53:59 -0500


Sorry Jack...

It's been a long two days... >g<

It's Python 2.1.1 - MacPython....

On Mac OS 9.2.2, with 128M Ram.

Python 2.1.1 (#97, Aug  2 2001, 21:53:31)  [CW PPC GUSI2 THREADS] on mac
Type "copyright", "credits" or "license" for more information.
b>>> 
>>> import webbrowser
>>> webbrowser.open ("http://www.yahoo.com")
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "OS v9.1:Applications (Mac OS 9):Python 2.1.1:Lib:webbrowser.py",
line 43, in open
    get().open(url, new, autoraise)
  File "OS v9.1:Applications (Mac OS 9):Python 2.1.1:Lib:webbrowser.py",
line 38, in get
    raise Error("could not locate runnable browser")
webbrowser.Error: could not locate runnable browser
>>> 

The code that I'm attempting, is literally (from the Python Console):

import webbrowser
webbrowser.open ("www.yahoo.com")

I've also tried "http://www.yahoo.com"... in case it's parsing the http.

	- Benjamin

-----Original Message-----
From: Jack Jansen [mailto:jack@oratrix.nl]
Sent: Thursday, January 10, 2002 4:57 PM
To: Schollnick, Benjamin
Cc: pythonmac-sig@python.org
Subject: Re: [Pythonmac-SIG] Webbrowser module?



Recently, "Schollnick, Benjamin" <Benjamin.Schollnick@usa.xerox.com> said:
> I just sat down and attempted to use the webbrowser module
> on my Mac... And failed...
> 
> I've got the internet control panel configured right...
> (Pointing to the right browser)...
> 
> But 
> 
> webbrowser.open ("http://www.yahoo.com")
> 
> returns a trace & english text of "cannot locate runnable browser".

MacPython or MachoPython? Which version? Which OS? Could you send the
stacktrace?
--
- Jack Jansen        <Jack.Jansen@oratrix.com>
http://www.cwi.nl/~jack -
- If I can't dance I don't want to be part of your revolution -- Emma
Goldman -