Skip to content

Instantly share code, notes, and snippets.

@bphermansson
Last active August 12, 2021 15:07
Show Gist options
  • Save bphermansson/f9d6e7c8d91b62e362b4c75aa3cc5b0b to your computer and use it in GitHub Desktop.
Save bphermansson/f9d6e7c8d91b62e362b4c75aa3cc5b0b to your computer and use it in GitHub Desktop.
@vargatomy
Copy link

hi Patrick, first of all thanks for your script
I'm trying to use it but getting the following error:

File "rflink_mqtt.py", line 32
print x
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(x)?

I'm not a python guru so if you have time to check much appreciated!
Thanks,
Tom

@bphermansson
Copy link
Author

Hi!

This is because the script is written for Python 2.x and you probably are using 3.x. Just add parenthesis to the print statements to make it work:

print (x)

@vargatomy
Copy link

vargatomy commented Aug 12, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment