Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Message: invalid syntax #1

Open
lukki34 opened this issue Jul 10, 2022 · 2 comments
Open

Error Message: invalid syntax #1

lukki34 opened this issue Jul 10, 2022 · 2 comments

Comments

@lukki34
Copy link

lukki34 commented Jul 10, 2022

Hello,

after execute the script I get an error message:

File "uartLog.py", line 8

^
SyntaxError: invalid syntax

Do you know the reason for getting this error message?
Unbenannt

@Nerdiyde
Copy link
Owner

HI lukki34,
just tried it again and the script is working properly.

The issue is most probably caused by downloading the "not RAW" contents of the python file. Most probably you downloaded it via right click and "save target under". In this case not the python file is downloaded but the html page that serves the view on the python file.
If you want to download the file correctly please pull the complete repository or download the file via the raw file view here: https://raw.githubusercontent.com/Nerdiyde/Sonoff_zigbee_3.0_USB_dongle_plus_bootloader_script/main/uartLog.py

Additional info how you can download the complete repository is also available here: https://nerdiy.de/en/github-wie-kopiere-ich-dateien-aus-einem-github-auf-meinen-computer/

Best regards
Fab

@spor7y
Copy link

spor7y commented Nov 18, 2022

Encountered this issue as well but it was caused by the version incompatibility.
Running python on a raspberry pi will default to python2.7 which does not support the async method. Try running it like that: python3 <script.py>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants