Choose style:

Author Topic: light-locker-settings in 16.04  (Read 1866 times)

0 Members and 1 Guest are viewing this topic.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26466
  • Karma: 2885
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
light-locker-settings in 16.04
« on: May 03, 2016, 10:11:51 am »
Anyone having problems with light-locker-settings in 16.04 not starting, and throwing up
Code: [Select]
AttributeError: 'module' object has no attribute 'get_pid_list'
when run from the command line ?

If so, here's the fix...

Seems light-locker-settings is using an old (depreciated ?) psutil module attribute .. run:
Code: [Select]
sudo gedit /usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py
find the 2 instances of
Code: [Select]
psutil.get_pid_list
and change them to
Code: [Select]
psutil.pids
SAVE the file.

Light Locker Settings should now work.

[EDIT]

If you then get this error:-
Code: [Select]
ImportError: No module named gi.repository
you need to install python-gi with:
Code: [Select]
sudo apt-get install python-gi
« Last Edit: May 03, 2016, 12:04:45 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Alex

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 8
    • View Profile
Re: light-locker-settings in 16.04
« Reply #1 on: May 03, 2016, 06:18:49 pm »
Thanks for the information.
Cheers.