9 years, 4 months ago.

Syntax Error when buid

Hi, When I'm trying to build, I get this syntax error in command-line:

F:\mbed-master>python workspace_tools\build.py -m LPC1768 -t GCC_ARM
  File "workspace_tools\build.py", line 135
    print mcu_toolchain_matrix(platform_filter=options.general_filter_regex)
                             ^
SyntaxError: invalid syntax

I've downloaded latest versions of mbed and python and my OS is Win7 32bit.

Question relating to:

What python version did you install?

posted by Martin Kojtal 03 Dec 2014

Python 3.4.2

posted by hamed davandeh 03 Dec 2014

I've also tried 3.3.2, same results

posted by hamed davandeh 03 Dec 2014

1 Answer

9 years, 4 months ago.

I don't see it documented anywhere, how to install and setup the python dependencies but I believe you need to use Python 2.7. Can you give this a try and report back it?

Accepted Answer

I've tried python 2.7.8 and problem solved! Thanks Sam

posted by hamed davandeh 03 Dec 2014