import errors:
this machine has Yotta installed. So I am running a Yotta Venv Workspace.
:: Copyright © 2015 ARM Limited. All rights reserved. :: SPDX-License-Identifier: Apache-2.0
@echo off rem This file is the script to set path for yotta toolchain
set PATH=%YOTTA_PATH%;%PATH%
:: start yotta venv
cmd /K “cd %HOMEPATH% & %YOTTA_INSTALL_LOCATION%\workspace\Scripts\activate & cd\workspace & dir”
this is the result
What must i do to fix this ?
(workspace) C:\workspace>mbed new blinky
[mbed] Creating new program “blinky” (git)
[mbed] Adding library “mbed-os” from “https://github.com/ARMmbed/mbed-os” at latest revision in the current branch
[mbed] Updating reference “mbed-os” -> “https://github.com/ARMmbed/mbed-os/#0712b8adf6bbc7eb796d5dac26f95d79d40745ef”
warning: LF will be replaced by CRLF in mbed-os.lib.
The file will have its original line endings in your working directory.
(workspace) C:\workspace>mbed import http://mbed.org/teams/mbed-os-examples/code/mbed-os-example-blinky/
[mbed] Importing program “mbed-os-example-blinky” from “https://mbed.org/teams/mbed-os-examples/code/mbed-os-example-blinky” at latest revision in the current branch
[mbed] ERROR: Could not execute “hg”.
[mbed] ERROR: Please verify that it’s installed and accessible from your current path by executing “hg”.
(workspace) C:\workspace>cd blinky
(workspace) C:\workspace\blinky>mbed import http://mbed.org/teams/mbed-os-examples/code/mbed-os-example-blinky/
[mbed] ERROR: Cannot import program in the specified location “C:\workspace\blinky\mbed-os-example-blinky” because it’s already part of a program “blinky”.
[mbed] ERROR: Please change your working directory to a different location or use “mbed add” to import the URL as a library.
(workspace) C:\workspace\blinky>mbed add http://mbed.org/teams/mbed-os-examples/code/mbed-os-example-blinky/
[mbed] Adding library “mbed-os-example-blinky” from “https://mbed.org/teams/mbed-os-examples/code/mbed-os-example-blinky” at latest revision in the current branch
[mbed] ERROR: Could not execute “hg”.
[mbed] ERROR: Please verify that it’s installed and accessible from your current path by executing “hg”.
(workspace) C:\workspace\blinky>