Hi,
I’m new on Mbed and it’s been few days I’m trying to compile with Mbed_cli on macOS.
I followed the manual installation process here
https://os.mbed.com/docs/mbed-os/v5.14/tools/manual-installation.html
By the way I already searched for an answer before coming here, and I didn’t find how to fix it.
Mbed cli is installed, but when I compile here with the GNU compiler here is what happens :
indent preformatted text by 4 spaces
antoine@macbookproantoine-1 mbed-os-example-blinky % mbed compile --target K64F --toolchain GCC_ARM --flash
[mbed] Working path “/Users/antoine/Documents/Dev/Mbed/mbed-os-example-blinky” (program)
Traceback (most recent call last):
File “/Users/antoine/Documents/Dev/Mbed/mbed-os-example-blinky/mbed-os/tools/make.py”, line 37, in
from tools.tests import TESTS, Test, TEST_MAP
File “/Users/antoine/Documents/Dev/Mbed/mbed-os-example-blinky/mbed-os/tools/tests.py”, line 20, in
from tools.targets import TARGETS
File “/Users/antoine/Documents/Dev/Mbed/mbed-os-example-blinky/mbed-os/tools/targets/init.py”, line 32, in
from tools.psa import find_secure_image
File “/Users/antoine/Documents/Dev/Mbed/mbed-os-example-blinky/mbed-os/tools/psa/init.py”, line 23, in
from .generate_partition_code import manifests_discovery, generate_spm_code
File “/Users/antoine/Documents/Dev/Mbed/mbed-os-example-blinky/mbed-os/tools/psa/generate_partition_code.py”, line 28, in
from tools.psa.mbed_spm_tfm_common import validate_partition_manifests,
File “/Users/antoine/Documents/Dev/Mbed/mbed-os-example-blinky/mbed-os/tools/psa/mbed_spm_tfm_common.py”, line 21, in
from jsonschema import validate
File “/Users/antoine/Library/Python/2.7/lib/python/site-packages/jsonschema/init.py”, line 33, in
import importlib_metadata as metadata
File “/Users/antoine/Library/Python/2.7/lib/python/site-packages/importlib_metadata/init.py”, line 15, in
from ._compat import (
File “/Users/antoine/Library/Python/2.7/lib/python/site-packages/importlib_metadata/_compat.py”, line 19, in
from backports.configparser import ConfigParser
ImportError: No module named configparser
[mbed] ERROR: “/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python” returned error.
Code: 1
Path: “/Users/antoine/Documents/Dev/Mbed/mbed-os-example-blinky”
Command: “/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u /Users/antoine/Documents/Dev/Mbed/mbed-os-example-blinky/mbed-os/tools/make.py -t GCC_ARM -m K64F --source . --build ./BUILD/K64F/GCC_ARM”
Tip: You could retry the last command with “-v” flag for verbose output
indent preformatted text by 4 spaces
I believe there is a problem with Python …
Any idea ?
Thanks