ARMmbed / mbed-cli

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

`mbed new app` fails in ubuntu 16.04 #122

Closed jupe closed 8 years ago

jupe commented 8 years ago

mbed-cli installation success, but mbed new app fails.

OS: Ubuntu 16.04 LTS (VM) fresh install uname -a: Linux ubuntu 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

python: 2.7.11+

logs:

jva@ubuntu:~/git/github/armmbed/testapp$ mbed new app
[mbed] Creating new program "app" (git)
[mbed] Adding library "mbed-os" from "https://github.com/ARMmbed/mbed-os/" at latest revision in the current branch
Username for 'https://github.com': jussiva@gmail.com
Password for 'https://jussiva@gmail.com@github.com': 
[mbed] Adding library "mbed-os/frameworks/greentea-client" from "https://github.com/bridadan/greentea-client/" at rev #398d96e25630
[mbed] Adding library "mbed-os/frameworks/unity" from "https://github.com/ARMmbed/unity/" at rev #3b2fef7fcf60abcc
[mbed] Adding library "mbed-os/net/sal-stack-nanostack-private" from "https://github.com/ARMmbed/sal-stack-nanostack-private-mirror/" at rev #1374c77b03fb
Username for 'https://github.com': jussiva@gmail.com 
Password for 'https://jussiva@gmail.com@github.com': 
[mbed] Adding library "mbed-os/net/coap-service" from "https://github.com/ARMmbed/coap-service-mirror/" at rev #0c7805098970
Username for 'https://github.com': jussiva@gmail.com
Password for 'https://jussiva@gmail.com@github.com': 
[mbed] Adding library "mbed-os/net/mbed-client-mbedtls" from "https://github.com/ARMmbed/mbed-client-mbedtls-mirror/" at rev #582821c96be8
Username for 'https://github.com': jussiva@gmail.com
Password for 'https://jussiva@gmail.com@github.com': 
[mbed] Adding library "mbed-os/net/mbed-client-classic" from "https://github.com/ARMmbed/mbed-client-classic/" at rev #0cf03c143a2a
Username for 'https://github.com': jussiva@gmail.com
Password for 'https://jussiva@gmail.com@github.com': 
[mbed] Adding library "mbed-os/net/nanostack-hal-mbed-cmsis-rtos" from "https://github.com/ARMmbed/nanostack-hal-mbed-cmsis-rtos/" at rev #ab64e255deb9
Username for 'https://github.com': jussiva@gmail.com
Password for 'https://jussiva@gmail.com@github.com': 
[mbed] Adding library "mbed-os/net/sal-iface-6lowpan-morpheus-private" from "https://github.com/ARMmbed/sal-iface-6lowpan-morpheus-private-mirror/" at rev #2b4852e22679
Username for 'https://github.com': jussiva@gmail.com
Password for 'https://jussiva@gmail.com@github.com': 
[mbed] Adding library "mbed-os/net/mbed-client-c" from "https://github.com/ARMmbed/mbed-client-c-mirror/" at rev #753541105a6f
Username for 'https://github.com': jussiva@gmail.com
Password for 'https://jussiva@gmail.com@github.com': 
[mbed] Adding library "mbed-os/net/mbed-client" from "https://github.com/ARMmbed/mbed-client-mirror/" at rev #2a839d6c5bef
Username for 'https://github.com': jussiva@gmail.com
Password for 'https://jussiva@gmail.com@github.com': 
[mbed] Adding library "mbed-os/net/mbed-trace" from "https://github.com/ARMmbed/mbed-trace-mirror/" at rev #f9a11fcaa2b5
Username for 'https://github.com': jussiva@gmail.com
Password for 'https://jussiva@gmail.com@github.com': 
[mbed] Adding library "mbed-os/net/mbed-client-randlib" from "https://github.com/ARMmbed/mbed-client-randlib-mirror/" at rev #237b3fa0255f
Username for 'https://github.com': jussiva@gmail.com
Password for 'https://jussiva@gmail.com@github.com': 
[mbed] Adding library "mbed-os/net/mbed-mesh-api" from "https://github.com/ARMmbed/mbed-mesh-api-mirror/" at rev #f7a198bb1e66
Username for 'https://github.com': jussiva@gmail.com
Password for 'https://jussiva@gmail.com@github.com': 
[mbed] Adding library "mbed-os/net/atmel-rf-driver" from "https://github.com/ARMmbed/atmel-rf-driver-mirror/" at rev #f4c48e5e98f6
Username for 'https://github.com': jussiva@gmail.com
Password for 'https://jussiva@gmail.com@github.com': 
[mbed] Adding library "mbed-os/net/sal-stack-nanostack-eventloop" from "https://github.com/ARMmbed/sal-stack-nanostack-eventloop-mirror/" at rev #627b9769e352
Username for 'https://github.com': jussiva@gmail.com
Password for 'https://jussiva@gmail.com@github.com': 
[mbed] Adding library "mbed-os/net/nanostack-libservice" from "https://github.com/ARMmbed/nanostack-libservice-mirror/" at rev #e3f7da74a143
Username for 'https://github.com': jussiva@gmail.com
Password for 'https://jussiva@gmail.com@github.com': 
[mbed] Adding library "mbed-os/core/mbedtls" from "https://developer.mbed.org/teams/sandbox/code/mbedtls/" at rev #bef26f687287
[mbed ERROR] OS Error: No such file or directory

---
screamerbg commented 8 years ago

@jupe, I think you are missing Mercurial. Can you install mbed CLI from https://github.com/screamerbg/neo branch "detect-requirements" ?

This should give you clean indication whether "hg" (Mercurial) is missing. This branch is part of PR #119

jupe commented 8 years ago

do we really have some repositories using Mercurial? why ?

screamerbg commented 8 years ago

The absence of either "hg" or "git" is now reported by mbed CLI (PR #119 merged)