ImportError: No module named bcc
Hi, I'm currently trying to install bcc and failing miserably.
I'm using Ubuntu 20.04.06 abd my llvm version is 10.0.0(Eventhough when use cmake ../cmake -DPYTHON_CMD=python3 in bcc/build it tells me tthat my LLVM is 6(Found LLVM: usr/lib/llvm-6.0/include 6.0.1
I've tried to install release 0.24.0 to build bcc, it actually built, but when I'm trying to run ./execsnoop.py it returns the error:
$ ./execsnoop.py
Traceback (mosr recent call last):
File "./execsnoop.py", line 23, in <module>
from bcc import BPF
ImportError: No module named bcc
Anyone knows what is going on?
Same issue encountered
It seems the problem was the python version. I changed to python 3 and it worked.
Had the same error, execution using python3 helped me[in case it needs privileged access, use sudo]
sry, but what do you mean by changing to python3, need to use 'sudo python3 ./execsnoop.py'?
sry, but what do you mean by changing to python3, need to use 'sudo python3 ./execsnoop.py'?
Sure. But for some specific situations, it will not work without any reason.