Skip to content

Commit 814e3ef

Browse files
committed
Add handling of missing babeltrace
1 parent bea3d47 commit 814e3ef

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pipelineviewer/main.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
from attrdict import AttrDict
77
import colorama
88
import argparse
9-
from babeltrace import TraceCollection
9+
10+
try:
11+
from babeltrace import TraceCollection
12+
except ImportError:
13+
print("babeltrace needed and needs to be installed manually (e.g., python3-babeltrace in Debian/Ubuntu)")
14+
exit(1)
1015

1116
from riscvmodel.code import decode
1217
from riscvmodel.model import Model

0 commit comments

Comments
 (0)