Page 1 of 1
ESP-IDF Installation problem while creating Python virtual env
Posted: Mon Oct 09, 2023 5:32 pm
by begi78
Hello,
I encounter a problem during installation of the esp-idf (V5.1.1) with esp-idf-tools-setup-offline-5.1.1.exe
I tried several combination, starting the installation after installing last python package or removing the antivirus witout success.
The log file part is the following:
023-10-09 17:10:49.621 --------
2023-10-09 17:10:49.625 ESP-IDF Python Virtual environment does not exist, creating the environment: C:\Users\begi\Espressif\tools\idf-python\3.11.2\python.exe -m venv "C:\Users\begi\Espressif\python_env\idf5.1_py3.11_env"
2023-10-09 17:10:50.330 Done, exit code=1
2023-10-09 17:10:50.330 --------
2023-10-09 17:10:50.330 Running command: C:\Users\begi\Espressif\tools\idf-python\3.11.2\python.exe -m venv "C:\Users\begi\Espressif\python_env\idf5.1_py3.11_env"
Error: Command '['C:\\Users\\begi\\Espressif\\python_env\\idf5.1_py3.11_env\\Scripts\\python.exe', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
Thanks a lot.
Bert
Re: ESP-IDF Installation problem while creating Python virtual env
Posted: Tue Oct 10, 2023 12:06 pm
by ESP_Jakub
Hello Bert,
Can you please provide the content from the second screen ("Pre-installation system check") of installer?
Also try to run following command:
Code: Select all
C:\Users\begi\Espressif\python_env\idf5.1_py3.11_env\Scripts\python.exe -m ensurepip --upgrade --default-pip
and send back the output.
Thanks,
Jakub
Re: ESP-IDF Installation problem while creating Python virtual env
Posted: Fri Oct 13, 2023 2:14 pm
by begi78
Hello Jakub,
Thanks for your reply.
Pre-installation:
* Starting system check ...
* Windows version: 10.00.22621 [OK]
* Checking "Long Paths Enabled" in Windows registry [OK]
* Active code page: 5001
* Detected antivirus: Norton Security, McAfee, Reason Cybersecurity, Windows Defender
* Environment variables (PATHEXT) . [OK]
* Check complete.
Command:
C:\Users\begi>C:\Users\begi\Espressif\python_env\idf5.1_py3.11_env\Scripts\python.exe -m ensurepip --upgrade --default-pip
Le chemin d’accès spécifié est introuvable.
C:\Users\begi>C:\Users\begi\Espressif\python_env\idf5.1_py3.11_env\Scripts\python.exe -m ensurepip --upgrade --default-pip
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\begi\Espressif\tools\idf-python\3.11.2\Lib\ensurepip\__main__.py", line 5, in <module>
sys.exit(ensurepip._main())
^^^^^^^^^^^^^^^^^
File "C:\Users\begi\Espressif\tools\idf-python\3.11.2\Lib\ensurepip\__init__.py", line 286, in _main
return _bootstrap(
^^^^^^^^^^^
File "C:\Users\begi\Espressif\tools\idf-python\3.11.2\Lib\ensurepip\__init__.py", line 202, in _bootstrap
return _run_pip([*args, *_PACKAGE_NAMES], additional_paths)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\begi\Espressif\tools\idf-python\3.11.2\Lib\ensurepip\__init__.py", line 103, in _run_pip
return subprocess.run(cmd, check=True).returncode
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "subprocess.py", line 548, in run
File "subprocess.py", line 1024, in __init__
File "subprocess.py", line 1493, in _execute_child
OSError: [WinError 225] Impossible de terminer l’opération, car le fichier contient un virus ou un logiciel potentiellement indésirable
Re: ESP-IDF Installation problem while creating Python virtual env
Posted: Mon Oct 16, 2023 7:15 am
by ESP_Roland
It looks like one of the antivirus programs are blocking the installation. I don't know which one because you seem to have three different ones in addition to Windows defender.
You can try to disable them one-by-one to see if that helps. After you've identified the one which is blocking then you can manually add exception to paths it has issues with.
Re: ESP-IDF Installation problem while creating Python virtual env
Posted: Mon Oct 16, 2023 4:44 pm
by begi78
You are completely right. The Reason Labs antivirus has been installed without my consent and was interacting with the installation program.
After uninstalled it, the installation went well.
Thanks a lot for your help.