[Slackbuilds-users] Solaar gui fails to run

Erich Ritz erich.public at protonmail.com
Mon Jun 19 13:02:31 UTC 2023


------- Original Message -------
On Monday, June 19th, 2023 at 1:21 AM, fourtysixandtwo <fourtysixandtwo at sliderr.net> wrote:


> Doing a bit of digging I see Willy reported a similar issue back in Nov. Maybe he can chime in? But it seems to have fixed itself.
> https://github.com/giampaolo/psutil/issues/2181
> 
> The author talks about it possibly finding "_psutil_posix.so" in the path, but it's only installed in the python2 version. Do you have python2-psutil or the old psutil slackbuild still installed? I would try removing them and reinstalling python3-psutil. I would also check if you have any pip installed packages.
> 
> I can't get anything to fail here, both solaar and locust build and run without errors.
> 
> 
> On Sun, Jun 18, 2023 at 8:46 PM KB_SBo <sbo at linuxgalaxy.org> wrote:
> 
> > Hello all,
> > 
> > I'm trying to an old logitech keyboard paired to another receiver - lost
> > the original. When running the GUI version the negative result is
> > 
> > $ solaar
> > solaar: error: Traceback (most recent call last):
> > File "/usr/lib64/python3.9/site-packages/solaar/gtk.py", line 165, in
> > main
> > import solaar.listener as listener
> > File "/usr/lib64/python3.9/site-packages/solaar/listener.py", line
> > 34, in <module>
> > from logitech_receiver import notifications as _notifications
> > File
> > "/usr/lib64/python3.9/site-packages/logitech_receiver/notifications.py",
> > line 27, in <module>
> > from . import diversion as _diversion
> > File
> > "/usr/lib64/python3.9/site-packages/logitech_receiver/diversion.py",
> > line 33, in <module>
> > import psutil
> > File "/usr/lib64/python3.9/site-packages/psutil/__init__.py", line
> > 102, in <module>
> > from . import _pslinux as _psplatform
> > File "/usr/lib64/python3.9/site-packages/psutil/_pslinux.py", line
> > 87, in <module>
> > PAGESIZE = cext_posix.getpagesize()
> > AttributeError: module 'psutil._psutil_posix' has no attribute 'getpagesize'
> > 
> > 
> > I used 'slpkg' and it looks like all was built in the right order
> > (unless I missed something):
> > 
> > • python3-flit_core.SlackBuild ✔️
> > • python3-flit_core-3.9.0-x86_64-1_SBo.tgz ✔️
> > • python3-installer.SlackBuild ✔️
> > • python3-installer-0.7.0-x86_64-1_SBo.tgz ✔️
> > • python3-pyproject-hooks.SlackBuild ✔️
> > • python3-pyproject-hooks-1.0.0-x86_64-1_SBo.tgz ✔️
> > • python3-wheel.SlackBuild ✔️
> > • python3-wheel-0.40.0-x86_64-1_SBo.tgz ✔️
> > • python3-build.SlackBuild ✔️
> > • python3-build-0.10.0-x86_64-1_SBo.tgz ✔️
> > • python3-psutil.SlackBuild ✔️
> > • python3-psutil-5.9.5-x86_64-1_SBo.tgz ✔️
> > • python3-xlib.SlackBuild ✔️
> > • python3-xlib-0.33-x86_64-1_SBo.tgz ✔️
> > • pyudev.SlackBuild ✔️
> > • pyudev-0.24.1-x86_64-1_SBo.tgz ✔️
> > • python-evdev.SlackBuild ✔️
> > • python-evdev-1.6.1-x86_64-1_SBo.tgz ✔️
> > • Solaar.SlackBuild ✔️
> > • Solaar-1.1.9-x86_64-1_SBo.tgz ✔️
> > 
> > Command line work exit for "pair" (did not test "config")
> > 
> > $ solaar pair
> > solaar: error: Traceback (most recent call last):
> > File "/usr/lib64/python3.9/site-packages/solaar/cli/__init__.py",
> > line 208, in run
> > m = import_module('.' + action, package=__name__)
> > File "/usr/lib64/python3.9/importlib/__init__.py", line 127, in
> > import_module
> > return _bootstrap._gcd_import(name[level:], package, level)
> > File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
> > File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
> > File "<frozen importlib._bootstrap>", line 986, in
> > _find_and_load_unlocked
> > File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
> > File "<frozen importlib._bootstrap_external>", line 850, in exec_module
> > File "<frozen importlib._bootstrap>", line 228, in
> > _call_with_frames_removed
> > File "/usr/lib64/python3.9/site-packages/solaar/cli/pair.py", line
> > 23, in <module>
> > from logitech_receiver import notifications as _notifications
> > File
> > "/usr/lib64/python3.9/site-packages/logitech_receiver/notifications.py",
> > line 27, in <module>
> > from . import diversion as _diversion
> > File
> > "/usr/lib64/python3.9/site-packages/logitech_receiver/diversion.py",
> > line 33, in <module>
> > import psutil
> > File "/usr/lib64/python3.9/site-packages/psutil/__init__.py", line
> > 102, in <module>
> > from . import _pslinux as _psplatform
> > File "/usr/lib64/python3.9/site-packages/psutil/_pslinux.py", line
> > 87, in <module>
> > PAGESIZE = cext_posix.getpagesize()
> > AttributeError: module 'psutil._psutil_posix' has no attribute 'getpagesize'
> > 
> > -kb
> > 


Feeding off the last reply (Solaar works for me):

$ locate _psutil_posix
/usr/lib64/python3.9/site-packages/psutil/_psutil_posix.abi3.so

But more versions of it existed in older packages:

$ grep psutil_posix /var/log/pkgtools/removed_packages/*
/var/log/pkgtools/removed_packages/psutil-5.6.7-x86_64-1_SBo:usr/lib64/python2.7/site-packages/psutil/_psutil_posix.so
/var/log/pkgtools/removed_packages/psutil-5.6.7-x86_64-1_SBo:usr/lib64/python3.9/site-packages/psutil/_psutil_posix.cpython-39-x86_64-linux-gnu.so
/var/log/pkgtools/removed_packages/psutil-5.6.7-x86_64-1_SBo-upgraded-2021-08-16,15:43:21:usr/lib64/python2.7/site-packages/psutil/_psutil_posix.so
/var/log/pkgtools/removed_packages/psutil-5.6.7-x86_64-1_SBo-upgraded-2021-08-16,15:43:21:usr/lib64/python3.9/site-packages/psutil/_psutil_posix.cpython-39-x86_64-linux-gnu.so
/var/log/pkgtools/removed_packages/psutil-5.6.7-x86_64-1_SBo-upgraded-2022-02-07,13:09:02:usr/lib64/python2.7/site-packages/psutil/_psutil_posix.so
/var/log/pkgtools/removed_packages/psutil-5.6.7-x86_64-1_SBo-upgraded-2022-02-07,13:09:02:usr/lib64/python3.9/site-packages/psutil/_psutil_posix.cpython-39-x86_64-linux-gnu.so
/var/log/pkgtools/removed_packages/psutil-5.6.7-x86_64-1_SBo-upgraded-2022-03-15,13:44:42:usr/lib64/python2.7/site-packages/psutil/_psutil_posix.so
/var/log/pkgtools/removed_packages/psutil-5.6.7-x86_64-1_SBo-upgraded-2022-03-15,13:44:42:usr/lib64/python3.9/site-packages/psutil/_psutil_posix.cpython-39-x86_64-linux-gnu.so
/var/log/pkgtools/removed_packages/psutil-5.6.7-x86_64-1_SBo-upgraded-2022-04-11,13:49:11:usr/lib64/python2.7/site-packages/psutil/_psutil_posix.so
/var/log/pkgtools/removed_packages/psutil-5.6.7-x86_64-1_SBo-upgraded-2022-04-11,13:49:11:usr/lib64/python3.9/site-packages/psutil/_psutil_posix.cpython-39-x86_64-linux-gnu.so
/var/log/pkgtools/removed_packages/psutil-5.6.7-x86_64-2_SBo:usr/lib64/python2.7/site-packages/psutil/_psutil_posix.so
/var/log/pkgtools/removed_packages/psutil-5.6.7-x86_64-2_SBo:usr/lib64/python3.9/site-packages/psutil/_psutil_posix.cpython-39-x86_64-linux-gnu.so
/var/log/pkgtools/removed_packages/python3-psutil-5.9.4-x86_64-1_SBo-upgraded-2023-05-01,13:44:35:usr/lib64/python3.9/site-packages/psutil/_psutil_posix.abi3.so
/var/log/pkgtools/removed_packages/python3-psutil-5.9.4-x86_64-2_SBo-upgraded-2023-05-16,08:54:02:usr/lib64/python3.9/site-packages/psutil/_psutil_posix.abi3.so
/var/log/pkgtools/removed_packages/python3-psutil-5.9.4-x86_64-3_SBo-upgraded-2023-05-23,12:55:37:usr/lib64/python3.9/site-packages/psutil/_psutil_posix.abi3.so


Can you try to remove any and all versions of psutil packages you have, make sure you don't have non-Slackware packages of psutil installed, and then rebuild psutil and all dependent packages?

Erich


More information about the SlackBuilds-users mailing list