PX4 Firmware build failed with error ‘AttributeError: module 'em' has no attribute 'RAW_OPT’’

38 visualizaciones (últimos 30 días)
While building the PX4 firmware from the Hardware setup screens of the UAV Toolbox support package for PX4 Autopilots, the build failed with the following error.
AttributeError: module 'em' has no attribute 'RAW_OPT'
How do we resolve this error?

Respuesta aceptada

MathWorks Robotics and Autonomous Systems Team
This is a PX4 Firmware bug as mentioned here and here. The python package ‘empy’ used by WSL must be downgraded to version 3.3.4. You can follow the below instructions.
  1. Launch WSL where PX4 is cloned.
  2. Run the below commands in WSL.
pip uninstall em
pip uninstall empy
pip install empy==3.3.4
Launch the PX4 Hardware setup screen and try building the firmware now.

Más respuestas (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by