Skip to content

Offline Installation Fails on Windows Due to Network Dependency (EIM-330) #245

@eMUQI

Description

@eMUQI

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

The offline installation process, using the eim tool and the provided archive package, should complete successfully without requiring any internet connection. All necessary dependencies should be included in the offline archive.

Actual behavior (suspected bug)

I disabled the network adapter and started the installation(v5.4.3). The installation failed with the error shown in the image. Checking the logs revealed that the process still depends on the network and needs to request the file https://dl.espressif.com/dl/esp-idf/espidf.constraints.v5.4.txt

Image

Error logs or terminal output

eim_gui_log


[2025-10-29][02:15:37][eim::gui::commands::utils_commands][INFO] Set locale to: en
[2025-10-29][02:18:08][eim::gui::commands::prequisites][WARN] Python sanity check failed: Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Apps > Advanced app settings > App execution aliases.

[2025-10-29][02:18:08][eim::gui::commands::prequisites][WARN] Python sanity check failed: Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Apps > Advanced app settings > App execution aliases.

[2025-10-29][02:18:08][eim::gui::commands::prequisites][WARN] Python sanity check failed: Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Apps > Advanced app settings > App execution aliases.

[2025-10-29][02:18:08][eim::gui::commands::prequisites][WARN] Python sanity check failed: Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Apps > Advanced app settings > App execution aliases.

[2025-10-29][02:18:08][eim::gui::commands::prequisites][WARN] Python sanity check failed: Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Apps > Advanced app settings > App execution aliases.

[2025-10-29][02:18:26][eim::gui::commands::prequisites][WARN] Python sanity check failed: Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Apps > Advanced app settings > App execution aliases.

[2025-10-29][02:18:26][eim::gui::commands::prequisites][WARN] Python sanity check failed: Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Apps > Advanced app settings > App execution aliases.

[2025-10-29][02:18:26][eim::gui::commands::prequisites][WARN] Python sanity check failed: Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Apps > Advanced app settings > App execution aliases.

[2025-10-29][02:18:26][eim::gui::commands::prequisites][WARN] Python sanity check failed: Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Apps > Advanced app settings > App execution aliases.

[2025-10-29][02:18:26][eim::gui::commands::prequisites][WARN] Python sanity check failed: Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Apps > Advanced app settings > App execution aliases.

[2025-10-29][02:28:24][eim::gui::commands::utils_commands][INFO] Set locale to: en
[2025-10-29][02:28:48][eim::gui::commands::utils_commands][INFO] Set locale to: en
[2025-10-29][02:28:55][idf_im_lib::utils][INFO] Extracting archive: "C:\\Users\\wulu\\Downloads\\archive_v5.4.3_windows-x64.zst" to: "C:\\Users\\wulu\\AppData\\Local\\Temp\\.tmppRRtqK" with buffer size: 65536
[2025-10-29][02:28:55][idf_im_lib::utils][INFO] Setting up zstd decoder with custom buffer size...
[2025-10-29][02:28:55][idf_im_lib::utils][INFO] Extracting tar archive...
[2025-10-29][02:31:26][idf_im_lib::utils][INFO] Archive extracted successfully to: "C:\\Users\\wulu\\AppData\\Local\\Temp\\.tmppRRtqK"
[2025-10-29][02:31:26][idf_im_lib::offline_installer][INFO] Successfully extracted archive to: TempDir { path: "C:\\Users\\wulu\\AppData\\Local\\Temp\\.tmppRRtqK" }
[2025-10-29][02:31:45][idf_im_lib::offline_installer][INFO] Scoop installed successfully.
[2025-10-29][02:31:45][idf_im_lib::offline_installer][INFO] Scoop install path: C:\Users\wulu\scoop
[2025-10-29][02:31:46][idf_im_lib::offline_installer][INFO] 7zip manifest written to: C:\Users\wulu\AppData\Local\Temp\.tmppRRtqK\scoop\7zip.json
[2025-10-29][02:31:46][idf_im_lib::offline_installer][INFO] git manifest written to: C:\Users\wulu\AppData\Local\Temp\.tmppRRtqK\scoop\git.json
[2025-10-29][02:31:46][idf_im_lib::offline_installer][INFO] dark manifest written to: C:\Users\wulu\AppData\Local\Temp\.tmppRRtqK\scoop\dark.json
[2025-10-29][02:31:46][idf_im_lib::offline_installer][INFO] python manifest written to: C:\Users\wulu\AppData\Local\Temp\.tmppRRtqK\scoop\python.json
[2025-10-29][02:31:46][idf_im_lib::offline_installer][INFO] Installing 7zip (attempt 1/3)
[2025-10-29][02:31:56][idf_im_lib::offline_installer][INFO] 7zip installation completed.
[2025-10-29][02:31:56][idf_im_lib::offline_installer][INFO] 7zip installed and tested successfully.
[2025-10-29][02:31:56][idf_im_lib::offline_installer][INFO] Installing git (attempt 1/3)
[2025-10-29][02:32:25][idf_im_lib::offline_installer][INFO] git installation completed.
[2025-10-29][02:32:26][idf_im_lib::offline_installer][INFO] git installed and tested successfully.
[2025-10-29][02:32:26][idf_im_lib::offline_installer][INFO] Installing dark (attempt 1/3)
[2025-10-29][02:32:29][idf_im_lib::offline_installer][INFO] dark installation completed.
[2025-10-29][02:32:29][idf_im_lib::offline_installer][INFO] dark installed and tested successfully.
[2025-10-29][02:32:29][idf_im_lib::offline_installer][INFO] Installing python (attempt 1/3)
[2025-10-29][02:33:55][idf_im_lib::offline_installer][INFO] python installation completed.
[2025-10-29][02:33:56][idf_im_lib::offline_installer][INFO] python installed and tested successfully.
[2025-10-29][02:36:03][idf_im_lib::offline_installer][INFO] Successfully copied content from offline archive to IDF path
[2025-10-29][02:36:26][eim::gui::commands::idf_tools][INFO] Setting up tools...
[2025-10-29][02:36:26][idf_im_lib::idf_tools][INFO] Tool cmake has multiple versions, using the recommended or the first one
[2025-10-29][02:36:26][idf_im_lib::idf_tools][INFO] Tool 'openocd-esp32' is not installed. Downloading...
[2025-10-29][02:36:26][idf_im_lib][INFO] Decompressing C:\Espressif\dist\openocd-esp32-win64-0.12.0-esp32-20250707.zip to C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20250707
[2025-10-29][02:36:29][idf_im_lib][INFO] Decompression completed successfully.
[2025-10-29][02:36:29][idf_im_lib::idf_tools][INFO] Tool 'cmake' is already installed with the correct version: 3.30.2
[2025-10-29][02:36:29][idf_im_lib::idf_tools][INFO] Tool 'riscv32-esp-elf-gdb' is not installed. Downloading...
[2025-10-29][02:36:30][idf_im_lib][INFO] Decompressing C:\Espressif\dist\riscv32-esp-elf-gdb-16.3_20250913-x86_64-w64-mingw32.zip to C:\Espressif\tools\riscv32-esp-elf-gdb\16.3_20250913
[2025-10-29][02:36:31][idf_im_lib][INFO] Decompression completed successfully.
[2025-10-29][02:36:31][idf_im_lib::idf_tools][INFO] Tool 'ccache' is not installed. Downloading...
[2025-10-29][02:36:31][idf_im_lib][INFO] Decompressing C:\Espressif\dist\ccache-4.11.2-windows-x86_64.zip to C:\Espressif\tools\ccache\4.11.2
[2025-10-29][02:36:31][idf_im_lib][INFO] Decompression completed successfully.
[2025-10-29][02:36:31][idf_im_lib::idf_tools][INFO] Tool 'xtensa-esp-elf' is not installed. Downloading...
[2025-10-29][02:36:35][idf_im_lib][INFO] Decompressing C:\Espressif\dist\xtensa-esp-elf-14.2.0_20250730-x86_64-w64-mingw32.zip to C:\Espressif\tools\xtensa-esp-elf\esp-14.2.0_20250730
[2025-10-29][02:36:52][idf_im_lib][INFO] Decompression completed successfully.
[2025-10-29][02:36:52][idf_im_lib::idf_tools][INFO] Tool 'xtensa-esp-elf-gdb' is not installed. Downloading...
[2025-10-29][02:36:53][idf_im_lib][INFO] Decompressing C:\Espressif\dist\xtensa-esp-elf-gdb-16.3_20250913-x86_64-w64-mingw32.zip to C:\Espressif\tools\xtensa-esp-elf-gdb\16.3_20250913
[2025-10-29][02:36:54][idf_im_lib][INFO] Decompression completed successfully.
[2025-10-29][02:36:54][idf_im_lib::idf_tools][INFO] Tool 'esp-rom-elfs' is already installed with the correct version: 20241011
[2025-10-29][02:36:54][idf_im_lib::idf_tools][INFO] Tool 'esp32ulp-elf' is already installed with the correct version: 2.38_20240113
[2025-10-29][02:36:54][idf_im_lib::idf_tools][INFO] Tool 'qemu-riscv32' is not installed. Downloading...
[2025-10-29][02:37:00][idf_im_lib][INFO] Decompression completed successfully.
[2025-10-29][02:37:00][idf_im_lib::idf_tools][INFO] Tool 'esp-clang' is not installed. Downloading...
[2025-10-29][02:38:34][idf_im_lib][INFO] Decompression completed successfully.
[2025-10-29][02:38:34][idf_im_lib::idf_tools][INFO] Tool 'ninja' is already installed with the correct version: 1.12.1
[2025-10-29][02:38:34][idf_im_lib::idf_tools][INFO] Tool 'idf-exe' is already installed with the correct version: 1.0.3
[2025-10-29][02:38:34][idf_im_lib::idf_tools][INFO] Tool 'qemu-xtensa' is not installed. Downloading...
[2025-10-29][02:38:39][idf_im_lib][INFO] Decompression completed successfully.
[2025-10-29][02:38:39][idf_im_lib::idf_tools][INFO] Tool 'riscv32-esp-elf' is not installed. Downloading...
[2025-10-29][02:38:46][idf_im_lib][INFO] Decompressing C:\Espressif\dist\riscv32-esp-elf-14.2.0_20250730-x86_64-w64-mingw32.zip to C:\Espressif\tools\riscv32-esp-elf\esp-14.2.0_20250730
[2025-10-29][02:39:06][idf_im_lib][INFO] Decompression completed successfully.
[2025-10-29][02:39:06][idf_im_lib::idf_tools][INFO] Tool 'dfu-util' is already installed with the correct version: 0.11
[2025-10-29][02:39:06][eim::gui::commands::idf_tools][INFO] Setting up tools... to directory: C:\Espressif\tools
[2025-10-29][02:39:06][idf_im_lib::python_utils][INFO] Creating Python virtual environment at: C:\Espressif\tools\python\v5.4.3\venv
[2025-10-29][02:39:20][idf_im_lib::python_utils][INFO] Downloading constraints file from https://dl.espressif.com/dl/esp-idf/espidf.constraints.v5.4.txt
[2025-10-29][02:39:20][idf_im_lib::python_utils][ERROR] Failed to download constraints file: error sending request for url (https://dl.espressif.com/dl/esp-idf/espidf.constraints.v5.4.txt)
[2025-10-29][02:39:20][idf_im_lib::python_utils][WARN] Failed to download constraints file: Failed to download constraints file
[2025-10-29][02:39:22][idf_im_lib::python_utils][ERROR] failed to install requirements from file "C:\\esp\\v5.4.3\\esp-idf\\tools\\requirements\\requirements.core.txt": ERROR: Could not open requirements file: [Errno 2] No such file or directory: ''

[2025-10-29][02:39:22][eim::gui::commands::idf_tools][ERROR] Failed to install Python environment: failed to install requirements from file "C:\\esp\\v5.4.3\\esp-idf\\tools\\requirements\\requirements.core.txt": ERROR: Could not open requirements file: [Errno 2] No such file or directory: ''

[2025-10-29][02:39:22][eim::gui::commands::installation][ERROR] Failed to setup tools: Failed to install Python environment: failed to install requirements from file "C:\\esp\\v5.4.3\\esp-idf\\tools\\requirements\\requirements.core.txt": ERROR: Could not open requirements file: [Errno 2] No such file or directory: ''

Steps to reproduce the behavior

  1. Download eim and archive_v5.4.3_windows-x64.zst
  2. Perform offline installation

Project release version

0.5.5

System architecture

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

Operating system

Windows

Operating system version

Windows 10

Shell

other (details in Additional context)

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