-
Notifications
You must be signed in to change notification settings - Fork 66
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
Installed requirements but immediate logging error on running server #18
Comments
Hi @SnoopLawg, what version of Python are you running? I'm betting it's complaining about the f-string, which was introduced in Python 3.6 https://realpython.com/python-f-strings/ |
That solved that issue thank you, but a new one came up now.. |
Unfortunately this is a case of dependency rot -- jinja2's latest version no longer includes the https://stackoverflow.com/questions/71718167/importerror-cannot-import-name-escape-from-jinja2 |
I ran a quick test in a fresh docker container while setting flask=2.2.2 in requirements.txt and server.py started up with no issues. No guarantee that something else may have been changed/broken, but it's a start! |
Ok so what i found out for some reason when i updated to the newest version of python with homebrew and set that as my interpreter path in vscode, it did not like that and created errors in general not even just for this repository. Deleting and cleaning this new download through homebrew solved it when I just manually downloaded it from python's website. Thanks for all the help ! |
File "src/server.py", line 81
logging.error(f"webhook call received {webhook_topic}:\n{json.dumps(webhook_payload, indent=4)}")
^
SyntaxError: invalid syntax
The text was updated successfully, but these errors were encountered: