pyparsing 导致 v6.0.1 编译代码失败

h2301g
Posts: 1
Joined: Fri May 29, 2026 8:20 am

pyparsing 导致 v6.0.1 编译代码失败

Postby h2301g » Fri May 29, 2026 8:40 am

windows下安装离线版ESP-IDF v6.0.1,准备调试esp32p4开发板,无论是通过vscode 或者命令行的形式构建最简单的hello_world, 都碰到同样的编译错误:


File "C:\Espressif\tools\python\v6.0.1\venv\Lib\site-packages\pyparsing\core.py", line 933, in _parseNoCache
loc, tokens = self.parseImpl(instring, pre_loc, do_actions)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Espressif\tools\python\v6.0.1\venv\Lib\site-packages\pyparsing\core.py", line 2708, in parseImpl
if instring[loc] == self.firstMatchChar and instring.startswith(
~~~~~~~~^^^^^
IndexError: string index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\esp\v6.0.1\esp-idf\tools\ldgen\ldgen\entity.py", line 134, in add_sections_info
results = parser.parseString(first_line, parseAll=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Espressif\tools\python\v6.0.1\venv\Lib\site-packages\pyparsing\util.py", line 436, in _inner
return fn(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Espressif\tools\python\v6.0.1\venv\Lib\site-packages\pyparsing\core.py", line 1318, in parse_string
raise exc.with_traceback(None)
pyparsing.exceptions.ParseException: Expected 'In archive' (at char 0), (line:1, col:1)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\esp\v6.0.1\esp-idf\tools\ldgen\ldgen.py", line 176, in <module>
main()
File "D:\esp\v6.0.1\esp-idf\tools\ldgen\ldgen.py", line 133, in main
sections_infos.add_sections_info(dump)
File "D:\esp\v6.0.1\esp-idf\tools\ldgen\ldgen\entity.py", line 136, in add_sections_info
raise ParseException('Parsing sections info for library ' + sections_info_dump.name + ' failed. ' + p.msg)

Who is online

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