[Slackbuilds-users] Solaar gui fails to run

fourtysixandtwo fourtysixandtwo at sliderr.net
Mon Jun 19 06:21:33 UTC 2023


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
>
>
>
>
>
>
>
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20230619/8d487ea5/attachment-0001.htm>


More information about the SlackBuilds-users mailing list