Compiling problems with the Version 0.5.2

Hi guys,
I am compiling the new version 0.5.2 on a ubuntu. I have successfully compiled the early version.
however have a problem with the compiling and I have no clue how to fix it. The error information is like following:

board version: v3.5-48V
Firmware version 0.5.2-dev (fw-v0.5.2-18-ge52d3d90)
Initializing .tup in /home/cai/ODrive0.5.2/Firmware
.tup repository initialized.
0) new variant: tup.config
100%
not using pkgconf
Using python command “python3 -B”
[ ETA~=<1s Remaining=0 ] 100%

    1. python3 -B interface_generator_stub.py --definitions odrive-interface.yaml --generate-endpoints ODrive3 --template fibre-cpp/endpoints_template.j2 --output autogen/endpoints.hpp
      No module named ‘jinja2’
      Note that there are new compile-time dependencies since around v0.5.1.
      Check out https://github.com/madcowswe/ODrive/blob/devel/docs/developer-guide.md#prerequisites for details.
      *** tup messages ***
      *** Command ID=404 failed with return value 1
    1. python3 -B interface_generator_stub.py --definitions odrive-interface.yaml --template fibre-cpp/function_stubs_template.j2 --output autogen/function_stubs.hpp
      No module named ‘jinja2’
      Note that there are new compile-time dependencies since around v0.5.1.
      Check out https://github.com/madcowswe/ODrive/blob/devel/docs/developer-guide.md#prerequisites for details.
      *** tup messages ***
      *** Command ID=402 failed with return value 1
    1. python3 -B interface_generator_stub.py --definitions odrive-interface.yaml --template fibre-cpp/type_info_template.j2 --output autogen/type_info.hpp
      No module named ‘jinja2’
      Note that there are new compile-time dependencies since around v0.5.1.
      Check out https://github.com/madcowswe/ODrive/blob/devel/docs/developer-guide.md#prerequisites for details.
      *** tup messages ***
      *** Command ID=406 failed with return value 1
    1. python3 -B interface_generator_stub.py --definitions odrive-interface.yaml --template fibre-cpp/interfaces_template.j2 --output autogen/interfaces.hpp
      No module named ‘jinja2’
      Note that there are new compile-time dependencies since around v0.5.1.
      Check out https://github.com/madcowswe/ODrive/blob/devel/docs/developer-guide.md#prerequisites for details.
      *** tup messages ***
      *** Command ID=400 failed with return value 1
      [ ETA~=5s Remaining=99 Active=0 ] 3%
      *** tup: 4 jobs failed.
      Makefile:31: recipe for target ‘all’ failed
      make: *** [all] Error 1

does anybody have an idea what happened and how to fix it?

No module named ‘jinja2’

There’s a few new Python dependencies. pip3 install jinja2, and whatever other ones show up.

Problem solved. Thank you!

1 Like