Arm Mbed and Pelion Device Management support forum

Error while compiling programs in Mbed studio

I am trying to compile BLE-thermometer code on DISCO-L475VG-IOT01A board using Mbed studio but it gives the following error,

NOTE: I was able to compile it on online mbed compiler, it seems that the code doesn’t support ARMC6 compiler and mbed studio uses the latest version.

Traceback (most recent call last):

File “c:\Users\naknai01\Mbed Programs\Thermometer-Disco/mbed-os/tools/make.py”, line 43, in

from tools.options import get_default_options_parser

File “c:\Users\naknai01\Mbed Programs\Thermometer-Disco\mbed-os\tools\options.py”, line 21, in

from tools.toolchains import TOOLCHAINS

File “c:\Users\naknai01\Mbed Programs\Thermometer-Disco\mbed-os\tools\toolchains_init_.py”, line 29, in

from tools.config import Config

File “c:\Users\naknai01\Mbed Programs\Thermometer-Disco\mbed-os\tools\config_init_.py”, line 29, in

from tools.arm_pack_manager import Cache

File “c:\Users\naknai01\Mbed Programs\Thermometer-Disco\mbed-os\tools\arm_pack_manager_init_.py”, line 20, in

from fuzzywuzzy import process

ImportError: No module named fuzzywuzzy

Traceback (most recent call last):

File “c:\Users\naknai01\Mbed Programs\Thermometer-Disco/mbed-os/tools/make.py”, line 43, in

from tools.options import get_default_options_parser

File “c:\Users\naknai01\Mbed Programs\Thermometer-Disco\mbed-os\tools\options.py”, line 21, in

from tools.toolchains import TOOLCHAINS

File “c:\Users\naknai01\Mbed Programs\Thermometer-Disco\mbed-os\tools\toolchains_init_.py”, line 29, in

from tools.config import Config

File “c:\Users\naknai01\Mbed Programs\Thermometer-Disco\mbed-os\tools\config_init_.py”, line 29, in

from tools.arm_pack_manager import Cache

File “c:\Users\naknai01\Mbed Programs\Thermometer-Disco\mbed-os\tools\arm_pack_manager_init_.py”, line 20, in

from fuzzywuzzy import process

ImportError: No module named fuzzywuzzy

Hi @nakul,

Apologies for not answering in a timely manner. Mbed Studio desktop is designed to work with Mbed OS 5.12 and higher. A program you are using is using an older version of Mbed OS. One of the solutions is updating Mbed OS version to at least 5.12.0. It can be done on libraries panel (Menu->View->Libraries).

Kind Regards
Arek - Mbed Studio team