eBPF python script fails with a traceback 'ImportError: cannot import name 'BPF''
Issue
- Execution of eBPF python script fails with a traceback 'ImportError: cannot import name 'BPF''
# ./ebpf-hello.py
Traceback (most recent call last):
File "./ebpf-hello.py", line 2, in <module>
from bcc import BPF
ImportError: cannot import name 'BPF'
Environment
- Red Hat Enterprise Linux 8
- bcc-tools
- python3-bcc
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.