-
Notifications
You must be signed in to change notification settings - Fork 100
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
Syntax Error #5
Comments
Hi, Thank you again for looking at this. When I try the new code I get
I manually added beautiful soup so I guess it's found it, or maybe not. I tried installing urllib and it said it was already installed. When I run the version command script I get
I was hoping to run this using the HA Python method, as that seemed easier as I'm on a Pi venv, but the tests above are done by SSH into the Pi and then running pyton filename.py from the command line. However I'm far far from an expert on these things so I dunno, it could be running beautifully in the original version of the code but I'm just doing something else wrong. |
Project has been rewritten since this, so going to preliminary close. Feel free to reopen if its still an issue though. |
Hi, I think I have this working from a Home Assistant / Python point of view, however when I run I get a Python Syntax error
Syntax errors detected :
Line 26:
data[f'{binType}'] = f'{binCollection}'
^
SyntaxError: invalid syntax
I know next to nothing about coding so I tried checking here https://extendsclass.com/python-tester.html and it shows the same error. I checked the other bin collection scripts and the one that is similar to this throws the same error, but the ones that are completely different doesn't. I checked pythonbuddy.com and it said "Format strings are only supported in Python 3.6 and greater (, line 26)" however I have 3.7 installed as Home Assistant required it and the venv was set up using it. I tried to shebang the specific version 3.7.3 and it still threw the syntax error. Any idea?
Originally posted by @Mod74 in #3 (comment)
The text was updated successfully, but these errors were encountered: