Clear Filters
Clear Filters

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

39 views (last 30 days)
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?

Accepted Answer

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.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!