Cannon build any projects: ninja: error: loading 'build.ninja': The system cannot find the file specified.
Posted: Mon Oct 03, 2022 6:34 pm
Hello,
I'm unable to build any example projects after isntalling the ESP-IDE and IDF ver 5 using the windows online tools. I get the following error messages when I try to build.
Python being checked: C:\Espressif\python_env\idf5.0_py3.8_env\Scripts\python.exe
Python requirements are satisfied.
Solving dependencies requirements
CMake Error at C:/Espressif/frameworks/esp-idf-v5.0/tools/cmake/build.cmake:519 (message):
Traceback (most recent call last):
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\urllib3\connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\urllib3\connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\urllib3\connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\urllib3\connection.py", line 414, in connect
self.sock = ssl_wrap_socket(
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\urllib3\util\ssl_.py", line 449, in ssl_wrap_socket
ssl_sock = _ssl_wrap_socket_impl(
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\urllib3\util\ssl_.py", line 493, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "ssl.py", line 500, in wrap_socket
File "ssl.py", line 1040, in _create
File "ssl.py", line 1309, in do_handshake
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate
verify failed: unable to get local issuer certificate (_ssl.c:1125)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\requests\adapters.py", line 489, in send
resp = conn.urlopen(
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\urllib3\connectionpool.py", line 815, in urlopen
return self.urlopen(
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\urllib3\connectionpool.py", line 815, in urlopen
return self.urlopen(
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\urllib3\connectionpool.py", line 815, in urlopen
return self.urlopen(
-- Configuring incomplete, errors occurred!
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\urllib3\connectionpool.py", line 787, in urlopenSee also "C:/Espressif/frameworks/esp-idf-v5.0/workspace/blink/build/CMakeFiles/CMakeOutput.log".
retries = retries.increment(
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\urllib3\util\retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError:
HTTPSConnectionPool(host='api.components.espressif.com', port=443): Max
retries exceeded with url: /components/espressif/led_strip/ (Caused by
SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: unable to get local issuer certificate
(_ssl.c:1125)')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\idf_component_tools\api_client.py", line 158, in _base_request
response = self.session.request(
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\requests\sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\requests\sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\requests\adapters.py", line 563, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError:
HTTPSConnectionPool(host='api.components.espressif.com', port=443): Max
retries exceeded with url: /components/espressif/led_strip/ (Caused by
SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: unable to get local issuer certificate
(_ssl.c:1125)')))
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 "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\idf_component_manager\prepare_components\__main__.py", line 3, in <module>
main()
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\idf_component_manager\prepare_components\prepare.py", line 126, in main
args.func(args)
File "C:\Espressif\python_env\idf5.0_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 "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\idf_component_manager\core.py", line 404, in prepare_dep_dirs
downloaded_component_paths = download_project_dependencies(
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\idf_component_manager\dependencies.py", line 99, in download_project_dependencies
solution = solver.solve()
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\idf_component_manager\version_solver\version_solver.py", line 29, in solve
self.solve_manifest(manifest)
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\idf_component_manager\version_solver\version_solver.py", line 48, in solve_manifest
self.solve_component(requirement)
File "C:\Espressif\python_env\idf5.0_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 "C:\Espressif\python_env\idf5.0_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 "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\idf_component_tools\api_client.py", line 196, in versions
body = self._base_request(
File "C:\Espressif\python_env\idf5.0_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):
C:/Espressif/frameworks/esp-idf-v5.0/tools/cmake/project.cmake:440 (idf_build_process)
CMakeLists.txt:8 (project)
cmake --build . -- -v
ninja: error: loading 'build.ninja': The system cannot find the file specified.
Build complete (0 errors, 0 warnings): C:\Espressif\frameworks\esp-idf-v5.0\workspace\blink\build
Total time taken to build the project: 12,018 ms
I would appreciate any help!
Thanks,
Steve
I'm unable to build any example projects after isntalling the ESP-IDE and IDF ver 5 using the windows online tools. I get the following error messages when I try to build.
Python being checked: C:\Espressif\python_env\idf5.0_py3.8_env\Scripts\python.exe
Python requirements are satisfied.
Solving dependencies requirements
CMake Error at C:/Espressif/frameworks/esp-idf-v5.0/tools/cmake/build.cmake:519 (message):
Traceback (most recent call last):
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\urllib3\connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\urllib3\connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\urllib3\connectionpool.py", line 1042, in _validate_conn
conn.connect()
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\urllib3\connection.py", line 414, in connect
self.sock = ssl_wrap_socket(
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\urllib3\util\ssl_.py", line 449, in ssl_wrap_socket
ssl_sock = _ssl_wrap_socket_impl(
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\urllib3\util\ssl_.py", line 493, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "ssl.py", line 500, in wrap_socket
File "ssl.py", line 1040, in _create
File "ssl.py", line 1309, in do_handshake
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate
verify failed: unable to get local issuer certificate (_ssl.c:1125)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\requests\adapters.py", line 489, in send
resp = conn.urlopen(
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\urllib3\connectionpool.py", line 815, in urlopen
return self.urlopen(
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\urllib3\connectionpool.py", line 815, in urlopen
return self.urlopen(
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\urllib3\connectionpool.py", line 815, in urlopen
return self.urlopen(
-- Configuring incomplete, errors occurred!
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\urllib3\connectionpool.py", line 787, in urlopenSee also "C:/Espressif/frameworks/esp-idf-v5.0/workspace/blink/build/CMakeFiles/CMakeOutput.log".
retries = retries.increment(
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\urllib3\util\retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError:
HTTPSConnectionPool(host='api.components.espressif.com', port=443): Max
retries exceeded with url: /components/espressif/led_strip/ (Caused by
SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: unable to get local issuer certificate
(_ssl.c:1125)')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\idf_component_tools\api_client.py", line 158, in _base_request
response = self.session.request(
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\requests\sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\requests\sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\requests\adapters.py", line 563, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError:
HTTPSConnectionPool(host='api.components.espressif.com', port=443): Max
retries exceeded with url: /components/espressif/led_strip/ (Caused by
SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: unable to get local issuer certificate
(_ssl.c:1125)')))
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 "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\idf_component_manager\prepare_components\__main__.py", line 3, in <module>
main()
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\idf_component_manager\prepare_components\prepare.py", line 126, in main
args.func(args)
File "C:\Espressif\python_env\idf5.0_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 "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\idf_component_manager\core.py", line 404, in prepare_dep_dirs
downloaded_component_paths = download_project_dependencies(
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\idf_component_manager\dependencies.py", line 99, in download_project_dependencies
solution = solver.solve()
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\idf_component_manager\version_solver\version_solver.py", line 29, in solve
self.solve_manifest(manifest)
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\idf_component_manager\version_solver\version_solver.py", line 48, in solve_manifest
self.solve_component(requirement)
File "C:\Espressif\python_env\idf5.0_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 "C:\Espressif\python_env\idf5.0_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 "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\idf_component_tools\api_client.py", line 196, in versions
body = self._base_request(
File "C:\Espressif\python_env\idf5.0_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):
C:/Espressif/frameworks/esp-idf-v5.0/tools/cmake/project.cmake:440 (idf_build_process)
CMakeLists.txt:8 (project)
cmake --build . -- -v
ninja: error: loading 'build.ninja': The system cannot find the file specified.
Build complete (0 errors, 0 warnings): C:\Espressif\frameworks\esp-idf-v5.0\workspace\blink\build
Total time taken to build the project: 12,018 ms
I would appreciate any help!
Thanks,
Steve