syntax error on python 3.7
See original GitHub issueI’m getting this error on python 3.7 inside of docker. Using the python 3.6 image everything seems to be working fine.
from raven.exceptions import InvalidGitRepository
File "/usr/local/lib/python3.7/site-packages/raven/__init__.py", line 53, in <module>
from raven.base import * # NOQA
File "/usr/local/lib/python3.7/site-packages/raven/base.py", line 691
if transport.async:
^
SyntaxError: invalid syntax
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Invalid Syntax in Python: Common Reasons for SyntaxError
When the interpreter encounters invalid syntax in Python code, it will raise a SyntaxError exception and provide a traceback with some helpful information...
Read more >8. Errors and Exceptions — Python 3.7.14 documentation
Syntax errors, also known as parsing errors, are perhaps the most common kind of complaint you get while you are still learning Python:....
Read more >What does "SyntaxError: invalid syntax" mean in python 3.7?
1. print is not a statement anymore in python3, it's a function. So you have to use the parenthesis to call it. ·...
Read more >python 3.7.2 is showing 'syntax error' at line 3, why? | Sololearn
python 3.7.2 is showing 'syntax error' at line 3, why? ... Code looks legit. At least runs on Sololearn and I tested also...
Read more >Fails to run python3.7 - Syntax Error: invalid syntax print #631
I installed pyls with pip install 'python-language-server[all]' and then tried to run pyls and received the following: ~ ➜ pyls Traceback ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah, in 3.7
async
is now a reserved word.It was fixed a year and a half ago in commit 67f4e89fbdaad42b7bf61b493a7b9d70d8e464b1, so why are you running a pre-6.x version?