import errors:
this machine has Yotta installed. So I am running a Yotta Venv Workspace.
:: Copyright (c) 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 “GitHub - ARMmbed/mbed-os: Arm Mbed OS is a platform operating system designed for the internet of things” at latest revision in the current branch
[mbed] Updating reference “mbed-os” → “GitHub - ARMmbed/mbed-os: Arm Mbed OS is a platform operating system designed for the internet of things”
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 mbed-os-example-blinky - Blinky example for Mbed OS 6.0 | Mbed
[mbed] Importing program “mbed-os-example-blinky” from “mbed-os-example-blinky - Blinky example for Mbed OS 6.0 | Mbed” 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 mbed-os-example-blinky - Blinky example for Mbed OS 6.0 | Mbed
[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 mbed-os-example-blinky - Blinky example for Mbed OS 6.0 | Mbed
[mbed] Adding library “mbed-os-example-blinky” from “mbed-os-example-blinky - Blinky example for Mbed OS 6.0 | Mbed” 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>