webbrowser模块错误? [英] webbrowser module bug?

查看:90
本文介绍了webbrowser模块错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



其他人是否有使用webbrowser模块的问题?

Python 2.5.1c1(release25-maint,2007年4月12日,21:00:25)

[gCC 4.1.2(Ubuntu 4.1.2-0ubuntu4)] on linux2

输入help,copyright,credit等等。或许可证或欲获得更多信息。


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'')
>>import webbrowser
webbrowser.open(''http://www.python.org'')



True

True


>>>
>>>



按预期打开firefox,但网址是...


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

当然不会做出预期的事情。


有什么想法吗?


Ron

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?

Ron

推荐答案

5月24日,下午5:03,Ron Adam< r ... @ ronadam.comwrote:
On May 24, 5:03 pm, Ron Adam <r...@ronadam.comwrote:

是否有其他人在使用webbrowser模块时遇到问题?


Python 2.5.1c1(release25-maint,2007年4月12日,21:00:25)
linux2上的
[GCC 4.1.2(Ubuntu 4.1.2-0ubuntu4)]

键入help,copyright,credit等。或许可证或欲获得更多信息。
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'')
>>import webbrowser
>>webbrowser.open(''http://www.python.org'')



True

True


>>>
>>>



按预期打开firefox,但网址是...


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

当然没有做到的预期。


有什么想法吗?


Ron


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?

Ron



我不知道。这适用于Windows XP SP2上的Python 2.4。

文档不多说( http: //docs.python.org/lib/module-

webbrowser.html)。也许阅读模块的

代码是有益的?或者使用注册手动命令?


Mike

I don''t know. This works for me with Python 2.4 on Windows XP SP2. The
docs don''t say much (http://docs.python.org/lib/module-
webbrowser.html). Maybe it would be beneficial to read the module''s
code? Or use the "register" command manually?

Mike


ky ****** @ gmail.com 写道:

5月24日下午5:03,Ron Adam< ; r ... @ ronadam.comwrote:
On May 24, 5:03 pm, Ron Adam <r...@ronadam.comwrote:

>其他人是否有使用webbrowser模块的问题?

Python 2.5.1c1 (release25-maint,2007年4月12日,21:00:25)
[Linux 4.1上的[GCC 4.1.2(Ubuntu 4.1.2-0ubuntu4)]
输入help,copyright, "币"或许可证或欲获得更多信息。
>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.

> >>导入webbrowser
webbrowser.open('''http://www.python.org'')
> >>import webbrowser
webbrowser.open(''http://www.python.org'')


True

True


> >>>
> >>>


按预期打开firefox,但网址是...

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

当然不会做什么预期。

任何想法?

Ron


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?

Ron



我不知道。这适用于Windows XP SP2上的Python 2.4。

文档不多说( http: //docs.python.org/lib/module-

webbrowser.html)。也许阅读模块的

代码是有益的?或者使用注册手动命令?


I don''t know. This works for me with Python 2.4 on Windows XP SP2. The
docs don''t say much (http://docs.python.org/lib/module-
webbrowser.html). Maybe it would be beneficial to read the module''s
code? Or use the "register" command manually?



它也适用于python 2.4,但不适用于更高版本。


看起来我需要尝试在webbrowser.py上调用

浏览器时测试网址。


其他人可以在python 2.5上测试吗?


Ron

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


Ron Adam写道:
Ron Adam wrote:
ky ****** @ gmail.com 写道:

> 5月24日,下午5:03,Ron Adam< r ... @ ronadam.comwrote:
>On May 24, 5:03 pm, Ron Adam <r...@ronadam.comwrote:

>>其他人是否有使用webbrowser模块的问题?

Python 2.5.1c1(release25-maint,2007年4月12日,21:00:25)
[linux 4.1上的[GCC 4.1.2(Ubuntu 4.1.2-0ubuntu4)]
输入帮助,版权,信用等。或许可证或欲了解更多信息。
>>导入webbrowser
>> webbrowser.open('''http://www.python.org'')
真的
> ;>>

按预期打开firefox,但网址是...

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

当然不会做什么预期。

任何想法?

Ron
>>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?

Ron


我不知道。这适用于Windows XP SP2上的Python 2.4。
文档不多说( http:// docs。 python.org/lib/module-
webbrowser.html)。也许阅读模块的代码是有益的?或者使用注册手动命令?

I don''t know. This works for me with Python 2.4 on Windows XP SP2. The
docs don''t say much (http://docs.python.org/lib/module-
webbrowser.html). Maybe it would be beneficial to read the module''s
code? Or use the "register" command manually?



它也适用于python 2.4,但不适用于更高版本。


看起来我需要尝试在webbrowser.py上调用

浏览器时测试网址。


其他人可以在python 2.5上测试吗?


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?



在我的Windows笔记本电脑上,它适用于2.4.1和2.5.1原生,但不适用于Cygwin的

2.5.1。


问候

Steve

-

Steve Holden +1 571 484 6266 +1 800 494 3119

Holden Web LLC / Ltd http://www.holdenweb.com

Skype:holdenweb http://del.icio。我们/ steve.holden

------------------ Asciimercial -------------- -------

上网:博客,镜头和标签你的名气!!

holdenweb.blogspot.com squidoo.com/ pythonology

标记物品:del.icio.us/steve.holden/python

所有这些服务目前提供免费注册!

--- -----------感谢您的阅读----------------

On my Windows laptop it works on 2.4.1 and 2.5.1 native, but not on
2.5.1 for Cygwin.

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
------------------ Asciimercial ---------------------
Get on the web: Blog, lens and tag your way to fame!!
holdenweb.blogspot.com squidoo.com/pythonology
tagged items: del.icio.us/steve.holden/python
All these services currently offer free registration!
-------------- Thank You for Reading ----------------


这篇关于webbrowser模块错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆