spotify-make
spotify-make copied to clipboard
Python error when default python is version 3 on the system
Using Mageia 7, the default Python version is 3:
$ python --version
Python 3.8.0
So, during the make download, we have:
$ make download
File "<string>", line 1
import os.path; print os.path.relpath("/home/tbigot/_/share/spotify-client", "/home/tbigot/_/lib/spotify-client")
^
SyntaxError: invalid syntax
The line
lib_to_data := $(shell python -c 'import os.path; \
print os.path.relpath("$(app_datadir)", \
"$(app_libdir)")')
should be replaced with this one, specifying explicitely python2:
lib_to_data := $(shell python2 -c 'import os.path; \
print os.path.relpath("$(app_datadir)", \
"$(app_libdir)")')