ARMmbed / mbed-cli

Arm Mbed Command Line Interface
https://os.mbed.com
Apache License 2.0
333 stars 176 forks source link

mbed-cli update warns about missing python modules which are already installed #144

Closed teetak01 closed 8 years ago

teetak01 commented 8 years ago

getting warnings about missing Python modules which are already installed, see attached file for details.

sudo pip install -r mbed-os/requirements.txt -U mbed update --protocol ssh

=> [mbed WARNING] The mbed build tools in this program require Python modules that are not installed. [mbed WARNING] This might prevent you from compiling your code or exporting to IDEs and other toolchains. [mbed WARNING] The missing Python modules are: pyserial, Jinja2, IntelHex, mbed-ls

[mbed WARNING] You can install all missing modules by opening a command prompt in "/home/mbed-client/morpheus/mbed-client-testapp/mbed-os" and running "pip install -r requirements.txt"

(The code builds fine regardless of the warnings)

mbed-cli-warnings.txt

screamerbg commented 8 years ago

Can you try to build for the NRF51822 target and let me know whether that builds?

teetak01 commented 8 years ago

How do I build for NRF51822? I tried mbed compile -m NRF51822 -t GCC_ARM -c

It fails on error "no target defined"

also the README says that only -m K64F is currently supported

screamerbg commented 8 years ago

Can you send me the codebase you're trying to compile? Or add me on Skype?

screamerbg commented 8 years ago

The error "no target defined" message is from when compiling RTOS, not from mbed CLI. And that's right, NRF51822 doesn't have RTOS.

Regarding the missing Python modules, IntelHex is needed for compiling (successfully) NRF51822 which uses .hex file format, not .bin

screamerbg commented 8 years ago

Long story short - even though you are able to compile for a specific platform, other platforms have requirements for specific modules. mbed CLI correctly reports the missing Python modules.