homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Importing `webbrowser` module gives NameError in Python 2.7.4rc1
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 2.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, codeaditya, gkcn, gz
Priority: normal Keywords:

Created on 2013年03月25日 11:22 by codeaditya, last changed 2022年04月11日 14:57 by admin. This issue is now closed.

Messages (3)
msg185194 - (view) Author: Aditya (codeaditya) Date: 2013年03月25日 11:22
Python 2.7.4rc1 (default, Mar 25 2013, 00:32:18) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import webbrowser
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/usr/lib/python2.7/webbrowser.py", line 505, in <module>
 register_X_browsers()
 File "/usr/lib/python2.7/webbrowser.py", line 489, in register_X_browsers
 register(browser, None, Chrome(browser))
NameError: global name 'Chrome' is not defined
>>>
msg185197 - (view) Author: Martin (gz) * Date: 2013年03月25日 12:03
This looks like a downstream issue in a patch Debian is applying:
<http://bugs.debian.org/cgi-bin/bugreport.cgi?archive=no&bug=703872>
<http://patch-tracker.debian.org/patch/series/view/python2.7/2.7.4~rc1-2/webbrowser.diff>
msg185200 - (view) Author: Gökcen Eraslan (gkcn) * Date: 2013年03月25日 13:11
Yeah, it seems Debian guys forgot to backport these classes:
https://github.com/akheron/cpython/blob/master/Lib/webbrowser.py#L275 
History
Date User Action Args
2022年04月11日 14:57:43adminsetgithub: 61743
2013年03月25日 14:27:46ezio.melottisetstatus: open -> closed
nosy: + benjamin.peterson

resolution: not a bug
stage: resolved
2013年03月25日 13:11:26gkcnsetnosy: + gkcn
messages: + msg185200
2013年03月25日 12:03:38gzsetnosy: + gz
messages: + msg185197
2013年03月25日 11:22:24codeadityacreate

AltStyle によって変換されたページ (->オリジナル) /