Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no tray, nwg-panel on openSUSE Tumbleweed #387

Open
bashprompt opened this issue Jan 25, 2025 · 2 comments
Open

no tray, nwg-panel on openSUSE Tumbleweed #387

bashprompt opened this issue Jan 25, 2025 · 2 comments

Comments

@bashprompt
Copy link

Building nwg-panel using install.sh in 0.9.62 release tarball. Trying to get tray to work. Otherwise nwg-panel appears to work correctly.

Running with hyprland 0.46.2. Same behavior with sway.
:~$ uname -a
Linux hostname 6.12.10-1-default #1 SMP PREEMPT_DYNAMIC Sat Jan 18 08:45:07 UTC 2025 (a1e0c36) x86_64 x86_64 x86_64 GNU/Linux

Here are the clues. I can send more info if you tell me what to send. I'm a user, not a programmer, so focusing on the top error message when starting nwg-panel, about the system tray and python-dasbus, as a place to start. Thanks very much.

:~$ nwg-panel&

[1] 66184
:~$ Couldn't load system tray, is 'python-dasbus' installed?
Common settings {'restart-on-display': True, 'restart-delay': 500, 'processes-backgroud-only': True, 'processes-own-only': True}
Dependencies check: {'light': False, 'brightnessctl': True, 'ddcutil': True, 'pamixer': True, 'pactl': True, 'playerctl': True, 'wlr-randr': True, 'hyprctl': True, 'upower': True, 'swaync': True, 'python-requests': True}
Running on Hyprland
Outputs: {'HDMI-A-1': {'x': -1920, 'y': 0, 'width': 1920, 'height': 1080, 'description': 'Ancor Communications Inc ASUS VH236H A6LMTF020393', 'monitor': <__gi__.GdkWaylandMonitor object at 0x7f8657bf2140 (GdkWaylandMonitor at 0x55f3f3e4bd00)>}}
Descriptions: {'Ancor Communications Inc ASUS VH236H A6LMTF020393': 'HDMI-A-1'}
left box created
center box created
right box created
Panel 'panel-top': output: HDMI-A-1, monitor: , position: top, layer: bottom, width: 1920, height: 28
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
Could not connect to CC service. Will wait for connection...
:~$ his: '_1737811018_1915668995', starting hypr_watcher

The messages at end of running install.sh:
--snip--

nwg_panel.__pycache__.config.cpython-311.opt-1: module references __file__
nwg_panel.__pycache__.config.cpython-311: module references __file__
nwg_panel.__pycache__.main.cpython-311.opt-1: module references __file__
nwg_panel.__pycache__.main.cpython-311: module references __file__
nwg_panel.modules.__pycache__.openweather.cpython-311.opt-1: module references __file__
nwg_panel.modules.__pycache__.openweather.cpython-311: module references __file__
creating 'dist/nwg_panel-0.9.62-py3.11.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing nwg_panel-0.9.62-py3.11.egg
creating /usr/local/lib/python3.11/site-packages/nwg_panel-0.9.62-py3.11.egg
Extracting nwg_panel-0.9.62-py3.11.egg to /usr/local/lib/python3.11/site-packages
Adding nwg-panel 0.9.62 to easy-install.pth file
detected new path './nwg_panel-0.9.62-py3.11.egg'
Installing nwg-dwl-interface script to /usr/local/bin
Installing nwg-panel script to /usr/local/bin
Installing nwg-panel-config script to /usr/local/bin
Installing nwg-processes script to /usr/local/bin

Installed /usr/local/lib/python3.11/site-packages/nwg_panel-0.9.62-py3.11.egg
Processing dependencies for nwg-panel==0.9.62
Searching for pygobject==3.50.0
Best match: pygobject 3.50.0
Adding pygobject 3.50.0 to easy-install.pth file

Using /usr/lib64/python3.11/site-packages
Searching for pycairo==1.26.1
Best match: pycairo 1.26.1
Adding pycairo 1.26.1 to easy-install.pth file

Using /usr/lib64/python3.11/site-packages
Finished processing dependencies for nwg-panel==0.9.62

:~$ python3 --version
Python 3.11.11

:~$ python --version
Python 2.7.18

:~$ python -m site

sys.path = [
    '/home/username',
    '/usr/lib64/python311.zip',
    '/usr/lib64/python3.11',
    '/usr/lib64/python3.11/lib-dynload',
    '/home/username/.local/lib/python3.11/site-packages',
    '/usr/local/lib/python3.11/site-packages',
    '/usr/local/lib/python3.11/site-packages/nwg_icon_picker-0.1.1-py3.11.egg',
    '/usr/local/lib/python3.11/site-packages/nwg_panel-0.9.62-py3.11.egg',
    '/usr/lib64/python3.11/site-packages',
    '/usr/lib64/python3.11/site-packages/PIL',
    '/usr/lib64/python3.11/_import_failed',
    '/usr/lib/python3.11/site-packages',
]
USER_BASE: '/home/username/.local' (exists)
USER_SITE: '/home/username/.local/lib/python3.11/site-packages' (exists)
ENABLE_USER_SITE: True

:~$ python -c "import sys; print('\n'.join(sys.path))"

/usr/lib64/python311.zip
/usr/lib64/python3.11
/usr/lib64/python3.11/lib-dynload
/home/username/.local/lib/python3.11/site-packages
/usr/local/lib/python3.11/site-packages
/usr/local/lib/python3.11/site-packages/nwg_icon_picker-0.1.1-py3.11.egg
/usr/local/lib/python3.11/site-packages/nwg_panel-0.9.62-py3.11.egg
/usr/lib64/python3.11/site-packages
/usr/lib64/python3.11/site-packages/PIL
/usr/lib64/python3.11/_import_failed
/usr/lib/python3.11/site-packages

:~$ rpm -qi python311-dasbus

Name        : python311-dasbus
Version     : 1.7
Release     : 1.11
Architecture: noarch
Install Date: Fri 24 Jan 2025 11:28:28 AM CST
Group       : Development/Libraries/Python
Size        : 431416
License     : LGPL-2.0-or-later
Signature   : RSA/SHA512, Thu 09 Jan 2025 08:41:58 AM CST, Key ID 35a2f86e29b700a4
Source RPM  : python-dasbus-1.7-1.11.src.rpm
Build Date  : Thu 01 Dec 2022 07:18:57 PM CST
Build Host  : reproducible
Packager    : https://bugs.opensuse.org
Vendor      : openSUSE
URL         : https://github.com/rhinstaller/dasbus
Summary     : DBus library in Python 3
Description :
DBus library in Python 3, based on GLib and inspired by pydbus.
Distribution: openSUSE Tumbleweed

:~$ ls /usr/lib/python3.11/site-packages/dasbus*

/usr/lib/python3.11/site-packages/dasbus:
total 108
drwxr-xr-x 1 root root   124 Jan 24 11:28 client
-rw-r--r-- 1 root root 11614 Dec  1  2022 connection.py
-rw-r--r-- 1 root root  1376 Dec  1  2022 constants.py
-rw-r--r-- 1 root root  8797 Dec  1  2022 error.py
-rw-r--r-- 1 root root  6519 Dec  1  2022 identifier.py
-rw-r--r-- 1 root root     0 Dec  1  2022 __init__.py
-rw-r--r-- 1 root root  1951 Dec  1  2022 loop.py
-rw-r--r-- 1 root root  1472 Dec  1  2022 namespace.py
drwxr-xr-x 1 root root  1372 Jan 24 11:28 __pycache__
drwxr-xr-x 1 root root   184 Jan 24 11:28 server
-rw-r--r-- 1 root root  2159 Dec  1  2022 signal.py
-rw-r--r-- 1 root root  9155 Dec  1  2022 specification.py
-rw-r--r-- 1 root root 12846 Dec  1  2022 structure.py
-rw-r--r-- 1 root root 12171 Dec  1  2022 typing.py
-rw-r--r-- 1 root root  8802 Dec  1  2022 unix.py
-rw-r--r-- 1 root root  5010 Dec  1  2022 xml.py

/usr/lib/python3.11/site-packages/dasbus-1.7-py3.11.egg-info:
total 20
-rw-r--r-- 1 root root    1 Dec  1  2022 dependency_links.txt
-rw-r--r-- 1 root root 6226 Dec  1  2022 PKG-INFO
-rw-r--r-- 1 root root 1658 Dec  1  2022 SOURCES.txt
-rw-r--r-- 1 root root    7 Dec  1  2022 top_level.txt

:~$ rpm -qi libglib-2_0-0

Name        : libglib-2_0-0
Version     : 2.82.4
Release     : 1.1
Architecture: x86_64
Install Date: Sat 18 Jan 2025 09:35:27 PM CST
Group       : System/Libraries
Size        : 2090690
License     : LGPL-2.1-or-later
Signature   : RSA/SHA512, Fri 17 Jan 2025 12:00:54 PM CST, Key ID 35a2f86e29b700a4
Source RPM  : glib2-2.82.4-1.1.src.rpm
Build Date  : Wed 15 Jan 2025 12:14:10 PM CST
Build Host  : reproducible
Packager    : https://bugs.opensuse.org
Vendor      : openSUSE
URL         : https://gitlab.gnome.org/GNOME/glib/
Summary     : General-Purpose Utility Library
Description :
GLib is a general-purpose utility library, which provides many useful
data types, macros, type conversions, string utilities, file utilities,
a main loop abstraction, and so on.
Distribution: openSUSE Tumbleweed
@nwg-piotr
Copy link
Owner

nwg-piotr commented Jan 25, 2025

Yes, the [dasbus python](library https://github.com/dasbus-project/dasbus) must be missing from your system. According to the docs:

Install on openSUSE

Install the system package on openSUSE Tumbleweed or openSUSE Leap 15.2+.

sudo zypper install python3-dasbus

I know nothing on openSUSE, sorry.

@bashprompt
Copy link
Author

Thanks for looking a it. python-dasbus is installed and on the path. I appreciate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants