Schlaubischlump / shairport-metadatareader-python

A shairport-metadata-reader package written in Python, which supports reading the metadata from the pipe file, the UDP-server and the MQTT server if configured.
GNU General Public License v3.0
9 stars 4 forks source link

Failed to install in Raspberry Pi #4

Closed efung1232 closed 2 years ago

efung1232 commented 2 years ago

My OS : Linux 5.10.11-v7l+ #1399 SMP Thu Jan 28 12:09:48 GMT 2021 armv7l GNU/Linux pip install git+https://github.com/htruong/shairport-metadatareader-python --> failed I have installed the required python packages suggested in the Readme file. I have no idea what caused this problem. python -V => Python 2.7.16, pip 20.3.4 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7) Here is the last few lines of the stack trace: File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 44, in _execfile code = compile(script, filename, 'exec') File "/tmp/easy_install-92mtR7/pytest-runner-5.3.1/temp/easy_install-cJs6iC/setuptools_scm-6.3.2/setup.py", line 22 f"{type(self).name} is forbidden, " ^ SyntaxError: invalid syntax

Schlaubischlump commented 2 years ago

pytest-runner-5.3.1/ seems to be >= python3.6 only. You need to install an older version with pip which supports python2, since you are trying to install shairport-metadatareader-python for python2 and not python3.

The better solution would be to upgrade your python installation on your raspberry pi to at least python3.6. Python2 reached its end of life in 2020, if I recall correctly.