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:
parent
df612b9e10
commit
4c70918888
@ -26,18 +26,18 @@ import re
|
|||||||
import subprocess
|
import subprocess
|
||||||
from typing import Union
|
from typing import Union
|
||||||
|
|
||||||
from pycstruct import pycstruct
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import cxxfilt
|
import cxxfilt
|
||||||
import parse
|
import parse
|
||||||
from elftools.elf.elffile import ELFFile
|
from elftools.elf.elffile import ELFFile
|
||||||
from elftools.elf.sections import SymbolTableSection
|
from elftools.elf.sections import SymbolTableSection
|
||||||
|
from pycstruct import pycstruct
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
|
|
||||||
except ModuleNotFoundError:
|
except ModuleNotFoundError:
|
||||||
print("Please execute the following command to install dependencies:")
|
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):
|
class SymbolTables(object):
|
||||||
|
Loading…
Reference in New Issue
Block a user