Taiko2k / Tauon

The music player of today! :city_sunrise:
https://tauonmusicbox.rocks
GNU General Public License v3.0
1.77k stars 67 forks source link

Tauon crashes upon launch due to dependency not being updated for Python 3.12 #1143

Closed HAL703 closed 4 months ago

HAL703 commented 4 months ago

Hello, I noticed that Tauon no longer launches due to sdl2. py-sdl2 is not updated for Python 3.12, and it doesn't look like it will be for a long time, based on the commit history.

Error:

Tauon Music Box v7.7.2
Copyright 2015-2023 Taiko2k captain.gxj@gmail.com

Traceback (most recent call last):
  File "/opt/tauon-music-box/tauon.py", line 156, in <module>
    from sdl2 import *
ModuleNotFoundError: No module named 'sdl2'

I noticed that this error happens when a new python version is out, but I'm wondering if you have any sort of solution to this as downgrading Python isn't really an option. Thanks!

Platform is Arch Linux if needed. The AUR package also has not been updated in like 8 months. Related: https://github.com/Taiko2k/TauonMusicBox/issues/489 https://github.com/Taiko2k/TauonMusicBox/issues/439

HAL703 commented 4 months ago

For anyone coming across this issue with Tauon Music Box, the python dependencies need rebuilt, preferrably using a package manager.

Only if you are using Arch Linux:

You can query packages that need rebuilt with one of the following: pacman -Qoq <path/to/packages/to/query, pacman -Qoq /usr/lib/python3.11/site-packages/, or for any future python versions pacman -Qoq /usr/lib/python<versionhere>

If you want to use regular pacman, use the following: pacman -Qqo /usr/lib/python3.11 | pacman -Qm -

If you have yay, use the following: yay -S --answerclean All --rebuildall python-pysdl2 python-isounidecode python-pypresence You can also avoid using --answerclean if you so desire.

If you have paru, use the following: paru -S $(pacman -Qoq /usr/lib/python3.11) --rebuild

For other package managers or other solutions, please look it up! Hopefully this helps someone else out there, good luck!

Also thanks for making the best music player available Taiko2k!