Closed mys812 closed 3 years ago
@mys812 Thank you for reporting the problem. Please attach also first 10 lines of the installer log. These lines contains diagnostic informations about operating system. Having those information can help us to identify the issue.
It's also helpful to attach information from the second installer screen with System Check.
@mys812 Please check whether your computer does not have installed some older version of Python. More precisely weather environment variable PATH does not contain path to an old Python directory with DLL libssl-X.Y.dll
We were able to simulate similar problem when removing x64 bit version of libssl-1.1.dll from idf-python directory.
Solution: uninstall old version of Python and run the installer again.
One way to diagnose Python's is to execute the installer from command line with following option:
esp-idf-tools-setup-offline-2.12-beta-03.exe /USEEMBEDDEDPYTHON=no
The System Check page in the installer will contain more details about detected Pythons. Please, post the list of Pythons and diagnostic messages for further analysis. Recommended solution: Remove unused Pythons which might collide with Python 3.8.7 installed as part of ESP-IDF.
@mys812 Thank you for reporting the problem. Please attach also first 10 lines of the installer log. These lines contains diagnostic informations about operating system. Having those information can help us to identify the issue.
It's also helpful to attach information from the second installer screen with System Check.
2021-10-17 15:39:13.107 Log opened. (Time zone: UTC+08:00) 2021-10-17 15:39:13.107 Setup version: Inno Setup version 6.2.0 2021-10-17 15:39:13.107 Original Setup EXE: C:\Users\pc01\Downloads\esp-idf-tools-setup-offline-2.12-beta-03.exe 2021-10-17 15:39:13.107 Setup command line: /SL5="$2B036C,1883513201,831488,C:\Users\pc01\Downloads\esp-idf-tools-setup-offline-2.12-beta-03.exe" 2021-10-17 15:39:13.107 Windows version: 6.1.7601 SP1 (NT platform: Yes) 2021-10-17 15:39:13.107 64-bit Windows: Yes 2021-10-17 15:39:13.107 Processor architecture: x64 2021-10-17 15:39:13.107 User privileges: None 2021-10-17 15:39:13.209 Administrative install mode: No 2021-10-17 15:39:13.209 Install mode root key: HKEY_CURRENT_USER 2021-10-17 15:39:13.210 64-bit install mode: Yes 2021-10-17 15:39:14.232 Created temporary directory: C:\Users\pc01\AppData\Local\Temp\is-513V6.tmp 2021-10-17 15:39:14.239 -- DLL function import -- 2021-10-17 15:39:14.239 Function name: idpAddFile 2021-10-17 15:39:14.239 DLL name: files:idp.dll 2021-10-17 15:39:14.239 Extracting temporary file: C:\Users\pc01\AppData\Local\Temp\is-513V6.tmp\idp.dll 2021-10-17 15:39:14.265 Dest DLL name: C:\Users\pc01\AppData\Local\Temp\is-513V6.tmp\idp.dll 2021-10-17 15:39:14.265 Importing the DLL function. 2021-10-17 15:39:14.272 Successfully imported the DLL function. Delay loaded? No 2021-10-17 15:39:14.272 -- DLL function import -- 2021-10-17 15:39:14.272 Function name: idpAddFileComp 2021-10-17 15:39:14.272 DLL name: files:idp.dll
@mys812 Please check whether your computer does not have installed some older version of Python. More precisely weather environment variable PATH does not contain path to an old Python directory with DLL
libssl-X.Y.dll
We were able to simulate similar problem when removing x64 bit version of libssl-1.1.dll from idf-python directory.
Solution: uninstall old version of Python and run the installer again.
I only install .net framework4.6.2, vscode1.61.0 and Visual C++ Redistributable for Visual Studio 2015 After reinstall Win7. Not install any version of python an my PC, and i search libssl* at C:/ and d:/, Only found two records below D:\tools\Esp32.espressif\tools\idf-git\2.30.1\mingw64\bin\libssl-1_1-x64.dll D:\tools\Esp32.espressif\tools\idf-python\3.8.7\libssl-1_1.dll
One way to diagnose Python's is to execute the installer from command line with following option:
esp-idf-tools-setup-offline-2.12-beta-03.exe /USEEMBEDDEDPYTHON=no
The System Check page in the installer will contain more details about detected Pythons. Please, post the list of Pythons and diagnostic messages for further analysis. Recommended solution: Remove unused Pythons which might collide with Python 3.8.7 installed as part of ESP-IDF.
I open cmd by administer mode,go to esp_idf install file path, then exec esp-idf-tools-setup-offline-2.12-beta-03.exe /USEEMBEDDEDPYTHON=no then select Use Python 3.8.7 Embedded(Recommended) tools\idf-python\3.8.7\python.exe (only one selection) install also failed by code 101
2021-10-19 18:03:03.000 Log opened. (Time zone: UTC+08:00) 2021-10-19 18:03:03.000 Setup version: Inno Setup version 6.2.0 2021-10-19 18:03:03.000 Original Setup EXE: F:\toolBak\esp-idf-tools-setup-offline-2.12-beta-03.exe 2021-10-19 18:03:03.000 Setup command line: /SL5="$110426,1883513201,831488,F:\toolBak\esp-idf-tools-setup-offline-2.12-beta-03.exe" /USEEMBEDDEDPYTHON=no 2021-10-19 18:03:03.000 Windows version: 6.1.7601 SP1 (NT platform: Yes) 2021-10-19 18:03:03.000 64-bit Windows: Yes 2021-10-19 18:03:03.000 Processor architecture: x64 2021-10-19 18:03:03.000 User privileges: Administrative 2021-10-19 18:03:03.093 Administrative install mode: No 2021-10-19 18:03:03.109 Install mode root key: HKEY_CURRENT_USER 2021-10-19 18:03:03.109 64-bit install mode: Yes 2021-10-19 18:03:04.684 Created temporary directory: C:\Users\pc01\AppData\Local\Temp\is-DQKLG.tmp 2021-10-19 18:03:04.684 -- DLL function import -- 2021-10-19 18:03:04.684 Function name: idpAddFile 2021-10-19 18:03:04.700 DLL name: files:idp.dll 2021-10-19 18:03:04.700 Extracting temporary file: C:\Users\pc01\AppData\Local\Temp\is-DQKLG.tmp\idp.dll 2021-10-19 18:03:04.716 Dest DLL name: C:\Users\pc01\AppData\Local\Temp\is-DQKLG.tmp\idp.dll 2021-10-19 18:03:04.716 Importing the DLL function. 2021-10-19 18:03:04.716 Successfully imported the DLL function. Delay loaded? No 2021-10-19 18:03:04.716 -- DLL function import -- 2021-10-19 18:03:04.716 Function name: idpAddFileComp 2021-10-19 18:03:04.716 DLL name: files:idp.dll 2021-10-19 18:03:04.716 Dest DLL name: C:\Users\pc01\AppData\Local\Temp\is-DQKLG.tmp\idp.dll 2021-10-19 18:03:04.716 Importing the DLL function. 2021-10-19 18:03:04.716 Successfully imported the DLL function. Delay loaded? No 2021-10-19 18:03:04.716 -- DLL function import -- 2021-10-19 18:03:04.716 Function name: idpAddMirror 2021-10-19 18:03:04.716 DLL name: files:idp.dll 2021-10-19 18:03:04.716 Dest DLL name: C:\Users\pc01\AppData\Local\Temp\is-DQKLG.tmp\idp.dll 2021-10-19 18:03:04.716 Importing the DLL function. 2021-10-19 18:03:04.716 Successfully imported the DLL function. Delay loaded? No
. . . .
2021-10-19 18:03:04.731 Successfully imported the DLL function. Delay loaded? No
2021-10-19 18:03:04.809 Configuration /CONFIG=
2021-10-19 18:03:04.809 Configuration /GITCLEAN=yes
2021-10-19 18:03:04.809 Configuration /GITRECURSIVE=yes
2021-10-19 18:03:04.809 Configuration /GITRESET=yes
2021-10-19 18:03:04.809 Configuration /GITREPO=https://github.com/espressif/esp-idf.git
2021-10-19 18:03:04.809 Configuration /IDFDIR=
2021-10-19 18:03:04.809 Configuration /IDFUSEEXISTING=no
2021-10-19 18:03:04.809 Configuration /IDFVERSION=
2021-10-19 18:03:04.809 Configuration /IDFVERSIONSURL=https://dl.espressif.com/dl/esp-idf/idf_versions.txt
2021-10-19 18:03:04.809 Configuration /OFFLINE=yes
2021-10-19 18:03:04.809 Configuration /PYTHONNOUSERSITE=yes
2021-10-19 18:03:04.809 Configuration /PYTHONWHEELSURL=https://dl.espressif.com/pypi
2021-10-19 18:03:04.809 Configuration /PYTHONWHEELSVERSION=3.8-2021-08-10
2021-10-19 18:03:04.809 Configuration /SKIPSYSTEMCHECK=no
2021-10-19 18:03:04.809 Configuration /USEEMBEDDEDGIT=yes
2021-10-19 18:03:04.809 Configuration /USEEMBEDDEDPYTHON=no
2021-10-19 18:03:04.809 Extracting temporary file: C:\Users\pc01\AppData\Local\Temp\is-DQKLG.tmp\idf-env.exe
2021-10-19 18:03:04.918 Adding Python version=3.8.7 name=Use Python 3.8.7 Embedded (Recommended) executable=tools\idf-python\3.8.7\python.exe
2021-10-19 18:03:04.918 Found link in "For more infojects/esp-idf/en/latest/versions.html": "https://docs.espressif.com/projects/esp-idf/en/latest/versions.html"
2021-10-19 18:03:08.085 Starting system check ...
2021-10-19 18:03:08.101 Checking "Long Paths Enabled" in Windows registry
2021-10-19 18:03:08.116 [OK]
2021-10-19 18:03:08.116 Active code page:
2021-10-19 18:03:08.116 Executing: chcp.com
2021-10-19 18:03:08.179
2021-10-19 18:03:08.194 Extracting temporary file: C:\Users\pc01\AppData\Local\Temp\is-DQKLG.tmp\system_check_download.py
2021-10-19 18:03:08.210 Extracting temporary file: C:\Users\pc01\AppData\Local\Temp\is-DQKLG.tmp\system_check_subprocess.py
2021-10-19 18:03:08.210 Extracting temporary file: C:\Users\pc01\AppData\Local\Temp\is-DQKLG.tmp\system_check_virtualenv.py
2021-10-19 18:03:08.210 Nothing found in -2147483647\Software\Python
2021-10-19 18:03:08.210 Nothing found in -2147483646\Software\Python
2021-10-19 18:03:08.210 Nothing found in -2147483646\Software\Wow6432Node\Python
2021-10-19 18:03:08.210 Executing: C:\Users\pc01\AppData\Local\Temp\is-DQKLG.tmp\idf-env.exe antivirus get --property displayName
2021-10-19 18:03:08.288 Result:
2021-10-19 18:03:08.288 Executing: C:\Users\pc01\AppData\Local\Temp\is-DQKLG.tmp\idf-env.exe antivirus get --property displayName
2021-10-19 18:03:08.335 Result:
2021-10-19 18:03:08.335 Detected antivirus:
2021-10-19 18:03:08.335 * Check complete.
2021-10-19 18:03:09.318 OnPythonPagePrepare
2021-10-19 18:03:13.467 ApplyPythonConfigurationByIndex index=0
2021-10-19 18:03:13.467 ApplyPythonConfigurationByIndex: PythonPath=tools\idf-python\3.8.7\ PythonExecutablePath=tools\idf-python\3.8.7\python.exe
2021-10-19 18:03:13.483 OnIDFDownloadPagePrepare
2021-10-19 18:03:13.483 Offline Mode: using embedded idf_versions.txt
2021-10-19 18:03:13.483 Extracting temporary file: C:\Users\pc01\AppData\Local\Temp\is-DQKLG.tmp\idf_versions.txt
2021-10-19 18:03:13.483 Versions count: 2
2021-10-19 18:03:13.483 Version 0: v4.3.1
2021-10-19 18:03:13.483 Version 1: v4.2.2
2021-10-19 18:03:21.361 OnIDFDownloadPageValidate index=0
2021-10-19 18:03:29.005 Checking location of ToolsDir D:\tools\Esp32.espressif is not a subdirectory of D:\workgroup\ESP32_IDF\
2021-10-19 18:03:33.997 Summary message:
Using Embedded Python 3.8.7
Using Embedded Git :
D:\tools\Esp32\.espressif\tools\idf-git\2.30.1\cmd\git.exe
Will install ESP-IDF v4.3.1 into:
D:\workgroup\ESP32_IDF
IDF tools directory (IDF_TOOLS_PATH):
D:\tools\Esp32\.espressif
2021-10-19 18:03:34.808 PythonExecutablePathUpdateAfterInstall: PythonPath=D:\tools\Esp32.espressif\tools\idf-python\3.8.7\ PythonExecutablePath=D:\tools\Esp32.espressif\tools\idf-python\3.8.7\python.exe 2021-10-19 18:03:34.964 Found 204 files to register with RestartManager. 2021-10-19 18:03:34.964 Calling RestartManager's RmGetList. 2021-10-19 18:03:34.980 RmGetList finished successfully. 2021-10-19 18:03:34.980 RestartManager found no applications using one of our files. 2021-10-19 18:03:34.980 Starting the installation process. 2021-10-19 18:03:34.980 Directory for uninstall files: D:\tools\Esp32.espressif 2021-10-19 18:03:34.980 Creating new uninstall log: D:\tools\Esp32.espressif\unins000.dat 2021-10-19 18:03:34.980 -- File entry -- 2021-10-19 18:03:34.980 Dest filename: D:\tools\Esp32.espressif\unins000.exe 2021-10-19 18:03:34.980 Non-default bitness: 32-bit 2021-10-19 18:03:34.980 Time stamp of our file: 2021-10-19 18:03:02.922
. . . .
2021-10-19 18:05:27.690 Creating new uninstall key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall{9E068D99-5C4B-4E5F-96A3-B17CF291E6BD}_is1
2021-10-19 18:05:27.705 Writing uninstall key values.
2021-10-19 18:05:27.705 Detected previous administrative 64-bit install? No
2021-10-19 18:05:27.705 Detected previous administrative 32-bit install? No
2021-10-19 18:05:27.814 Installation process succeeded.
2021-10-19 18:05:27.814 Extracting temporary file: C:\Users\pc01\AppData\Local\Temp\is-DQKLG.tmp\7za.exe
2021-10-19 18:05:28.033 Done, exit code=101
2021-10-19 18:05:28.033 --------
2021-10-19 18:05:28.033 Running command: C:\Users\pc01\AppData\Local\Temp\is-DQKLG.tmp\idf-env.exe driver install --ftdi --silabs --espressif
Using cached directory: C:\Users\pc01/.espressif/tools/idf-driver/silabs-2021-05-0
Using cached directory: C:\Users\pc01/.espressif/tools/idf-driver/ftdi-2021-05-0
Downloading https://dl.espressif.com/dl/idf-driver/idf-driver-esp32-usb-jtag-2021-07-15.zip to C:\Users\pc01/.espressif/dist/idf-driver-esp32-usb-jtag-2021-07-15.zi
thread 'Result::unwrap()
on an Err
value: reqwest::Error { kind: Request, url: Url { scheme: "https", cannot_be_abase: false, username: "", password: None, host: Some(Domain("dl.espressif.com")), port: None, path: "/dl/idf-driver/idf-driver-esp32-usb-jtag-2021-07-15.zip", query: None, fragment: None }, source: hyper::Error(Connect, Os { code: -2146893018, kind: Uncategorized, message: "接收到的消息异常,或格式不正确"}) }', src\package.rs:146:69
note: run with `RUST
CKTRACE=1environment variable to display a backtrac thread 'main' panicked at 'called
Result::unwrap()on an
Err` value: Any { .. }', src\package.rs:148:1
2021-10-19 18:05:28.033 -------- 2021-10-19 18:05:28.033 Message box (OK): Installation has failed with exit code 101
My network is ok, and I can download https://dl.espressif.com/dl/idf-driver/idf-driver-esp32-usb-jtag-2021-07-15.zip by chorme
Thank you @mys812 for all these details. The bug looks really strange.
Please try following solution:
/USEEMBEDDEDPYTHON=no
Issue with driver failure installation was fixed in the installer
After I reinstalled the Win7 system, there is no SSL certificate of "dl.espressif.com", So install failed when download drivers from server by SSL. Can you send me the certificate of "dl.espressif.com". My e-mail: mys@titnb.cn thanks!
I installed python-3.8.9-amd64.exe and selected phthon3.8, The online or offline version of esp-idf-tools failed to install, the error is the same。same as 2.12-bata-04.
below is run install last faied cmd by command screen logs
F:\toolBak>C:\Users\pc01\AppData\Local\Temp\is-0R3FL.tmp\idf-env.exe driver install --ftdi --silabs --espressif
Using cached archive: C:\Users\pc01/.espressif/dist/cp210x.zip
Using cached archive: C:\Users\pc01/.espressif/dist/ftdi.zip
Downloading https://dl.espressif.com/dl/idf-driver/idf-driver-esp32-usb-jtag-2021-07-15.zip to C:\Users\pc01/.espressif/dist/idf-driver-esp32-usb-jtag-2021-07-15.zip
thread 'Result::unwrap()
on an Err
value: reqwest::Error { kind: Request, url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("dl.espressif.com")), port: None, path: "/dl/idf-driver/idf-driver-esp32-usb-jtag-2021-07-15.zip", query: None, fragment: None }, source: hyper::Error(Connect, Os { code: -2146893018, kind:Uncategorized, message: "接收到的消息异常,或格式不正确。" }) }', src\package.rs:146:69
note: run with RUST_BACKTRACE=1
environment variable to display a backtracethread 'main' panicked at 'called Result::unwrap()
on an Err
value: Any { .. }', src\package.rs:148:18
F:\toolBak>
@mys812 Thank you for being patient and reporting results of the installation. We have here two separate issues:
Problem 1. The download should not happen in case of offline installer. The offline installer should download all files including drivers to .espressif/tools directory. Then the command with install should use this cached files. Yet, what we see is idf-env is still trying to download files and fails for some reason. The installation should not fail in this case, because this is recoverable error.
Problem 2. This seems like a collision with some other Python. The problem didn't occur after fresh reinstall of Windows 7 x64.
I'll post solution here.
If you're in hurry, you can install ESP-IDF manually:
git clone --recursive git@github.com:espressif/esp-idf.git
Now you should have working environment.
To fix the certificate issue I recommend to open Internet Explorer (yes, Internet Explorer, not other browser) and try to open https://dl.espressif.com. This should cause the system to download whole certificate chain. The certificate chain is then tursted by applications like Python. If the connection still fails, please use Firefox to open the site dl.espressif.com. Click the shield and install the certificate into the system. Windows 7 is no longer supported by Microsoft, so these issues with certificates are being more common.
I can confirm that the download with idf-env really fails on freshly installed Windows 7 as you reported.
I tried various methods and still cannot successfully install idf-tool on win7. I plan to give up win7 and install win10
@mys812 Using Windows 10 is better option. It's easier to support.
Nevertheless I made further investigation of the problem. It's pretty interesting. The issue is not caused just by missing certificates. The Windows 7 is not able to connect via system API (used for PowerShell, Internet Explorer or Rust Reqwest), because Windows 7 does not support TLS 1.3. https://sockettools.com/kb/windows-and-supported-tls-versions/
That means we can expect the similar issue also on Windows 8.
@mys812 We updated the configuration of servers, so that it supports also TLSv1.2 with some limited secure ciphers. This should fix the download issue on Windows 7 for a time-being.
We still recommend to move to modern OS like Windows 10 or Windows 11.
Due to increasing number of issues with certificates and encryption we're phasing out Windows 7 and Windows 8 support.
I have installed win10 and IDF-tool has been successfully installed, thank you for your help.
I'm glad to hear that ESP-IDF is working for you. Should you have any problem, please let us know. I'd like to say Thank you, because thanks to your detailed reports, we were able identify several errors in our deployment.
2021-10-17 15:42:03.803 -------- 2021-10-17 15:42:03.816 Resetting the repository: D:\tools\Esp32.espressif\tools\idf-git\2.30.1\cmd\git.exe -C D:\workgroup\ESP32_IDF clean --force -d 2021-10-17 15:42:03.904 Done, exit code=0 2021-10-17 15:42:03.904 -------- 2021-10-17 15:42:03.904 Running command: D:\tools\Esp32.espressif\tools\idf-git\2.30.1\cmd\git.exe -C D:\workgroup\ESP32_IDF clean --force -d
2021-10-17 15:42:03.904 -------- 2021-10-17 15:42:03.907 idf_tools.py exists in IDF directory 2021-10-17 15:42:03.907 Offline installation selected. Setting environment variable PIP_NO_INDEX=1 2021-10-17 15:42:03.907 idf_tools.py command: D:\tools\Esp32.espressif\tools\idf-python\3.8.7\python.exe "D:\workgroup\ESP32_IDF\tools\idf_tools.py" --idf-path D:\workgroup\ESP32_IDF\ 2021-10-17 15:42:03.907 Selection of targets testing command: D:\tools\Esp32.espressif\tools\idf-python\3.8.7\python.exe "D:\workgroup\ESP32_IDF\tools\idf_tools.py" install --targets="" 2021-10-17 15:42:04.045 Selection of targets: Supported 2021-10-17 15:42:04.045 Installing tools:D:\tools\Esp32.espressif\tools\idf-python\3.8.7\python.exe "D:\workgroup\ESP32_IDF\tools\idf_tools.py" --idf-path D:\workgroup\ESP32_IDF\ install --targets=esp32,esp32-c3,esp32-s3,esp32-s2 2021-10-17 15:42:04.127 Done, exit code=1 2021-10-17 15:42:04.127 -------- 2021-10-17 15:42:04.127 Running command: D:\tools\Esp32.espressif\tools\idf-python\3.8.7\python.exe "D:\workgroup\ESP32_IDF\tools\idf_tools.py" --idf-path D:\workgroup\ESP32_IDF\ install --targets=esp32,esp32-c3,esp32-s3,esp32-s2 Traceback (most recent call last): File "D:\workgroup\ESP32_IDF\tools\idf_tools.py", line 54, in
import ssl
File "ssl.py", line 98, in
ImportError: DLL load failed while importing _ssl: 参数错误。