ryanwa18 / spotipi

Displays current song's cover art on 32x32 or 64x64 led matrix
MIT License
238 stars 38 forks source link

Python3 Compatibiliy #7

Closed Jordinho closed 10 months ago

Jordinho commented 2 years ago

Hi Ryan,

Thanks for all the effort for this post and the youtube videos you made. I enjoyed them.

Have you tried to run this on python3.8 or 3.9? I think I read somewhere you were using 2.7.10?

I ran your script but could not display anything on the led (i have done several other led matrix projects successfully). Through debugging I saw some warnings/errors that I think were caused by the new python version.

ryanwa18 commented 2 years ago

Yeah I made a comment about it in a previous issue. I would imagine that the rgb matrix library that is being used does not yet support the latest version of python.

I haven’t had time to look into this issue further but that would be my best guess. For now I would recommend installing an older version OS that still uses python 2.7

frod0r commented 2 years ago

The library from which adafruit forked their version actually has python3 support, see https://github.com/hzeller/rpi-rgb-led-matrix/tree/a93acf26990ad6794184ed8c9487ab2a5c39cd28/bindings/python

Building those bindings and then using your library with python3 worked like a charm for me after some minor adjustments