spotify-make icon indicating copy to clipboard operation
spotify-make copied to clipboard

Python error when default python is version 3 on the system

Open tbigot opened this issue 6 years ago • 0 comments

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)")')

tbigot avatar Oct 23 '19 11:10 tbigot