Package Details: python-pystray 0.17.1-2

Git Clone URL: https://aur.archlinux.org/python-pystray.git (read-only, click to copy)
Package Base: python-pystray
Description: Allows to create a system tray icon
Upstream URL: https://github.com/moses-palmer/pystray
Keywords: python systray
Licenses: GPL3
Submitter: nicoulaj
Maintainer: franck.stauffer
Last Packager: franck.stauffer
Votes: 4
Popularity: 0.127127
First Submitted: 2019-03-09 21:46
Last Updated: 2020-11-05 09:04

Latest Comments

franck.stauffer commented on 2020-08-18 11:44

@JP-Undercover: Thank you

JP-Undercover commented on 2020-08-18 11:28

I've updated to the last LTS kernel (5.4) in Manjaro and typing import pystray from python 3.8.5 console returns:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.8/site-packages/pystray/__init__.py", line 48, in <module>
    Icon = backend().Icon
  File "/usr/lib/python3.8/site-packages/pystray/__init__.py", line 40, in backend
    return importlib.import_module(__package__ + '._' + module)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/lib/python3.8/site-packages/pystray/_appindicator.py", line 22, in <module>
    gi.require_version('AppIndicator3', '0.1')
  File "/usr/lib/python3.8/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace AppIndicator3 not available

I managed to fix the error by installing libappindicator-gtk3 from the official arch repositories, so I'm guessing it's a missing dependency which Manjaro or myself might have done something to remove from the system because the package worked previously. After the fix it's working as expected.

kruzah commented on 2020-04-12 18:54

Build appears to fail if python2-pip is not installed; "WARNING: The pip package is not available, falling back to EasyInstall for handling setup_requires/test_requires; this is deprecated and will be removed in a future version." followed by a stack trace for syntax error in setup.py. Installing pip appears to fix the issue.

yochananmarqos commented on 2019-12-18 20:49

python-sphinx / python2-sphinx is not required, it's only for building documentation.

yochananmarqos commented on 2019-09-23 22:24

This does not build as dependencies are missing. See the setup.py for details.

You should have a build() array.

You should add the dependencies separately for each package:

prepare() {
  cp -a ${_pkgname}-${pkgver}{,-py2}
}

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

  cd .. && cd "$_pkgname-$pkgver-py2"
  python2 setup.py build
}

package_python-${_pkgname}() {
  depends=('python-pillow' 'python-xlib')

  cd ${_pkgname}-$pkgver
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}

package_python2-${_pkgname}() {
  depends=('python2-pillow' 'python2-xlib')

  cd ${_pkgname}-$pkgver-py2
  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build