Skip to content

eim-cli-windows-x64 custom folder -p usage (EIM-540) #474

Description

@gubertoli

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate
  • Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
  • Tested with the latest version to ensure the issue hasn't been fixed

How often does this bug occurs?

always

Expected behavior

Hi,
I had been using the eim-cli v0.8.0 as replacement for eim-ui v0.8.0 to be capable to install in a custom folder of my corporate computer.

Actual behavior (suspected bug)
As suggested by #442 (comment), it might work through eim-cli. however, the eim-cli is giving a Error executing CLI: Access is denied. (os error 5)

The error is the same with or without a --use-local-archive.

Note: This issue was first opened espressif/idf-im-cli#99 (Idk if the repo is still maintained)

Actual behavior (suspected bug)

As suggested by #442 (comment), it might work through eim-cli. however, the eim-cli is giving a Error executing CLI: Access is denied. (os error 5)

The error is the same with or without a --use-local-archive.

Error logs or terminal output

PS C:\Temp\ESP-IDF> .\eim-cli-windows-x64.exe install -p C:\Users\Local\.espressif --use-local-archive .\archive_vv5.5.3_windows-x64.zst
2026-02-24 13:49:14 -  1 - 02 - INFO - Returned settings: Ok(Settings { path: Some("C:\\Users\\Local\\.espressif"), idf_path: None, esp_idf_json_path: Some("C:\\Espressif\\tools"), tool_download_folder_name: Some("C:\\Espressif\\dist"), tool_install_folder_name: Some("C:\\Espressif\\tools"), target: Some(["all"]), idf_versions: None, tools_json_file: Some("tools/tools.json"), config_file: None, config_file_save_path: Some("eim_config.toml"), non_interactive: Some(true), wizard_all_questions: Some(false), mirror: Some("https://github.com"), idf_mirror: Some("https://github.com"), pypi_mirror: Some("https://pypi.org/simple"), recurse_submodules: Some(true), install_all_prerequisites: Some(false), idf_features: None, idf_features_per_version: None, idf_tools: None, idf_tools_per_version: None, repo_stub: None, skip_prerequisites_check: Some(false), version_name: None, cleanup: Some(false), python_env_folder_name: Some("python"), use_local_archive: Some(".\\archive_vv5.5.3_windows-x64.zst"), activation_script_path_override: Some("C:\\Espressif\\tools"), python_version_override: Some("python313") })
2026-02-24 13:49:15 -  1 - 02 - INFO - Extracting archive: ".\\archive_vv5.5.3_windows-x64.zst" to: "C:\\Users\\Local\\AppData\\Local\\Temp\\.tmpZs7lNi" with buffer size: 65536
2026-02-24 13:49:15 -  1 - 02 - INFO - Setting up zstd decoder with custom buffer size...
2026-02-24 13:49:15 -  1 - 02 - INFO - Extracting tar archive...
2026-02-24 13:50:46 -  1 - 02 - INFO - Archive extracted successfully to: "C:\\Users\\Local\\AppData\\Local\\Temp\\.tmpZs7lNi"
2026-02-24 13:50:46 -  1 - 02 - INFO - Successfully extracted archive to: TempDir { path: "C:\\Users\\Local\\AppData\\Local\\Temp\\.tmpZs7lNi" }
2026-02-24 13:50:50 -  1 - 02 - WARN - Failed to install Scoop: "Initializing offline installation...\r\nScoop is already installed. Run 'scoop update' to get the latest version.\r\nAbort.\r\n" | ""
2026-02-24 13:50:52 -  1 - 02 - INFO - 7zip manifest written to: C:\Users\Local\AppData\Local\Temp\.tmpZs7lNi\scoop\7zip.json
2026-02-24 13:50:52 -  1 - 02 - INFO - git manifest written to: C:\Users\Local\AppData\Local\Temp\.tmpZs7lNi\scoop\git.json
2026-02-24 13:50:52 -  1 - 02 - INFO - dark manifest written to: C:\Users\Local\AppData\Local\Temp\.tmpZs7lNi\scoop\dark.json
2026-02-24 13:50:52 -  1 - 02 - INFO - python manifest written to: C:\Users\Local\AppData\Local\Temp\.tmpZs7lNi\scoop\python.json
2026-02-24 13:50:52 -  1 - 02 - INFO - Installing 7zip (attempt 1/3)
2026-02-24 13:50:56 -  1 - 02 - INFO - 7zip installation completed.
2026-02-24 13:50:56 -  1 - 02 - INFO - 7zip installed and tested successfully.
2026-02-24 13:50:56 -  1 - 02 - INFO - Installing git (attempt 1/3)
2026-02-24 13:50:58 -  1 - 02 - INFO - git installation completed.
2026-02-24 13:51:02 -  1 - 02 - INFO - git installed and tested successfully.
2026-02-24 13:51:02 -  1 - 02 - INFO - Installing dark (attempt 1/3)
2026-02-24 13:51:05 -  1 - 02 - INFO - dark installation completed.
2026-02-24 13:51:05 -  1 - 02 - INFO - dark installed and tested successfully.
2026-02-24 13:51:05 -  1 - 02 - INFO - Installing python (attempt 1/3)
2026-02-24 13:51:08 -  1 - 02 - INFO - python installation completed.
2026-02-24 13:51:09 -  1 - 02 - INFO - python installed and tested successfully.
2026-02-24 13:51:09 -  1 - 02 - INFO - Successfully installed prerequisites from offline archive
2026-02-24 13:51:11 -  1 - 02 - INFO - All prerequisites are satisfied!
2026-02-24 13:51:11 -  1 - 02 - INFO - Running python sanity check
2026-02-24 13:51:17 -  1 - 02 - INFO - Your Python meets the requirements
2026-02-24 13:53:56 -  1 - 02 - INFO - Successfully copied content from offline archive to IDF path
2026-02-24 13:53:56 -  1 - 02 - INFO - Successfully merged requirements files to: C:\Users\Local\.espressif\v5.5.3\esp-idf\tools\requirements\requirements.merged.txt
2026-02-24 13:53:56 -  1 - 02 - INFO - Cloning ESP-IDF
Error executing CLI: Access is denied. (os error 5)

Steps to reproduce the behavior

  1. Download eim-cli
  2. Run it with the custom folder parameter -p

Project release version

v0.8.0

System architecture

Intel/AMD 64-bit (modern PC, older Mac)

Operating system

Windows

Operating system version

11

Shell

PowerShell

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions