Skip to content

Commit 4c70918

Browse files
cuiziweizwxiaoxiang781216
authored andcommitted
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 <[email protected]>
1 parent df612b9 commit 4c70918

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/parsetrace.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@
2626
import subprocess
2727
from typing import Union
2828

29-
from pycstruct import pycstruct
30-
3129
try:
3230
import cxxfilt
3331
import parse
3432
from elftools.elf.elffile import ELFFile
3533
from elftools.elf.sections import SymbolTableSection
34+
from pycstruct import pycstruct
3635
from pydantic import BaseModel
3736

3837
except ModuleNotFoundError:
3938
print("Please execute the following command to install dependencies:")
40-
print("pip install pyelftools cxxfilt pydantic parse")
39+
print("pip install pyelftools cxxfilt pydantic parse pycstruct")
40+
exit(1)
4141

4242

4343
class SymbolTables(object):

0 commit comments

Comments
 (0)