[Bug 1024599] Re: apt_check.py crashed with SyntaxError in unknown(): invalid syntax

colin murphy 1024599 at bugs.launchpad.net
Sun Sep 30 14:06:12 UTC 2012


Patch for my previous comment.

The syntax:
except A, B:

Is no longer allowed in Python 3.

http://www.python.org/dev/peps/pep-3110/

** Attachment added: "replace "except SystemError, e:" with "except SystemError as e:""
   https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/1024599/+attachment/3358341/+files/apt_check.py-patch

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

Title:
  apt_check.py crashed with SyntaxError in unknown(): invalid syntax

Status in “update-notifier” package in Ubuntu:
  Confirmed

Bug description:
  Automatic run of update-notifier and then the crash.

  ProblemType: Crash
  DistroRelease: Ubuntu 12.10
  Package: update-notifier-common 0.119ubuntu15
  ProcVersionSignature: Ubuntu 3.5.0-4.4-generic 3.5.0-rc6
  Uname: Linux 3.5.0-4-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.3-0ubuntu4
  Architecture: amd64
  Date: Fri Jul 13 23:45:51 2012
  ExecutablePath: /usr/lib/update-notifier/apt_check.py
  InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
  InterpreterPath: /usr/bin/python3.2mu
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/lib/update-notifier/apt-check
  ProcEnviron:
   LANGUAGE=pt_BR:pt:pt_PT
   PATH=(custom, no user)
   LANG=pt_BR.UTF-8
   SHELL=/bin/bash
  PythonArgs: ['/usr/lib/update-notifier/apt-check']
  SourcePackage: update-notifier
  Title: apt_check.py crashed with SyntaxError in unknown(): invalid syntax
  Traceback:
   File "/usr/lib/update-notifier/apt-check", line 91
       except SystemError, e:
                         ^
   SyntaxError: invalid syntax
  UpgradeStatus: Upgraded to quantal on 2012-04-01 (103 days ago)
  UserGroups: adm admin cdrom dialout libvirtd lpadmin plugdev sambashare sudo

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/1024599/+subscriptions




More information about the foundations-bugs mailing list