Skip to content
This repository was archived by the owner on Feb 12, 2021. It is now read-only.
This repository was 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

@tbigot

Description

@tbigot

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions