You are not logged in.

#1 2018-01-14 18:23:29

redart
Member
Registered: 2016-12-03
Posts: 19

[SOLVED]Oblogout AttributeError

I have oblogout on two laptops both running lxde with lxdm.

On one machine it runs fine  but on the other I can only run it  as root.

Have checked permissions  for the relevant files and they are the same on both laptops.

Running as user in terminal I get:-

[tony@t400s ~]$ oblogout
Traceback (most recent call last):
  File "/bin/oblogout", line 97, in <module>
    sys.exit(main())
  File "/bin/oblogout", line 92, in main
    app = OpenboxLogout(config, local_mode)
  File "/usr/lib/python2.7/site-packages/oblogout/__init__.py", line 82, in __init__
    self.load_config(config)
  File "/usr/lib/python2.7/site-packages/oblogout/__init__.py", line 206, in load_config
    if self.backend == "HAL" or self.backend == "ConsoleKit":
AttributeError: OpenboxLogout instance has no attribute 'backend'

Can anyone help me make sense of these error messages?.

Last edited by redart (2018-01-14 22:15:14)

Offline

#2 2018-01-14 19:11:44

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: [SOLVED]Oblogout AttributeError

$ bsdtar xf ~/Downloads/oblogout-0.2-19-any.pkg.tar.xz 
$ awk 'NR==206' usr/lib/python2.7/site-packages/oblogout/__init__.py
            if self.parser.has_option("looks","buttontheme"):

It appears at least /usr/lib/python2.7/site-packages/oblogout/__init__.py does not match the file supplied by oblogout-0.2-19-any.pkg.tar.xz
What is the output of the following?

$ pacman -Qi oblogout
$ pacman -Qkk oblogout
$ pacman -Qo /usr/lib/python2.7/site-packages/oblogout/__init__.py

Offline

#3 2018-01-14 20:33:01

redart
Member
Registered: 2016-12-03
Posts: 19

Re: [SOLVED]Oblogout AttributeError

My apologies @loqs.  The package I have installed is actually oblogout-blurlock and not oblogout, which would explain the differences in the .py

When I installed oblogout it ran perfectly, however I like blurlock, so went back to oblogout-blurlock and used a different .conf file (left over from previous install?), modified the "lock" line and now it works as required.

Your reply got me going in the right direction,  so even though I asked the wrong question, you gave the right answer ! smile

Thanks again, and sorry for my noob mistake roll

Offline

#4 2018-01-14 20:47:20

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: [SOLVED]Oblogout AttributeError

Looking in https://aur.archlinux.org/cgit/aur.git/ … urlock#n14 it is not using using oblogout but https://github.com/Cloudef/oblogout-fork to provide oblogout.
oblogout-fork contains the bug and bundling two different sources in such a manner is also unusual.

Offline

Board footer

Powered by FluxBB