openairplay / airplay2-receiver

AirPlay 2 Receiver - Python implementation
2.15k stars 134 forks source link

Issue when running code? #59

Closed JayLindblad closed 2 years ago

JayLindblad commented 2 years ago

I wanna preface by saying I know absolutely nothing about coding or installing shit, but I've gotten this far and received a syntax error when trying to run ap2-receiver.py.

I type in:

python ap2-receiver.py -m myap2 --netiface=en0"

It spits out:

File "ap2-receiver.py", line 326 "features": f"{hex(FEATURES & 0xffffffff)},{hex(FEATURES >> 32 & 0xffffffff)}",

SyntaxError: invalid syntax

(it had a carat pointing to the last double-quote (after the curly bracket))

I hope this helps maybe?? I don't know if it would be helpful to put some more info like what I'm running on or what.

systemcrash commented 2 years ago

Yeah, you ran python, and possibly not python3. Older versions of python probably don't understand f strings.

So, get yourself python 3 - at least version 3.6... preferably something newer.