Brian van den Broek wrote:
> Ron Adam said unto the world upon 05/25/2007 12:28 PM:
>> [EMAIL PROTECTED] wrote:
>>> On May 24, 5:03 pm, Ron Adam <[EMAIL PROTECTED]> wrote:
>>>> Is anyone else having problems with the webbrowser module?
>>>>
>>>> Python 2.5.1c1 (release25-maint, Apr 12 2007, 21:00:25)
>>>> [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
>>>> Type "help", "copyright", "credits" or "license" for more information.
>>>>  >>> import webbrowser
>>>>  >>> webbrowser.open('http://www.python.org')
>>>> True
>>>>  >>>
>>>>
>>>> It opens firefox as expected, but the url is ...
>>>>
>>>>       file:///home/ron/%22http://www.python.org%22
>>>>
>>>> Which of course doesn't do what is expected.
>>>>
>>>> Any ideas?
> 
> <snip>
> 
>> It works for me on python 2.4 also, but not on later versions.
>>
>> Looks like I'll need to try to test the url at the point where it calls the 
>> browser from webbrowser.py.
>>
>> Can someone else test this on python 2.5?
>>
>> Ron
> 
> Works fine for me on ubuntu 7.04 (fiesty) with Python 2.5.1c1, which 
> appear to be your set-up, too.
> 
> Python 2.5.1c1 (release25-maint, Apr 12 2007, 21:00:25)
> [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>  >>> import webbrowser
>  >>> webbrowser.open('http://www.python.org')
> True
>  >>>
> 
> Best,
> 
> Brian vdB

Thanks,

This is strange.  Now I have no idea where to look.  (?)


I get the same incorrect results doing...

     [EMAIL PROTECTED]:~$ python2.5 -m webbrowser 'http://www.python.org'

Firefox attempts to open...

     file:///home/ron/%22http://www.python.org%22


The following works ok:

     [EMAIL PROTECTED]:~$ firefox 'http://www.python.org'


Works in the Ubuntu 2.4.4 dist (But blocks until the browser is closed.)

Doesn't work in the Ubuntu 2.5.1c1 dist
      Python 2.5.1c1 (release25-maint, Apr 12 2007, 21:00:25)

Doesn't work in the 2.5 maintenance branch
      Python 2.5 (release25-maint:54563, May 24 2007, 18:33:45)

Works in the 2.6 branch (trunk)
Works in the 3.0 branch


I'll  try uninstalling and reinstalling. The Ubuntu 2.5 dist.

None of the svn versions are on the path, so it shouldn't be a path 
conflict with them.

Ron


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to