【已解决】求助,Espressif-IDE编译报错

xidian123
Posts: 3
Joined: Sun Aug 20, 2023 9:07 am

【已解决】求助,Espressif-IDE编译报错

Postby xidian123 » Sun Aug 20, 2023 9:22 am

大家好。我头一回使用Espressif-IDE,开始学习。我新建了工程,使用hello_world模版,编译时报错,是关于python的。错误如下:

C:\Espressif\frameworks\esp-idf-v5.0.2\tools\check_python_dependencies.py:12: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources


Diagnostic information:
IDF_PYTHON_ENV_PATH: C:\Espressif\python_env\idf5.0_py3.11_env
Python interpreter used: C:\Espressif\python_env\idf5.0_py3.11_env\Scripts\python.exe
CMake Error at C:/Espressif/frameworks/esp-idf-v5.0.2/tools/cmake/build.cmake:345 (message):
-- Configuring incomplete, errors occurred!
See also "D:/Prj_esp/test/test1/build/CMakeFiles/CMakeOutput.log".
Failed to run Python dependency check. Python: python, Error: -1
Call Stack (most recent call first):
C:/Espressif/frameworks/esp-idf-v5.0.2/tools/cmake/build.cmake:480 (__build_check_python)
C:/Espressif/frameworks/esp-idf-v5.0.2/tools/cmake/project.cmake:447 (idf_build_process)
CMakeLists.txt:6 (project)


附件是完整的log。还请大家帮忙看看,这到底是怎么回事。谢谢了~~
Attachments
hello_world编译报错的完整log.doc
(24 KiB) Downloaded 291 times
嵌入式硬件工程师~~模拟电路,弱信号处理~~

ESP_Penguin_Helper
Posts: 156
Joined: Tue Jul 11, 2023 6:55 am

Re: 求助,Espressif-IDE编译报错

Postby ESP_Penguin_Helper » Mon Aug 21, 2023 2:56 am

看起来是安装工具链的时候没安装好。用终端在 idf 路径下运行 install.bat 应该可以解决。

xidian123
Posts: 3
Joined: Sun Aug 20, 2023 9:07 am

Re: 求助,Espressif-IDE编译报错

Postby xidian123 » Tue Aug 22, 2023 8:56 am

我鼓捣了一整天。大概确定了是VS CODE也装了idf引起的(与Espressif-IDE的idf同路径了)。我把IDE还有VS CODE全卸载了,然后把对应的文件夹删除,包括临时文件夹里的东西全部清空。接着重启电脑,重新安装IDE。因为网上的教程几乎都是基于VS CODE的,所以我得装这个软件。我也重新安装了VS CODE,在安装esp扩展时,我指定了单独的路径,没有跟Espressif-IDE的路径重合。

然后Espressif-IDE就可以正常编译工程了。但是这时候VS CODE中好像编译时不正常。不过Espressif-IDE能用就行了。。

谢谢楼上的朋友回复~~
嵌入式硬件工程师~~模拟电路,弱信号处理~~

Who is online

Users browsing this forum: No registered users and 176 guests