tools/parsetrace.py:fix parsetrace script error.

Traceback (most recent call last):
  File nuttx/tools/parsetrace.py, line 29, in <module>
    from pycstruct import pycstruct
ModuleNotFoundError: No module named 'pycstruct'

Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
This commit is contained in:
cuiziwei 2023-12-06 16:44:29 +08:00 committed by Xiang Xiao
parent df612b9e10
commit 4c70918888

View File

@ -26,18 +26,18 @@ import re
import subprocess
from typing import Union
from pycstruct import pycstruct
try:
import cxxfilt
import parse
from elftools.elf.elffile import ELFFile
from elftools.elf.sections import SymbolTableSection
from pycstruct import pycstruct
from pydantic import BaseModel
except ModuleNotFoundError:
print("Please execute the following command to install dependencies:")
print("pip install pyelftools cxxfilt pydantic parse")
print("pip install pyelftools cxxfilt pydantic parse pycstruct")
exit(1)
class SymbolTables(object):