Public bug reported:

light-locker-settings is a python program (available from the
'Preferences' menu) that uses a third-party module called 'psutils'.
This module at one point had a method named 'get_pid_list()' which was
renamed to 'pids()'. The old name was deprecated at least two years ago
and then completely removed in the 3.0 release of psutils last June.
light-locker-settings uses the old method name in line 219 of light-
locker-settings.py, resulting in the following exception stack:

london@england:~$ light-locker-settings 
/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py:29:
 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, GLib, Gio
Traceback (most recent call last):
  File 
"/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py",
 line 697, in <module>
    main = LightLockerSettings()
  File 
"/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py",
 line 98, in __init__
    self.init_settings()
  File 
"/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py",
 line 454, in init_settings
    if self.check_running_process("xfce4-power-manager"):
  File 
"/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py",
 line 219, in check_running_process
    for pid in psutil.get_pid_list():
AttributeError: 'module' object has no attribute 'get_pid_list'
london@england:~$ 

The easy fix is to simply replace 'get_pid_list' with 'pids'.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: lightdm 1.18.1-0ubuntu1
ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
Uname: Linux 4.4.0-21-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CurrentDesktop: LXDE
Date: Sun May  1 13:20:17 2016
InstallationDate: Installed on 2016-05-01 (0 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
LightdmConfig:
 [Seat:*]
 autologin-guest=false
 autologin-user=london
 autologin-user-timeout=0
SourcePackage: lightdm
UpgradeStatus: Upgraded to xenial on 2016-05-01 (0 days ago)

** Affects: lightdm (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug xenial

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to lightdm in Ubuntu.
https://bugs.launchpad.net/bugs/1577208

Title:
  light-locker-settings crashes

Status in lightdm package in Ubuntu:
  New

Bug description:
  light-locker-settings is a python program (available from the
  'Preferences' menu) that uses a third-party module called 'psutils'.
  This module at one point had a method named 'get_pid_list()' which was
  renamed to 'pids()'. The old name was deprecated at least two years
  ago and then completely removed in the 3.0 release of psutils last
  June. light-locker-settings uses the old method name in line 219 of
  light-locker-settings.py, resulting in the following exception stack:

  london@england:~$ light-locker-settings 
  
/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py:29:
 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, GLib, Gio
  Traceback (most recent call last):
    File 
"/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py",
 line 697, in <module>
      main = LightLockerSettings()
    File 
"/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py",
 line 98, in __init__
      self.init_settings()
    File 
"/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py",
 line 454, in init_settings
      if self.check_running_process("xfce4-power-manager"):
    File 
"/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py",
 line 219, in check_running_process
      for pid in psutil.get_pid_list():
  AttributeError: 'module' object has no attribute 'get_pid_list'
  london@england:~$ 

  The easy fix is to simply replace 'get_pid_list' with 'pids'.

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: lightdm 1.18.1-0ubuntu1
  ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
  Uname: Linux 4.4.0-21-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  CurrentDesktop: LXDE
  Date: Sun May  1 13:20:17 2016
  InstallationDate: Installed on 2016-05-01 (0 days ago)
  InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
  LightdmConfig:
   [Seat:*]
   autologin-guest=false
   autologin-user=london
   autologin-user-timeout=0
  SourcePackage: lightdm
  UpgradeStatus: Upgraded to xenial on 2016-05-01 (0 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1577208/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to