[Bug 1159854] Re: NameError: global name 'Chrome' is not defined

Sander Jonkers 1159854 at bugs.launchpad.net
Mon Mar 25 19:14:52 UTC 2013


Easy to reproduce. See below: just one import in python. 
And see http://bugs.python.org/issue17541


sander at appelboor:~$ python
Python 2.7.4rc1 (default, Mar 25 2013, 00:30:40) 
[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
>>>


** Bug watch added: Python Roundup #17541
   http://bugs.python.org/issue17541

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/1159854

Title:
  NameError: global name 'Chrome' is not defined

Status in “python-defaults” package in Ubuntu:
  Confirmed

Bug description:
  Traceback (most recent call last):
    File "/usr/bin/idle", line 3, in <module>
      from idlelib.PyShell import main
    File "/usr/lib/python2.7/idlelib/PyShell.py", line 27, in <module>
      from idlelib.EditorWindow import EditorWindow, fixwordbreaks
    File "/usr/lib/python2.7/idlelib/EditorWindow.py", line 8, in <module>
      import webbrowser
    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

  ProblemType: Bug
  DistroRelease: Ubuntu 13.04
  Package: idle 2.7.3-13ubuntu1
  ProcVersionSignature: Ubuntu 3.8.0-14.24-generic 3.8.4
  Uname: Linux 3.8.0-14-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.9.2-0ubuntu3
  Architecture: amd64
  CheckboxSubmission: a1c955fd38d4502805ce6f6dc842fe78
  CheckboxSystem: 2a6f54df59af338184485e85cbcf0d32
  Date: Mon Mar 25 16:43:50 2013
  InstallationDate: Installed on 2011-09-05 (567 days ago)
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20110901)
  MarkForUpload: True
  PackageArchitecture: all
  SourcePackage: python-defaults
  UpgradeStatus: Upgraded to raring on 2012-07-27 (241 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/1159854/+subscriptions




More information about the foundations-bugs mailing list