I've tested the script with spyder on Windows 10 and it worked perfectly. Now I'm trying to run it on an ubuntu virtual host and it's giving me an invalid syntax error.
The python version is Python 3.5.2 (latest version I get after updating it). The Ubuntu version is
Description: Ubuntu 16.04.7 LTS
Release: 16.04
Codename: xenial
I know it's outdated but I can't update it myself...
The code snipped giving problems to begin with is just a simple:
# Begin of time period. Format: YYYY-mm-dd
date_from = f'{year}-01-01'
I'm testing it with "python my_file.py"