Python 3.5 compatibility

Hi :wave:

It’s Ubuntu 16.04, Python 3.5, pip20.3.4
I want to run acados by testing the example code.

Code
python3 minimal_example_closed_loop.py

this error message
Traceback (most recent call last):
  File "minimal_example_closed_loop.py", line 37, in <module>
    from acados_template import AcadosOcp, AcadosOcpSolver, AcadosSimSolver
  File "/home/ruoyo16/.local/lib/python3.5/site-packages/acados_template/__init__.py", line 35, in <module>
    from .generate_c_code_explicit_ode import *
  File "/home/ruoyo16/.local/lib/python3.5/site-packages/acados_template/generate_c_code_explicit_ode.py", line 36, in <module>
    from .utils import ALLOWED_CASADI_VERSIONS, is_empty, casadi_version_warning
  File "/home/ruoyo16/.local/lib/python3.5/site-packages/acados_template/utils.py", line 215
    os_cmd = f"{tera_path} '{template_glob}' '{in_file}' '{json_path}' '{out_file}'"
                                                                                   ^
SyntaxError: invalid syntax

Any other code "from acados_template import (AcadosModel, AcadosOcp, AcadosOcpSolver" occurs the same problem

Hi,

it is just that fstrings aren’t supported by default in Python 3.5.
You can update to this version

or update to a newer Python version.

Cheers!