Skip to content

Instantly share code, notes, and snippets.

@bphermansson
Last active August 12, 2021 15:07
Show Gist options
  • Select an option

  • Save bphermansson/f9d6e7c8d91b62e362b4c75aa3cc5b0b to your computer and use it in GitHub Desktop.

Select an option

Save bphermansson/f9d6e7c8d91b62e362b4c75aa3cc5b0b to your computer and use it in GitHub Desktop.
@vargatomy

Copy link
Copy Markdown

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
Copy Markdown
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

vargatomy commented Aug 12, 2021 via email

Copy link
Copy Markdown

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