Skip to content
This repository has been archived by the owner on Feb 12, 2021. It is now read-only.

Python error when default python is version 3 on the system #58

Open
tbigot opened this issue Oct 23, 2019 · 0 comments
Open

Python error when default python is version 3 on the system #58

tbigot opened this issue Oct 23, 2019 · 0 comments

Comments

@tbigot
Copy link

tbigot commented Oct 23, 2019

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)")')
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant