IDF4.4.2升级到IDF4.4.6时出现原来的程序无法配置和编译,请问该如何解决?谢谢。

zldiy_SINBA
Posts: 5
Joined: Thu Sep 29, 2022 10:41 am

IDF4.4.2升级到IDF4.4.6时出现原来的程序无法配置和编译,请问该如何解决?谢谢。

Postby zldiy_SINBA » Thu Jul 18, 2024 9:05 am

起因是要测试另一个程序A,但是程序A使用的是IDF4.4.6的环境,我现在所有的程序B使用的是IDF4.4.2的环境;所以编译A的程序一直无法正常编译通过,后来只好升级环境,使用esp-idf-tools-setup-offline-4.4.6.EXE在另外一个目录下进行安装,后来安装成功后,编译A程序通过;但是编译B程序的时候出现问题,B程序无法编译,并且配置选型也无法开启;后来只好使用 esp-idf-tools-setup-offline-4.4.2.EXE对原来的4.4.2的目录做覆盖安装,但是依然无法正常编译;后来想到可能是之前使用了另一个版本的安装程序所以又在原来的4.4.2的目录下覆盖安装了esp-idf-tools-setup-espressif-ide-2.6.0-with-esp-idf-4.4.2环境; 但是依然无法执行编译; 还恳请各位大神帮忙看看如何恢复到可以编译B程序的4.4.2的环境,可以让B程序正常编译,并且可以做配置;十分感谢!

使用VScode Version
Version: 1.78.1
Commit: 6a995c4f4cc2ced6e3237749973982e751cb0bf9
Date: 2023-05-04T09:48:08.683Z
Electron: 22.5.1
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.22631
Sandboxed: No

ESP-IDF 版本 V1.6.5

出现的问题

Code: Select all

-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.35.3.windows.1") 
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: D:/Espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/Espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/Espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32s3
Solving dependencies requirements
CMake Error at D:/Espressif/frameworks/esp-idf-v4.4.2/tools/cmake/build.cmake:454 (message):
  Traceback (most recent call last):

    File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\urllib3\response.py", line 443, in _error_catcher
      yield
    File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\urllib3\response.py", line 566, in read
      data = self._fp_read(amt) if not fp_closed else b""
    File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\urllib3\response.py", line 532, in _fp_read
      return self._fp.read(amt) if amt is not None else self._fp.read()
    File "http\client.py", line 458, in read
    File "http\client.py", line 502, in readinto
    File "socket.py", line 669, in readinto
    File "ssl.py", line 1241, in recv_into
    File "ssl.py", line 1099, in read

  socket.timeout: The read operation timed out



  During handling of the above exception, another exception occurred:



  Traceback (most recent call last):

    File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\requests\models.py", line 816, in generate
      yield from self.raw.stream(chunk_size, decode_content=True)
    File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\urllib3\response.py", line 627, in stream
      data = self.read(amt=amt, decode_content=decode_content)
    File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\urllib3\response.py", line 592, in read
      raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
    File "contextlib.py", line 131, in __exit__
    File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\urllib3\response.py", line 448, in _error_catcher
      raise ReadTimeoutError(self._pool, None, "Read timed out.")

  urllib3.exceptions.ReadTimeoutError:
  HTTPSConnectionPool(host='api.components.espressif.com', port=443): Read
  timed out.



  During handling of the above exception, another exception occurred:



  Traceback (most recent call last):

    File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\idf_component_tools\api_client.py", line 158, in _base_request
      response = self.session.request(
    File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\requests\sessions.py", line 587, in request
      resp = self.send(prep, **send_kwargs)
    File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\requests\sessions.py", line 745, in send
      r.content
    File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\requests\models.py", line 899, in content
      self._content = b"".join(self.iter_content(CONTENT_CHUNK_SIZE)) or b""
    File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\requests\models.py", line 822, in generate
      raise ConnectionError(e)

  requests.exceptions.ConnectionError:
  HTTPSConnectionPool(host='api.components.espressif.com', port=443): Read
  timed out.



  During handling of the above exception, another exception occurred:



  Traceback (most recent call last):

    File "runpy.py", line 194, in _run_module_as_main
    File "runpy.py", line 87, in _run_code
    File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\idf_component_manager\prepare_components\__main__.py", line 3, in <module>
      main()
    File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\idf_component_manager\prepare_components\prepare.py", line 126, in main
      args.func(args)
    File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\idf_component_manager\prepare_components\prepare.py", line 39, in prepare_dep_dirs
      ComponentManager(args.project_dir).prepare_dep_dirs(
    File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\idf_component_manager\core.py", line 404, in prepare_dep_dirs
      downloaded_component_paths = download_project_dependencies(
    File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\idf_component_manager\dependencies.py", line 99, in download_project_dependencies
      solution = solver.solve()
    File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\idf_component_manager\version_solver\version_solver.py", line 29, in solve
      self.solve_manifest(manifest)
    File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\idf_component_manager\version_solver\version_solver.py", line 48, in solve_manifest
      self.solve_component(requirement)
    File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\idf_component_manager\version_solver\version_solver.py", line 66, in solve_component
      self.solve_component(dep)
    File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\idf_component_manager\version_solver\version_solver.py", line 51, in solve_component
      cmp_with_versions = requirement.source.versions(
    File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\idf_component_tools\sources\web_service.py", line 95, in versions
      cmp_with_versions = self.api_client.versions(name, spec, target)
    File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\idf_component_tools\api_client.py", line 196, in versions
      body = self._base_request(
    File "D:\Espressif\python_env\idf4.4_py3.8_env\lib\site-packages\idf_component_tools\api_client.py", line 178, in _base_request
      raise APIClientError('HTTP request error')

  idf_component_tools.api_client_errors.APIClientError: HTTP request error

Call Stack (most recent call first):
  D:/Espressif/frameworks/esp-idf-v4.4.2/tools/cmake/project.cmake:384 (idf_build_process)
  CMakeLists.txt:8 (project)


-- Configuring incomplete, errors occurred!
See also "D:/WorkSpace/WLD/HM200-Moniter/Code/WLDmoniter/build/CMakeFiles/CMakeOutput.log".

 *  The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -B d:\WorkSpace\WLD\HM200-Moniter\Code\WLDmoniter\build -S d:\WorkSpace\WLD\HM200-Moniter\Code\WLDmoniter" terminated with exit code: 1.

Who is online

Users browsing this forum: No registered users and 79 guests