Package Details: oblogout-py3-git 0.03.r7.gff2b059-1

Git Clone URL: https://aur.archlinux.org/oblogout-py3-git.git (read-only, click to copy)
Package Base: oblogout-py3-git
Description: Openbox Logout Menu, ported to Python 3.
Upstream URL: https://github.com/trizen/oblogout-py3
Keywords: oblogout openbox python3
Licenses: GPL2
Conflicts: oblogout, oblogout-fork-git
Provides: oblogout
Submitter: trizen
Maintainer: trizen
Last Packager: trizen
Votes: 20
Popularity: 0.000000
First Submitted: 2020-07-06 12:31 (UTC)
Last Updated: 2024-04-28 12:23 (UTC)

Latest Comments

1 2 3 Next › Last »

imeguras commented on 2026-02-24 21:12 (UTC) (edited on 2026-02-24 21:12 (UTC) by imeguras)

For me this worked

# Maintainer: trizen (original)

pkgname=oblogout-py3-git
_pkgname=oblogout-py3

pkgver=0.03.r7.gff2b059
pkgrel=2
pkgdesc="Openbox Logout Menu, ported to Python 3."
arch=('any')
url="https://github.com/trizen/${_pkgname}"
license=('GPL2')

depends=(
  'python'
  'python-pillow'
  'python-cairo'
  'python-gobject'
)

makedepends=(
  'git'
  'python-setuptools'
)

backup=("etc/oblogout.conf")

provides=('oblogout')
conflicts=('oblogout' 'oblogout-fork-git')

install="oblogout.install"

source=("git+https://github.com/trizen/${_pkgname}.git")
sha512sums=('SKIP')

prepare() {
  cd "$_pkgname"
  sed -i 's:po-dir:po_dir:' setup.cfg
}

pkgver() {
  cd "$_pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}


build() {
  cd "$_pkgname"
  python setup.py build
}


package() {
  cd "$_pkgname"

  python setup.py install \
    --root="$pkgdir" \
    --prefix=/usr \
    --optimize=1 \
    --single-version-externally-managed

  install -Dm644 data/oblogout.conf \
    "$pkgdir/etc/oblogout.conf"
}

pkerichang commented on 2025-12-09 22:15 (UTC)

With help from this thread, I was able to solve it: https://forums.gentoo.org/viewtopic-p-8860838.html?sid=bebc92c57a1d9cfb311e591f44ce1228

Simply add the following section to PKGBUILD, I add it between sha512sums and pkgver():

prepare() {
  cd "$_pkgname"
  sed -i 's:po-dir:po_dir:' setup.cfg
}

The newlines are important.

MickeyRat commented on 2025-11-03 10:26 (UTC) (edited on 2025-11-03 10:31 (UTC) by MickeyRat)

The solution isn't working for me. If I add the line:

prepare() { cd "$srcdir/$_pkgname" sed -i 's/[build_i18n]//g' setup.cfg sed -i 's/po-dir=po//g' setup.cfg }

I get:

==> ERROR: Failed to source /tmp/oblogout-py3-git/PKGBUILD [mickeyrat@groucho oblogout-py3-git]$ makepkg -si /tmp/oblogout-py3-git/PKGBUILD: line 32: syntax error: unexpected end of file from `{' command on line 31 ==> ERROR: Failed to source /tmp/oblogout-py3-git/PKGBUILD

Sausad commented on 2025-09-13 22:02 (UTC)

Work for me by adding this in PKGBUILD

prepare() { cd "$srcdir/$_pkgname" sed -i 's/[build_i18n]//g' setup.cfg sed -i 's/po-dir=po//g' setup.cfg }

imeguras commented on 2025-06-12 12:51 (UTC)

to fix the issue of victor3d i added this(deletes a problematic section prepare(){ cd "$srcdir/$_pkgname" sed -i '/[build_i18n]/,/^[/d' setup.cfg }

victor3d commented on 2025-04-24 20:56 (UTC)

There is an error when compiling:

/usr/lib/python3.13/site-packages/setuptools/dist.py:334: InformationOnly: Normalizing '0.03' to '0.3'
  self.metadata.version = self._normalize_version(self.metadata.version)
/usr/lib/python3.13/site-packages/setuptools/_distutils/cmd.py:90: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
error: error in setup.cfg: command 'build_i18n' has no such option 'po-dir'

victor3d commented on 2024-04-28 11:49 (UTC)

Just reinstall the package, no need to patch

showipatlogon commented on 2024-04-28 04:07 (UTC) (edited on 2024-04-28 04:10 (UTC) by showipatlogon)

I'm having this error when executing oblogout.


Traceback (most recent call last):
  File "/bin/oblogout", line 103, in <module>
    sys.exit(main())
             ^^^^^^
  File "/bin/oblogout", line 98, in main
    app = OpenboxLogout(config, local_mode)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/oblogout/__init__.py", line 90, in __init__
    self.load_config(config)
  File "/usr/lib/python3.12/site-packages/oblogout/__init__.py", line 193, in load_config
    self.parser = configparser.SafeConfigParser()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?

To fix it:

sudo nano /usr/lib/python3.12/site-packages/oblogout/__init__.py

find this line: self.parser = configparser.SafeConfigParser()

change it to: self.parser = configparser.ConfigParser()

Probably a patch file will be needed until they fix it on their end.

trizen commented on 2021-12-15 04:43 (UTC)

Just reinstall the package.