goes16-background icon indicating copy to clipboard operation
goes16-background copied to clipboard

Cannot start goes16-background under Python 3.12 on any Linux distro

Open manjaroer opened this issue 1 year ago • 0 comments

I use goes16-background on KDE Plasma 5 and 6. Both X11 and Wayland. Manjaro, EndeavourOS, Debian 12 Testing - all has this issue. MX-Linux, Debian 12 Stable - no problems. When I start the script

goes16-background

It returns the following:

Traceback (most recent call last): File "/usr/bin/goes16-background", line 33, in sys.exit(load_entry_point('goes16-background==1.2.0', 'console_scripts', 'goes16-background')()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/bin/goes16-background", line 25, in importlib_load_entry_point return next(matches).load() ^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/importlib/metadata/init.py", line 205, in load module = import_module(match.group('module')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/importlib/init.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1387, in _gcd_import File "", line 1360, in _find_and_load File "", line 1331, in _find_and_load_unlocked File "", line 935, in _load_unlocked File "", line 995, in exec_module File "", line 488, in _call_with_frames_removed File "/usr/lib/python3.12/site-packages/goes16background/main.py", line 22, in import appdirs ModuleNotFoundError: No module named 'appdirs'

After installing goes16-background-git via Arch Aur

goes16-background 1.2.0 Updating... Latest version: 2024/09/07 20:00:20 UTC. Downloading tiles... Downloading tiles: 1/4 completed... Downloading tiles: 2/4 completed... Downloading tiles: 3/4 completed... Downloading tiles: completed. Saving to '/home/alex/.cache/goes16background/goes16-20240907T200020.png'... grep: /proc//environ: Нет такого файла или каталога Could NOT retrieve env. var. GNOME_DESKTOP_SESSION_ID Plasma version 'plasmashell 6.1.4 '. Exception in thread goes16-background-main-thread: Traceback (most recent call last): File "/usr/lib/python3.12/threading.py", line 1075, in _bootstrap_inner self.run() File "/usr/lib/python3.12/threading.py", line 1012, in run self._target(*self._args, **self._kwargs) File "/usr/lib/python3.12/site-packages/goes16background/main.py", line 166, in thread_main if not set_background(output_file): ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/goes16background/utils.py", line 64, in set_background subprocess.check_output(["qdbus", "org.kde.plasmashell", "/PlasmaShell", File "/usr/lib/python3.12/subprocess.py", line 466, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/subprocess.py", line 1026, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.12/subprocess.py", line 1955, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'qdbus'

And that's all. No way to start the script. I still can start it with Python 3.11.2 in MX-Linux or Debian 12 Stable.

The second issue is the Pillow has changed and no way to compose Earth over the background image.

Please, help to update this beautiful script! Don't drop it!

I don't know why the font of the error is bold and large.

manjaroer avatar Sep 07 '24 16:09 manjaroer