The vscode extension for ESPIDF was installed incorrectly

Xiaoci
Posts: 3
Joined: Wed Jul 13, 2022 6:43 pm

The vscode extension for ESPIDF was installed incorrectly

Postby Xiaoci » Sat Jul 29, 2023 8:02 am

When I install ESPIDF on the PC and virtual machine, go to the "Installing Python Virtual environment for ESP-IDF" step :cry: :cry: :cry:

Code: Select all

Using existing dfu-util (Device Firmware Upgrade Utilities) in C:\Users\xiaoci\.espressif\tools\dfu-util\0.9

pip 22.3.1 from C:\Users\xiaoci\.espressif\tools\idf-python\3.11.2\Lib\site-packages\pip (python 3.11)

Collecting virtualenv
  Using cached virtualenv-20.24.2-py3-none-any.whl (3.0 MB)
Collecting distlib<1,>=0.3.7
  Using cached distlib-0.3.7-py2.py3-none-any.whl (468 kB)
Collecting filelock<4,>=3.12.2
  Using cached filelock-3.12.2-py3-none-any.whl (10 kB)
Collecting platformdirs<4,>=3.9.1
  Using cached platformdirs-3.9.1-py3-none-any.whl (16 kB)
Installing collected packages: distlib, platformdirs, filelock, virtualenv
Successfully installed distlib-0.3.7 filelock-3.12.2 platformdirs-3.9.1 virtualenv-20.24.2
Installing virtualenv
Creating a new Python environment in C:\Users\xiaoci\.espressif\python_env\idf4.4_py3.11_env
  WARNING: The script virtualenv.exe is installed in 'C:\Users\xiaoci\AppData\Roaming\Python\Python311\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

[notice] A new release of pip available: 22.3.1 -> 23.2.1
[notice] To update, run: C:\Users\xiaoci\.espressif\tools\idf-python\3.11.2\python.exe -m pip install --upgrade pip
C:\Users\xiaoci\.espressif\tools\idf-python\3.11.2\python.exe: No module named virtualenv
Traceback (most recent call last):
  File "C:\Users\xiaoci\esp\esp-idf\tools\idf_tools.py", line 1976, in <module>
    main(sys.argv[1:])
  File "C:\Users\xiaoci\esp\esp-idf\tools\idf_tools.py", line 1972, in main
    action_func(args)
  File "C:\Users\xiaoci\esp\esp-idf\tools\idf_tools.py", line 1598, in action_install_python_env
    subprocess.check_call([sys.executable, '-m', 'virtualenv',
  File "subprocess.py", line 413, in check_call
subprocess.CalledProcessError: Command '['C:\\Users\\xiaoci\\.espressif\\tools\\idf-python\\3.11.2\\python.exe', '-m', 'virtualenv', '--python', 'C:\\Users\\xiaoci\\.espressif\\tools\\idf-python\\3.11.2\\python.exe', '--seeder', 'pip', 'C:\\Users\\xiaoci\\.espressif\\python_env\\idf4.4_py3.11_env']' returned non-zero exit status 1.
Command failed: "C:\Users\xiaoci\.espressif\tools\idf-python\3.11.2\python.exe" "C:\Users\xiaoci\esp\esp-idf\tools\idf_tools.py" install-python-env
  WARNING: The script virtualenv.exe is installed in 'C:\Users\xiaoci\AppData\Roaming\Python\Python311\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

[notice] A new release of pip available: 22.3.1 -> 23.2.1
[notice] To update, run: C:\Users\xiaoci\.espressif\tools\idf-python\3.11.2\python.exe -m pip install --upgrade pip
C:\Users\xiaoci\.espressif\tools\idf-python\3.11.2\python.exe: No module named virtualenv
Traceback (most recent call last):
  File "C:\Users\xiaoci\esp\esp-idf\tools\idf_tools.py", line 1976, in <module>
    main(sys.argv[1:])
  File "C:\Users\xiaoci\esp\esp-idf\tools\idf_tools.py", line 1972, in main
    action_func(args)
  File "C:\Users\xiaoci\esp\esp-idf\tools\idf_tools.py", line 1598, in action_install_python_env
    subprocess.check_call([sys.executable, '-m', 'virtualenv',
  File "subprocess.py", line 413, in check_call
subprocess.CalledProcessError: Command '['C:\\Users\\xiaoci\\.espressif\\tools\\idf-python\\3.11.2\\python.exe', '-m', 'virtualenv', '--python', 'C:\\Users\\xiaoci\\.espressif\\tools\\idf-python\\3.11.2\\python.exe', '--seeder', 'pip', 'C:\\Users\\xiaoci\\.espressif\\python_env\\idf4.4_py3.11_env']' returned non-zero exit status 1.
Command failed: "C:\Users\xiaoci\.espressif\tools\idf-python\3.11.2\python.exe" "C:\Users\xiaoci\esp\esp-idf\tools\idf_tools.py" install-python-env
  WARNING: The script virtualenv.exe is installed in 'C:\Users\xiaoci\AppData\Roaming\Python\Python311\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

[notice] A new release of pip available: 22.3.1 -> 23.2.1
[notice] To update, run: C:\Users\xiaoci\.espressif\tools\idf-python\3.11.2\python.exe -m pip install --upgrade pip
C:\Users\xiaoci\.espressif\tools\idf-python\3.11.2\python.exe: No module named virtualenv
Traceback (most recent call last):
  File "C:\Users\xiaoci\esp\esp-idf\tools\idf_tools.py", line 1976, in <module>
    main(sys.argv[1:])
  File "C:\Users\xiaoci\esp\esp-idf\tools\idf_tools.py", line 1972, in main
    action_func(args)
  File "C:\Users\xiaoci\esp\esp-idf\tools\idf_tools.py", line 1598, in action_install_python_env
    subprocess.check_call([sys.executable, '-m', 'virtualenv',
  File "subprocess.py", line 413, in check_call
subprocess.CalledProcessError: Command '['C:\\Users\\xiaoci\\.espressif\\tools\\idf-python\\3.11.2\\python.exe', '-m', 'virtualenv', '--python', 'C:\\Users\\xiaoci\\.espressif\\tools\\idf-python\\3.11.2\\python.exe', '--seeder', 'pip', 'C:\\Users\\xiaoci\\.espressif\\python_env\\idf4.4_py3.11_env']' returned non-zero exit status 1.

Who is online

Users browsing this forum: Bing [Bot] and 98 guests