question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

syntax error on python 3.7

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
mattrobenoltcommented, Jul 26, 2018

Ah, in 3.7 async is now a reserved word.

1reaction
eli-schwartzcommented, Sep 16, 2018

It was fixed a year and a half ago in commit 67f4e89fbdaad42b7bf61b493a7b9d70d8e464b1, so why are you running a pre-6.x version?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found