Zephyr not working on MacOs


Nitin Ajay <nitin@...>
 

Hi I installed zephyr on Mac with M1 silicon. I am trying to run zephyr with the ESP32 development kit. When I try running the command 
                  west build
It gives the following error:

[1/159] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h

FAILED: zephyr/include/generated/kobj-types-enum.h zephyr/include/generated/otype-to-str.h zephyr/include/generated/otype-to-size.h /Users/nitinkajay/zephyrproject/zephyr/build/zephyr/include/generated/kobj-types-enum.h /Users/nitinkajay/zephyrproject/zephyr/build/zephyr/include/generated/otype-to-str.h /Users/nitinkajay/zephyrproject/zephyr/build/zephyr/include/generated/otype-to-size.h 

cd /Users/nitinkajay/zephyrproject/zephyr/build/zephyr && /opt/homebrew/opt/python@3.9/bin/python3.9 /Users/nitinkajay/zephyrproject/zephyr/scripts/gen_kobject_list.py --kobj-types-output /Users/nitinkajay/zephyrproject/zephyr/build/zephyr/include/generated/kobj-types-enum.h --kobj-otype-output /Users/nitinkajay/zephyrproject/zephyr/build/zephyr/include/generated/otype-to-str.h --kobj-size-output /Users/nitinkajay/zephyrproject/zephyr/build/zephyr/include/generated/otype-to-size.h --include /Users/nitinkajay/zephyrproject/zephyr/build/zephyr/misc/generated/struct_tags.json

Traceback (most recent call last):

  File "/Users/nitinkajay/zephyrproject/zephyr/scripts/gen_kobject_list.py", line 62, in <module>

    import elftools

ModuleNotFoundError: No module named 'elftools'

[2/159] Generating include/generated/driver-validation.h

FAILED: zephyr/include/generated/driver-validation.h /Users/nitinkajay/zephyrproject/zephyr/build/zephyr/include/generated/driver-validation.h 

cd /Users/nitinkajay/zephyrproject/zephyr/build/zephyr && /opt/homebrew/opt/python@3.9/bin/python3.9 /Users/nitinkajay/zephyrproject/zephyr/scripts/gen_kobject_list.py --validation-output /Users/nitinkajay/zephyrproject/zephyr/build/zephyr/include/generated/driver-validation.h --include /Users/nitinkajay/zephyrproject/zephyr/build/zephyr/misc/generated/struct_tags.json

Traceback (most recent call last):

  File "/Users/nitinkajay/zephyrproject/zephyr/scripts/gen_kobject_list.py", line 62, in <module>

    import elftools

ModuleNotFoundError: No module named 'elftools'



Please let me know how to mitigate this.


Regards,

Nitin

Join users@lists.zephyrproject.org to automatically receive all group messages.