Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法安装ESP_IDF V4.4.5 (IDFGH-11131) (VSC-1193) #1047

Closed
3 tasks done
us666666 opened this issue Sep 25, 2023 · 3 comments
Closed
3 tasks done

无法安装ESP_IDF V4.4.5 (IDFGH-11131) (VSC-1193) #1047

us666666 opened this issue Sep 25, 2023 · 3 comments
Assignees
Labels
duplicate This issue or pull request already exists Status: Opened

Comments

@us666666
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

V4.4.5

Operating System used.

Windows

How did you build your project?

VS Code IDE

If you are using Windows, please specify command line type.

None

What is the expected behavior?

正常安装

What is the actual behavior?

相反

Steps to reproduce.

1.Vscode 中安装 ESP-IDF Extension for Visual Studio Code
2.选择安装源为Github
3.点击install

Build or installation Logs.

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

Collecting virtualenv
  Using cached virtualenv-20.24.5-py3-none-any.whl (3.7 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.4-py3-none-any.whl (11 kB)
Collecting platformdirs<4,>=3.9.1
  Using cached platformdirs-3.10.0-py3-none-any.whl (17 kB)
Installing collected packages: distlib, platformdirs, filelock, virtualenv
Successfully installed distlib-0.3.7 filelock-3.12.4 platformdirs-3.10.0 virtualenv-20.24.5
Installing virtualenv
Creating a new Python environment in C:\Users\kingo\.espressif\python_env\idf4.4_py3.11_env
  WARNING: The script virtualenv.exe is installed in 'C:\Users\kingo\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\kingo\.espressif\tools\idf-python\3.11.2\python.exe -m pip install --upgrade pip
C:\Users\kingo\.espressif\tools\idf-python\3.11.2\python.exe: No module named virtualenv
Traceback (most recent call last):
  File "C:\Users\kingo\esp\esp-idf\tools\idf_tools.py", line 1976, in <module>
    main(sys.argv[1:])
  File "C:\Users\kingo\esp\esp-idf\tools\idf_tools.py", line 1972, in main
    action_func(args)
  File "C:\Users\kingo\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\\kingo\\.espressif\\tools\\idf-python\\3.11.2\\python.exe', '-m', 'virtualenv', '--python', 'C:\\Users\\kingo\\.espressif\\tools\\idf-python\\3.11.2\\python.exe', '--seeder', 'pip', 'C:\\Users\\kingo\\.espressif\\python_env\\idf4.4_py3.11_env']' returned non-zero exit status 1.
Command failed: "C:\Users\kingo\.espressif\tools\idf-python\3.11.2\python.exe" "C:\Users\kingo\esp\esp-idf\tools\idf_tools.py" install-python-env
  WARNING: The script virtualenv.exe is installed in 'C:\Users\kingo\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\kingo\.espressif\tools\idf-python\3.11.2\python.exe -m pip install --upgrade pip
C:\Users\kingo\.espressif\tools\idf-python\3.11.2\python.exe: No module named virtualenv
Traceback (most recent call last):
  File "C:\Users\kingo\esp\esp-idf\tools\idf_tools.py", line 1976, in <module>
    main(sys.argv[1:])
  File "C:\Users\kingo\esp\esp-idf\tools\idf_tools.py", line 1972, in main
    action_func(args)
  File "C:\Users\kingo\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\\kingo\\.espressif\\tools\\idf-python\\3.11.2\\python.exe', '-m', 'virtualenv', '--python', 'C:\\Users\\kingo\\.espressif\\tools\\idf-python\\3.11.2\\python.exe', '--seeder', 'pip', 'C:\\Users\\kingo\\.espressif\\python_env\\idf4.4_py3.11_env']' returned non-zero exit status 1.
Command failed: "C:\Users\kingo\.espressif\tools\idf-python\3.11.2\python.exe" "C:\Users\kingo\esp\esp-idf\tools\idf_tools.py" install-python-env
  WARNING: The script virtualenv.exe is installed in 'C:\Users\kingo\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\kingo\.espressif\tools\idf-python\3.11.2\python.exe -m pip install --upgrade pip
C:\Users\kingo\.espressif\tools\idf-python\3.11.2\python.exe: No module named virtualenv
Traceback (most recent call last):
  File "C:\Users\kingo\esp\esp-idf\tools\idf_tools.py", line 1976, in <module>
    main(sys.argv[1:])
  File "C:\Users\kingo\esp\esp-idf\tools\idf_tools.py", line 1972, in main
    action_func(args)
  File "C:\Users\kingo\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\\kingo\\.espressif\\tools\\idf-python\\3.11.2\\python.exe', '-m', 'virtualenv', '--python', 'C:\\Users\\kingo\\.espressif\\tools\\idf-python\\3.11.2\\python.exe', '--seeder', 'pip', 'C:\\Users\\kingo\\.espressif\\python_env\\idf4.4_py3.11_env']' returned non-zero exit status 1.

More Information.

No response

@us666666
Copy link
Author

当我手动创建virtualenv后能编绎,但。。。
FAILED: esp-idf/esp_system/ld/sections.ld C:/Users/kingo/OneDrive/all_code/ESP32_GLT/Esp32_IOT_BOARD/build/esp-idf/esp_system/ld/sections.ld
cmd.exe /C "cd /D C:\Users\kingo\OneDrive\all_code\ESP32_GLT\Esp32_IOT_BOARD\build\esp-idf\esp_system && C:\Users\kingo.espressif\python_env\idf4.4_py3.11_env\Scripts\python.exe C:/Users/kingo/esp/esp-idf/tools/ldgen/ldgen.py --config C:/Users/kingo/OneDrive/all_code/ESP32_GLT/Esp32_IOT_BOARD/sdkconfig --fragments C:/Users/kingo/esp/esp-idf/components/esp_ringbuf/linker.lf C:/Users/kingo/esp/esp-idf/components/driver/linker.lf C:/Users/kingo/esp/esp-idf/components/esp_pm/linker.lf C:/Users/kingo/esp/esp-idf/components/spi_flash/linker.lf C:/Users/kingo/esp/esp-idf/components/esp_gdbstub/linker.lf C:/Users/kingo/esp/esp-idf/components/espcoredump/linker.lf C:/Users/kingo/esp/esp-idf/components/esp_phy/linker.lf C:/Users/kingo/esp/esp-idf/components/esp_system/linker.lf C:/Users/kingo/esp/esp-idf/components/esp_system/app.lf C:/Users/kingo/esp/esp-idf/components/hal/linker.lf C:/Users/kingo/esp/esp-idf/components/esp_event/linker.lf C:/Users/kingo/esp/esp-idf/components/esp_wifi/linker.lf C:/Users/kingo/esp/esp-idf/components/lwip/linker.lf C:/Users/kingo/esp/esp-idf/components/log/linker.lf C:/Users/kingo/esp/esp-idf/components/heap/linker.lf C:/Users/kingo/esp/esp-idf/components/soc/linker.lf C:/Users/kingo/esp/esp-idf/components/esp_hw_support/linker.lf C:/Users/kingo/esp/esp-idf/components/xtensa/linker.lf C:/Users/kingo/esp/esp-idf/components/esp_common/common.lf C:/Users/kingo/esp/esp-idf/components/esp_common/soc.lf C:/Users/kingo/esp/esp-idf/components/freertos/linker.lf C:/Users/kingo/esp/esp-idf/components/newlib/newlib.lf C:/Users/kingo/esp/esp-idf/components/newlib/system_libs.lf C:/Users/kingo/esp/esp-idf/components/app_trace/linker.lf C:/Users/kingo/esp/esp-idf/components/bt/linker.lf C:/Users/kingo/esp/esp-idf/components/esp_lcd/linker.lf --input C:/Users/kingo/esp/esp-idf/components/esp_system/ld/esp32/sections.ld.in --output C:/Users/kingo/OneDrive/all_code/ESP32_GLT/Esp32_IOT_BOARD/build/esp-idf/esp_system/ld/sections.ld --kconfig C:/Users/kingo/esp/esp-idf/Kconfig --env-file C:/Users/kingo/OneDrive/all_code/ESP32_GLT/Esp32_IOT_BOARD/build/config.env --libraries-file C:/Users/kingo/OneDrive/all_code/ESP32_GLT/Esp32_IOT_BOARD/build/ldgen_libraries --objdump C:/Users/kingo/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-objdump.exe"
linker script generation failed for C:/Users/kingo/esp/esp-idf/components/esp_system/ld/esp32/sections.ld.in
ERROR: failed to parse C:/Users/kingo/esp/esp-idf/components/esp_phy/linker.lf
Expected end of text, found 'if' (at char 0), (line:1, col:1)
ninja: build stopped: subcommand failed.

@github-actions github-actions bot changed the title 无法安装ESP_IDF V4.4.5 无法安装ESP_IDF V4.4.5 (IDFGH-11131) Sep 25, 2023
@us666666
Copy link
Author

c:\Espressif\frameworks\esp-idf\tools\check_python_dependencies.py:12: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.htm

@Alvin1Zhang Alvin1Zhang transferred this issue from espressif/esp-idf Sep 25, 2023
@github-actions github-actions bot changed the title 无法安装ESP_IDF V4.4.5 (IDFGH-11131) 无法安装ESP_IDF V4.4.5 (IDFGH-11131) (VSC-1193) Sep 25, 2023
@brianignacio5
Copy link
Collaborator

This is fixed with #1021 and is a duplicate of #1015

@brianignacio5 brianignacio5 added the duplicate This issue or pull request already exists label Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists Status: Opened
Projects
None yet
Development

No branches or pull requests

3 participants