Taiko2k / Tauon

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

python-tekore error #1129

Open ParadoxPacer opened 2 months ago

ParadoxPacer commented 2 months ago

I got Tauon working on macos, as per [https://github.com/Taiko2k/TauonMusicBox/issues/577](your instructions).

I even got the .app working by using the "pyinstaller mac.spec --clean --noconfirm" command.

Untitled 2

However, when logging into spotify, i run into this error:

Screenshot 2024-04-15 at 21 56 52

I already installed tekore

image

and after restarting multiple times, im still running into this issue

Taiko2k commented 2 months ago

Try run python3 tauon.py before the pyinstaller step and try it. If that works then it would be an issue with how the app is being packaged. Don't ask me how to fix it though, I kind of gave up on macOS support due to difficulties with pyinstaller.

ParadoxPacer commented 2 months ago

This worked, thank you.

By the way, the way to get build working is by first replacing line 14 (dbus-python) in requirements.txt with dbus-next, since dbus-python is deprecated

Then i ran 'pip3 install -r requirements.txt'

Then i ran "bash compile-phazor.sh"

After that, i ran "python3 tauon.py" in the TauonMusicbox directory

I got the pyinstaller step working by first installing pyinstaller with pip3 install pyinstaller

Then i installed ffmpeg@5 with 'brew install ffmpeg@5' since ffmpeg 6 is kinda broken.

Then i changed line 12 of mac.spec from '(prefix + '/bin/ffmpeg', '.'),' to '(prefix + '/Cellar/ffmpeg@5', '.'),'

And then i ran "pyinstaller mac.spec --clean --noconfirm" and that worked fine, i now have the .app file in ~/TauonMusicbox/dist

I could upload the .dmg file if that would help.