mbed new mbed-classic-program --mbedlib
[mbed] Creating new program "mbed-classic-program" (git)
[mbed] Adding library "mbed" from "https://mbed.org/users/mbed_official/code/mbed/builds" at latest revision in the current branch
[mbed] Updating reference "mbed" -> "https://mbed.org/users/mbed_official/code/mbed/builds/tip"
[mbed] Couldn't find build tools in your program. Downloading the mbed 2.0 SDK tools...
abort: couldn't find mercurial libraries in [/usr/local/bin /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python26.zip /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.6 /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.6/plat-darwin /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.6/plat-mac /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.6/plat-mac/lib-scriptpackages /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.6/lib-tk /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.6/lib-old /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.6/lib-dynload /Library/Python/2.6/site-packages /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC]
(check your install and PYTHONPATH)
fatal: unable to update url base from redirection:
asked for: https://mbed.org/users/mbed_official/code/mbed-sdk-tools/info/refs?service=git-upload-pack
redirect: https://os.mbed.com/users/mbed_official/code/mbed-sdk-tools/info/refs/?service=git-upload-pack
[mbed] WARNING: Cannot find the mbed tools directory in "/Users/takuya/Desktop/mbed-cli/mbed-classic-program"
---
mbed OS2のアプリを作った時にライブラリ取得に失敗する
原因1
下記手順でMercurialを最初から入れ直した。 Mercurialの使い方
原因2
--mbedlib
でmbedライブラリをダウンロードに失敗してる。mbedのディレクトリが空っぽになってる。参考
Mbed OS 2をMbed OS 5 CLIで動かす - JF1DIR業務日誌