Closed
Description
Same problem as #853.
Using Python 3.6.8
mbed-cli 1.9.1
, after mbed new
creating a new mbed project,
mbed compile -t GCC_ARM -m K66F
appears following error message:
[mbed] WARNING: If you're using Python 3 with Mbed OS 5.8 and earlier versions, Python errors will occur when compiling, testing and exporting
---
[mbed] Working path "/Users/jackyhuang/GoogleDrive/TA/Embedded_system/test" (program)
[Warning] @,: Compiler version mismatch: Have 7.2.1; expected version >= 6.0.0 and < 7.0.0
Building project test (K66F, GCC_ARM)
Scan: test
Compile [ 3.6%]: MbedCRC.cpp
[ERROR] 'str' object has no attribute 'decode'
[mbed] ERROR: "/Users/jackyhuang/miniconda3/bin/python" returned error.
Code: 1
Path: "/Users/jackyhuang/GoogleDrive/TA/Embedded_system/test"
Command: "/Users/jackyhuang/miniconda3/bin/python -u /Users/jackyhuang/GoogleDrive/TA/Embedded_system/test/mbed-os/tools/make.py -t GCC_ARM -m K66F --source . --build ./BUILD/K66F/GCC_ARM"
Tip: You could retry the last command with "-v" flag for verbose output
---
[mbed] WARNING: Using Python 3 with Mbed OS 5.8 and earlier can cause errors with compiling, testing and exporting
---
As mentioned in ARMmbed/mbed-os#9673 ,
this bug "may" be fixed in Mbed os 5.11.5? But today it happens again.
Interestingly, when mbed import mbed-os-example-blinky
and compile process can be completed.
Both are using Mbed os 5.11.5