[Bug 1159636] Re: python2.7 failed to import webbrowser: NameError in register_X_browsers(): global name 'Chrome' is not defined - Regression in 2.7.4~rc1-2ubuntu1

Jean-Baptiste Lallement jean-baptiste at ubuntu.com
Mon Mar 25 10:07:52 UTC 2013


** Summary changed:

- python2.7 failed to import webbrowser: NameError in register_X_browsers(): global name 'Chrome' is not defined
+ python2.7 failed to import webbrowser: NameError in register_X_browsers(): global name 'Chrome' is not defined - Regression in 2.7.4~rc1-2ubuntu1

** Description changed:

- It seems that the Ubuntu One client will not start
- 
+ The webbrowser module from python2.7-stdlib failed to import. It seems
+ to be a regression in python2.7 2.7.4~rc1-2ubuntu1, and it is not
+ reproducible with python2.7 2.7.4~rc1-0ubuntu1
  
  TEST CASE:
  1. From the command line run the command:
  $ python2.7 -c "import webbrowser"
  
  ACTUAL RESULT:
  $ python2.7 -c 'import webbrowser'
  Traceback (most recent call last):
-   File "<string>", 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))
+   File "<string>", 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
  
+ Original report:
+ It seems that the Ubuntu One client will not start
  
  ProblemType: Crash
  DistroRelease: Ubuntu 13.04
  Package: ubuntuone-client 4.1.92-0ubuntu1
  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-0ubuntu2
  Architecture: amd64
  Date: Mon Mar 25 07:00:34 2013
  ExecutablePath: /usr/lib/ubuntuone-client/ubuntuone-syncdaemon
  InstallationDate: Installed on 2012-10-28 (147 days ago)
  InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
  InterpreterPath: /usr/bin/python2.7
  MarkForUpload: True
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/lib/ubuntuone-client/ubuntuone-syncdaemon
  ProcEnviron:
   SHELL=/bin/bash
   XDG_RUNTIME_DIR=<set>
   PATH=(custom, no user)
   LANG=en_US.UTF-8
  PythonArgs: ['/usr/lib/ubuntuone-client/ubuntuone-syncdaemon']
  SourcePackage: ubuntuone-client
  Title: ubuntuone-syncdaemon crashed with NameError in register_X_browsers(): global name 'Chrome' is not defined
  UbuntuOneSyncdaemonExceptionsLog:
  
  UpgradeStatus: Upgraded to raring on 2013-02-18 (34 days ago)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
  mtime.conffile..etc.xdg.autostart.ubuntuone.launch.desktop: 2012-11-03T09:16:45.667113

** Description changed:

+ Raring
+ python2.7: 2.7.4~rc1-2ubuntu1
+ 
  The webbrowser module from python2.7-stdlib failed to import. It seems
  to be a regression in python2.7 2.7.4~rc1-2ubuntu1, and it is not
  reproducible with python2.7 2.7.4~rc1-0ubuntu1
  
  TEST CASE:
  1. From the command line run the command:
  $ python2.7 -c "import webbrowser"
  
  ACTUAL RESULT:
  $ python2.7 -c 'import webbrowser'
  Traceback (most recent call last):
    File "<string>", 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
  
  Original report:
  It seems that the Ubuntu One client will not start
  
  ProblemType: Crash
  DistroRelease: Ubuntu 13.04
  Package: ubuntuone-client 4.1.92-0ubuntu1
  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-0ubuntu2
  Architecture: amd64
  Date: Mon Mar 25 07:00:34 2013
  ExecutablePath: /usr/lib/ubuntuone-client/ubuntuone-syncdaemon
  InstallationDate: Installed on 2012-10-28 (147 days ago)
  InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
  InterpreterPath: /usr/bin/python2.7
  MarkForUpload: True
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/lib/ubuntuone-client/ubuntuone-syncdaemon
  ProcEnviron:
   SHELL=/bin/bash
   XDG_RUNTIME_DIR=<set>
   PATH=(custom, no user)
   LANG=en_US.UTF-8
  PythonArgs: ['/usr/lib/ubuntuone-client/ubuntuone-syncdaemon']
  SourcePackage: ubuntuone-client
  Title: ubuntuone-syncdaemon crashed with NameError in register_X_browsers(): global name 'Chrome' is not defined
  UbuntuOneSyncdaemonExceptionsLog:
  
  UpgradeStatus: Upgraded to raring on 2013-02-18 (34 days ago)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
  mtime.conffile..etc.xdg.autostart.ubuntuone.launch.desktop: 2012-11-03T09:16:45.667113

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

Title:
  python2.7 failed to import webbrowser: NameError in
  register_X_browsers(): global name 'Chrome' is not defined -
  Regression in 2.7.4~rc1-2ubuntu1

Status in “python2.7” package in Ubuntu:
  Confirmed
Status in “python2.7” package in Debian:
  Unknown

Bug description:
  Raring
  python2.7: 2.7.4~rc1-2ubuntu1

  The webbrowser module from python2.7-stdlib failed to import. It seems
  to be a regression in python2.7 2.7.4~rc1-2ubuntu1, and it is not
  reproducible with python2.7 2.7.4~rc1-0ubuntu1

  TEST CASE:
  1. From the command line run the command:
  $ python2.7 -c "import webbrowser"

  ACTUAL RESULT:
  $ python2.7 -c 'import webbrowser'
  Traceback (most recent call last):
    File "<string>", 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

  Original report:
  It seems that the Ubuntu One client will not start

  ProblemType: Crash
  DistroRelease: Ubuntu 13.04
  Package: ubuntuone-client 4.1.92-0ubuntu1
  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-0ubuntu2
  Architecture: amd64
  Date: Mon Mar 25 07:00:34 2013
  ExecutablePath: /usr/lib/ubuntuone-client/ubuntuone-syncdaemon
  InstallationDate: Installed on 2012-10-28 (147 days ago)
  InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
  InterpreterPath: /usr/bin/python2.7
  MarkForUpload: True
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/lib/ubuntuone-client/ubuntuone-syncdaemon
  ProcEnviron:
   SHELL=/bin/bash
   XDG_RUNTIME_DIR=<set>
   PATH=(custom, no user)
   LANG=en_US.UTF-8
  PythonArgs: ['/usr/lib/ubuntuone-client/ubuntuone-syncdaemon']
  SourcePackage: ubuntuone-client
  Title: ubuntuone-syncdaemon crashed with NameError in register_X_browsers(): global name 'Chrome' is not defined
  UbuntuOneSyncdaemonExceptionsLog:

  UpgradeStatus: Upgraded to raring on 2013-02-18 (34 days ago)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
  mtime.conffile..etc.xdg.autostart.ubuntuone.launch.desktop: 2012-11-03T09:16:45.667113

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/1159636/+subscriptions




More information about the foundations-bugs mailing list