2 years, 3 months ago.

mbed python error ...

.. could some kind person explain the following error that I am getting when trying to use mbed cli please ? File "/usr/local/lib/python3.5/dist-packages/mbed_cli-1.5.1-py3.5.egg/mbed/mbed.py", line 1191 sorted_scms = sorted(sorted_scms, key=lambda (m, _): not m) ^ SyntaxError: invalid syntax

Hello Andrew, I want to start looking into this, but need some extra info. Does this happen on all invocations or on a particular call? If a particular call, please let me know the command line you are trying to execute.

In addition, could you send me the following info. 1. Operation system: 2. python version (yes, I see that it is 3.5, but could you run 'python -V' to give me the exact release) 3. pip version (from pip -V)

Thank you, Earl

posted by Earl Manning 09 May 2018

Hello Earl, Command: mbed import https://github.com/ARMmbed/mbed-os-example-blinky python -V Python2.7.12 python3 -V 3.5.2 pip -V 9.0.1 pip3 -V ... pip3 is not currently installed

posted by andrew eliasz 10 May 2018

1 Answer

2 years, 3 months ago.

Hi Andrew,

In order to use Mbed CLI you need to have Python 2.7+ installed. According to the Mbed CLI documentation, Python 3 is not compatible: https://github.com/armmbed/mbed-cli#requirements

Please let me know if you have any questions!

- Jenny, team Mbed

If this solved your question, please make sure to click the "Thanks" link below!