update-manager crashed with SyntaxError in find_cookie(): invalid or missing encoding declaration for '/usr/bin/sys'

Bug #1512209 reported by Anders Kaseorg
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Python
Won't Fix
Unknown
pygobject
Fix Released
Medium
pygobject (Ubuntu)
Confirmed
Medium
Unassigned
update-manager (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

update-manager crashed with SyntaxError in find_cookie(): invalid or missing encoding declaration for '/usr/bin/sys'

ProblemType: Crash
DistroRelease: Ubuntu 16.04
Package: update-manager 1:15.10.3
ProcVersionSignature: Ubuntu 4.2.0-16.19-generic 4.2.3
Uname: Linux 4.2.0-16-generic x86_64
NonfreeKernelModules: openafs
ApportVersion: 2.19.2-0ubuntu1
Architecture: amd64
CurrentDesktop: GNOME-Classic:GNOME
Date: Sun Nov 1 22:34:22 2015
EcryptfsInUse: Yes
ExecutablePath: /usr/bin/update-manager
GsettingsChanges:
 b'com.ubuntu.update-manager' b'show-details' b'true'
 b'com.ubuntu.update-manager' b'window-height' b'813'
 b'com.ubuntu.update-manager' b'first-run' b'false'
 b'com.ubuntu.update-manager' b'window-width' b'500'
 b'com.ubuntu.update-manager' b'launch-time' b'1445601355'
InstallationDate: Installed on 2015-06-02 (152 days ago)
InstallationMedia: Ubuntu-GNOME 15.04 "Vivid Vervet" - Release amd64 (20150422)
InterpreterPath: /usr/bin/python3.5
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 /usr/bin/update-manager --no-update --no-focus-on-map
PythonArgs: ['/usr/bin/update-manager', '--no-update', '--no-focus-on-map']
SourcePackage: update-manager
Title: update-manager crashed with SyntaxError in find_cookie(): invalid or missing encoding declaration for '/usr/bin/sys'
UpgradeStatus: Upgraded to xenial on 2015-10-28 (4 days ago)
UserGroups: adm bumblebee cdrom dip libvirtd lpadmin plugdev sambashare sbuild sudo wireshark

Revision history for this message
Anders Kaseorg (andersk) wrote :
tags: removed: need-duplicate-check
Changed in update-manager (Ubuntu):
importance: Undecided → Medium
Anders Kaseorg (andersk)
information type: Private → Public
Changed in pygobject:
importance: Unknown → Medium
status: Unknown → Fix Released
Changed in python:
status: Unknown → Won't Fix
Revision history for this message
Anders Kaseorg (andersk) wrote :

This is a combination of two problems. One is that starting update-manager results in these warnings:

/usr/bin/update-manager:28: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py:26: PyGIWarning: GdkX11 was imported without specifying a version first. Use gi.require_version('GdkX11', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gdk, GdkX11
/usr/lib/python3/dist-packages/UpdateManager/UnitySupport.py:29: PyGIWarning: Dbusmenu was imported without specifying a version first. Use gi.require_version('Dbusmenu', '0.4') before import to ensure that the right version gets loaded.
  from gi.repository import Dbusmenu, Unity
/usr/lib/python3/dist-packages/UpdateManager/UnitySupport.py:29: PyGIWarning: Unity was imported without specifying a version first. Use gi.require_version('Unity', '7.0') before import to ensure that the right version gets loaded.
  from gi.repository import Dbusmenu, Unity

The other is that when openafs-client is installed, the presence of /usr/bin/sys causes Python to crash while displaying these warnings (see linked bugs).

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in pygobject (Ubuntu):
status: New → Confirmed
Changed in update-manager (Ubuntu):
status: New → Confirmed
Changed in pygobject (Ubuntu):
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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