I get this error when executing (from a schedule):
- Code: Select all
Dec 4, 2022 at 2:07:50 PM
Script Error schedule "NOAA Alert Check CAP 2.20 Py3" script error in file noaa-cap-poller-py3-2.20.py:
Script Error from __future__ imports must occur at the beginning of the file
Script Error around line 1
However, the from __future__ statement is in the first line of the code:
- Code: Select all
from __future__ import absolute_import
from __future__ import print_function
import sys
import os
...
Is this not supported for py3 under Indigo, or am I making a rookie mistake?