ESP-IDF Installation problem while creating Python virtual env

begi78
Posts: 4
Joined: Mon Oct 09, 2023 5:24 pm

ESP-IDF Installation problem while creating Python virtual env

Postby begi78 » Mon Oct 09, 2023 5:32 pm

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

ESP_Jakub
Posts: 4
Joined: Tue Oct 10, 2023 11:48 am

Re: ESP-IDF Installation problem while creating Python virtual env

Postby ESP_Jakub » Tue Oct 10, 2023 12:06 pm

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

begi78
Posts: 4
Joined: Mon Oct 09, 2023 5:24 pm

Re: ESP-IDF Installation problem while creating Python virtual env

Postby begi78 » Fri Oct 13, 2023 2:14 pm

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

User avatar
ESP_Roland
Posts: 265
Joined: Tue Oct 09, 2018 10:28 am

Re: ESP-IDF Installation problem while creating Python virtual env

Postby ESP_Roland » Mon Oct 16, 2023 7:15 am

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.

begi78
Posts: 4
Joined: Mon Oct 09, 2023 5:24 pm

Re: ESP-IDF Installation problem while creating Python virtual env

Postby begi78 » Mon Oct 16, 2023 4:44 pm

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.

Who is online

Users browsing this forum: Google [Bot] and 105 guests