You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.5/py_compile.py", line 129, in compile
raise py_exc
py_compile.PyCompileError: File "./prog.py", line 1
from future import annotations
^
SyntaxError: future feature annotations is not defined
Fixed it by upgrading python but would be great to have an update that is backwards compatible with python 3.6 and below if possible. Thanks!
The text was updated successfully, but these errors were encountered:
Unfortunately, from __future__ import ... has to be the very first statement in a Python script, and so it cannot be guarded with try-except or anything like that. So we have upped the requirements to Python 3.7 for most things. Python 3.6 is end-of-life, as of four months ago.
Got this error:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.5/py_compile.py", line 129, in compile
raise py_exc
py_compile.PyCompileError: File "./prog.py", line 1
from future import annotations
^
SyntaxError: future feature annotations is not defined
Fixed it by upgrading python but would be great to have an update that is backwards compatible with python 3.6 and below if possible. Thanks!
The text was updated successfully, but these errors were encountered: