Hello all,
I am trying to use acados
with the Python
interface and the t_renderer file is not being detected for some reason.
There was another thread that suggested building the binaries natively, which I tried but was still unable to rectify the problem.
This is the error message that shows up when I try running the example : âminimal_example_ocp.pyâ
Do you wish to set up Tera renderer automatically?
y/N? (press y to download tera or any key for manual installation)
y
Dowloading https://github.com/acados/tera_renderer/releases/download/v0.0.34/t_renderer-v0.0.34-linux
Traceback (most recent call last):
File "~/acados/examples/acados_python/getting_started/minimal_example_ocp.py", line 104, in <module>
main()
File "~/acados/examples/acados_python/getting_started/minimal_example_ocp.py", line 83, in main
ocp_solver = AcadosOcpSolver(ocp, json_file = 'acados_ocp.json')
File "~/acados/interfaces/acados_template/acados_template/acados_ocp_solver.py", line 384, in __init__
self.generate(acados_ocp, json_file=json_file, simulink_opts=simulink_opts, cmake_builder=cmake_builder)
File "~/acados/interfaces/acados_template/acados_template/acados_ocp_solver.py", line 313, in generate
ocp_render_templates(acados_ocp, json_file, cmake_builder=cmake_builder, simulink_opts=simulink_opts)
File "~/acados/interfaces/acados_template/acados_template/acados_ocp_solver.py", line 195, in ocp_render_templates
render_template(tup[0], tup[1], output_dir, json_path)
File "~/acados/interfaces/acados_template/acados_template/utils.py", line 221, in render_template
tera_path = get_tera()
File "~/acados/interfaces/acados_template/acados_template/utils.py", line 195, in get_tera
with urllib.request.urlopen(url) as response, open(tera_path, 'wb') as out_file:
FileNotFoundError: [Errno 2] No such file or directory: '~/acados/bin/t_renderer'
I also noticed that even though the download of the t_renderer file is initiated there is not confirmation message of itâs completion.
As you can see the error message reads No such file or directory: â~/acados/bin/t_rendererâ which is not true as that is where I copied the t_renderer from the built git repo to.
Any help would be appreciated.