varietywalls / variety

Wallpaper downloader and manager for Linux systems
http://peterlevi.com/variety
GNU General Public License v3.0
1.2k stars 146 forks source link

No longer starts after python3.11 upgrade #645

Closed lionslair closed 1 year ago

lionslair commented 1 year ago

Version of Variety current from ppa or ubuntu / pop repos

Describe the bug Was working but noticed after reboot does not start or load wallpapers. tried manually to start and get the following output


╰─$ variety                                                                                         130 ↵
Traceback (most recent call last):
  File "/usr/bin/variety", line 64, in <module>
    import variety  # isort:skip
    ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/variety/__init__.py", line 18, in <module>
    import dbus, dbus.service, dbus.glib
  File "/usr/lib/python3/dist-packages/dbus/__init__.py", line 73, in <module>
    import dbus.types as types
  File "/usr/lib/python3/dist-packages/dbus/types.py", line 8, in <module>
    from _dbus_bindings import (
ModuleNotFoundError: No module named '_dbus_bindings'

Context Have tried all sorts of uninstall reinstall and install and reinstall of dbus packages but no success.

Attach Variety's log file Attached

variety.log

Desktop environment and version

OS name and version Pop!_OS 22.04 LTS

Additional context ╰─$ variety 1 ↵ Traceback (most recent call last): File "/usr/bin/variety", line 64, in import variety # isort:skip ^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/variety/init.py", line 18, in import dbus, dbus.service, dbus.glib File "/usr/lib/python3/dist-packages/dbus/init.py", line 73, in import dbus.types as types File "/usr/lib/python3/dist-packages/dbus/types.py", line 8, in from _dbus_bindings import ( ModuleNotFoundError: No module named '_dbus_bindings'

lionslair commented 1 year ago

I got around it making multiple symlinks.

sudo cp _dbus_bindings.cpython-310-x86_64-linux-gnu.so _dbus_bindings.cpython-311-x86_64-linux-gnu.so
sudo ln -s _gi.cpython-310-x86_64-linux-gnu.so _gi.so
sudo ln -s _imaging.cpython-310-x86_64-linux-gnu.so _imaging.so
sudo ln -s _cairo.cpython-310-x86_64-linux-gnu.so _cairo.so