NameError: global name 'Chrome' is not defined

Bug #1159854 reported by Leonardo Corato on 2013-03-25
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
python-defaults (Ubuntu)
Undecided
Unassigned

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)

Leonardo Corato (leocor) wrote :
Simon Cedergren (c-simon) wrote :

I also has this problem when trying to start software centre. I am new to this bug-reporting-thingy, so if there is something I can do - please explain!

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python-defaults (Ubuntu):
status: New → Confirmed
Sander Jonkers (jonkers) wrote :

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

sander@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
>>>

Sami Jaktholm (sjakthol) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 1159636, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.