9 years, 1 month ago.

build mbed\workspace_tools

Please see following my result.

R:\mbed>python workspace_tools/build.py -m LPC1768 -t ARM

Traceback (most recent call last):

File "workspace_tools/build.py", line 34, in <module> from workspace_tools.build_api import build_mbed_libs, build_lib

File "R:\mbed\workspace_tools\build_api.py", line 20, in <module> import colorama

ImportError: No module named colorama

please help . thanks

3 Answers

9 years, 1 month ago.

SOLVED!

William, I was having this same issue and also got stuck at "No module named setuptools".

I found this: https://pip.pypa.io/en/latest/installing.html which says the following:

  1. Download this file: https://bootstrap.pypa.io/get-pip.py
  2. Run this code from the same directory as the above file: python get-pip.py (This will install pip and setuptools)

Now you should be able to run this code from the mbed directory: python setup.py install

Accepted Answer
9 years, 1 month ago.

Run the script install.. It should download required dependencies, although I believe if you have teh latest mbed SDK, colorama is not dependency anymore.

1. mbed SDK is new. 2. how is "Run the script install " thanks

posted by William Chen 09 Mar 2015

python setup.py install

Or just run easy_install or pip to install that module which is missing.

posted by Martin Kojtal 09 Mar 2015

fail .. R:\mbed>python setup.py install Traceback (most recent call last): File "setup.py", line 9, in <module> from setuptools import find_packages ImportError: No module named setuptools

posted by William Chen 09 Mar 2015
9 years, 1 month ago.

William, You can resolve dependency to colorama like this:

$ pip install colorama

or use git pull to update to latest mbed SDK version where colorama dependency is removed.

Some more info here: http://developer.mbed.org/teams/SDK-Development/wiki/Special:Allpages

On 4/18/2015 I fetched the latest SDK (I think):

git clone https://github.com/mbedmicro/mbed.git         (latest commit is faba4123ec)

and


$ python build.py -m LPC1768 -t ARM
Traceback (most recent call last):
  File "build.py", line 34, in <module>
    from workspace_tools.build_api import build_mbed_libs, build_lib
  File "d:\mbed\workspace_tools\build_api.py", line 20, in <module>
    import colorama
ImportError: No module named colorama


So am I not fetching the correct thing, or is this still a problem? Thanks.

posted by Philip Freidin 19 Apr 2015