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.


this error message
Traceback (most recent call last):
  File "", line 37, in <module>
    from acados_template import AcadosOcp, AcadosOcpSolver, AcadosSimSolver
  File "/home/ruoyo16/.local/lib/python3.5/site-packages/acados_template/", line 35, in <module>
    from .generate_c_code_explicit_ode import *
  File "/home/ruoyo16/.local/lib/python3.5/site-packages/acados_template/", 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/", 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


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.