Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years 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
10 years 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:
- Download this file: https://bootstrap.pypa.io/get-pip.py
- 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
10 years 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 19 Apr 2015