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

39 次查看(过去 30 天)
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?

采纳的回答

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.

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by