-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
Description
Description
- Type: Bug
- Priority: Blocker
Bug
Target
NUCLEO_F429ZI
Toolchain:
ARM
Python version:
$ python --version
Python 2.7.11
mbed-cli version:
1.5.0
mbed-os sha:
addec7b Merge pull request #6461 from ARMmbed/release-candidate
DAPLink version:
STLink
Expected behavior
mbed test ...
works
Actual behavior
Getting python error:
D:\Work\sdk\ci-test-shield\mbed-os>mbed test -m detect --app-config mbed_app.json -n "tests-*"
[mbed] Detected "NUCLEO_F429ZI" connected to "E:" and using com port "COM6"
Traceback (most recent call last):
File "D:\Work\sdk\ci-test-shield\mbed-os\tools\test.py", line 31, in <module>
from tools.test_api import test_path_to_name, find_tests, get_test_config, print_tests, build_tests, test_spec_from_test_builds
File "D:\Work\sdk\ci-test-shield\mbed-os\tools\test_api.py", line 59, in <module>
from tools.build_api import build_project, build_mbed_libs, build_lib
File "D:\Work\sdk\ci-test-shield\mbed-os\tools\build_api.py", line 47, in <module>
from .toolchains import TOOLCHAIN_CLASSES
File "D:\Work\sdk\ci-test-shield\mbed-os\tools\toolchains\__init__.py", line 1611, in <module>
from tools.toolchains.arm import ARM_STD, ARM_MICRO, ARMC6
File "D:\Work\sdk\ci-test-shield\mbed-os\tools\toolchains\arm.py", line 18, in <module>
from builtins import str
ImportError: No module named builtins
[mbed] ERROR: "C:\Progra~1\Python\python.exe" returned error code 1.
[mbed] ERROR: Command "C:\Progra~1\Python\python.exe -u D:\Work\sdk\ci-test-shield\mbed-os\tools\test.py -t ARM -m NUCLEO_F429ZI --source D:\Work\sdk\ci-test-shield --build D:\Work\sdk\ci-test-shield\BUILD\tests\NUCLEO_F429ZI\ARM --test-spec D:\Work\sdk\ci-test-shield\BUILD\tests\NUCLEO_F429ZI\ARM\test_spec.json -n tests-* --app-config mbed_app.json" in "D:\Work\sdk\ci-test-shield"
---
Steps to reproduce
$ mbed import ci-test-shield
$ cd ci-test-shield
$ cd mbed-os
$ mbed update mbed-os-5.8.1
$ mbed test -t ARM -m K64F --app-config mbed_app.json -n "tests-*"
If you change to mbed-os-5.7.7 then everything's fine.
Official documentation states Python version 2.7.11