Request revision failed with message: hg.exe ENOENT

Hello,
I try to add a library BSP_DISCO_F429ZI
I have this message
Request revision failed with message: spawn c:\ProgramData\Mbed Studio\mbed-studio-tools\python\Scripts\hg.exe ENOENT
Thanks for advance
Didier

[2020-11-26T08:37:06.387] [INFO] root/mbs-about - Mbed Studio version: 1.3.1 []
[2020-11-26T08:37:06.388] [INFO] root/mbs-about - Mbed Studio platform: Windows []
[2020-11-26T08:37:11.516] [INFO] root/mbs-about - Displaying information about Mbed Studio browser []
[2020-11-26T08:45:20.084] [INFO] root/mbs-library-mgmt - Loading revisions for …://os.mbed.com/teams/ST/code/BSP_DISCO_F429ZI/ []
[2020-11-26T08:45:20.084] [DEBUG] root/mbs-library-mgmt - No repo dict found for mbed/os.mbed.com/teams/ST/code/BSP_DISCO_F429ZI at main []
[2020-11-26T08:45:20.084] [DEBUG] root/mbs-library-mgmt - Retrieving library cache URI for …://os.mbed.com/teams/ST/code/BSP_DISCO_F429ZI/ []
[2020-11-26T08:45:20.084] [DEBUG] root/mbs-library-mgmt - The state of the library cache for …://os.mbed.com/teams/ST/code/BSP_DISCO_F429ZI/ is unknown. Updating… []
[2020-11-26T08:45:20.084] [DEBUG] root/mbs-library-mgmt - Ensuring library cache for …://os.mbed.com/teams/ST/code/BSP_DISCO_F429ZI/ at file:///c%3A/Users/dlacombe/AppData/Local/Mbed%20Studio/library-cache/os.mbed.com/teams/ST/code/BSP_DISCO_F429ZI []
[2020-11-26T08:45:20.092] [INFO] root/mbs-library-mgmt - Populating library cache for …://os.mbed.com/teams/ST/code/BSP_DISCO_F429ZI/ []
[2020-11-26T08:45:20.840] [WARN] root/mbs-library-mgmt - An error occurred populating the library cache for …://os.mbed.com/teams/ST/code/BSP_DISCO_F429ZI/ [ ‘Error: spawn c:\ProgramData\Mbed Studio\mbed-studio-tools\python\Scripts\hg.exe ENOENT\n at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)\n at onErrorNT (internal/child_process.js:407:16)\n at process._tickCallback (internal/process/next_tick.js:63:19)’ ]
[2020-11-26T08:45:20.840] [WARN] root/mbs-library-mgmt - Failed to create library cache for …://os.mbed.com/teams/ST/code/BSP_DISCO_F429ZI/ [ ‘Error: spawn c:\ProgramData\Mbed Studio\mbed-studio-tools\python\Scripts\hg.exe ENOENT\n at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)\n at onErrorNT (internal/child_process.js:407:16)\n at process._tickCallback (internal/process/next_tick.js:63:19)’ ]
[2020-11-26T08:45:20.841] [ERROR] MbedStudio - Request revision failed with error: spawn c:\ProgramData\Mbed Studio\mbed-studio-tools\python\Scripts\hg.exe ENOENT [ ‘Error: spawn c:\ProgramData\Mbed Studio\mbed-studio-tools\python\Scripts\hg.exe ENOENT\n at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)\n at onErrorNT (internal/child_process.js:407:16)\n at process._tickCallback (internal/process/next_tick.js:63:19)’ ]

Hi Didier,

It seems that python tools shipped with Mbed Studio are incorrectly installed on your system. Mercurial tool is missing. The most likely cause of this issue when tools couldn’t be installed correctly on your system due to the running process. On Windows there is an issue with development board debugging that may cause it. We fixed it in the upcoming 1.4.0 release.

We recommend either a) or b) to fix this issue.

a) Use built-in tools auto-update to fix Python tools

  1. Restart your system (to make sure that there is no pyOCD Python process running)
  2. Delete c:\ProgramData\Mbed Studio\mbed-studio-tools\python folder
  3. Restart Studio
  4. Update python tools using the dialog that will appear on Studio start-up

b) Reinstall Studio

  1. Restart your system (to make sure that there is no pyOCD Python process running)
  2. Uninstall Studio
  3. Install Studio

Apologies for this issue. We addressed it in the 1.4.0 release.

Thanks,
Arek - Mbed Studio team

Hi Arek,

I encouter the same issue trying to import https://developer.mbed.org/teams/ST/code/LCD_DISCO_F746NG/ or others library except mbed-os.
The error message is identical.

Python tools seem up to date according to the Tools Versions panel.

Where can I find the same kind of error log that Didier posted ?

Thanks in advance for your support.
Adélie