Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running hello_world.py #4

Open
freemanpolys opened this issue Mar 3, 2022 · 2 comments
Open

Error running hello_world.py #4

freemanpolys opened this issue Mar 3, 2022 · 2 comments

Comments

@freemanpolys
Copy link

I run the python program in the image but it is failing. Kernel header is not found :

root@46a12dcd4efd:~# python3 hello_world.py
modprobe: FATAL: Module kheaders not found in directory /lib/modules/5.10.76-linuxkit
Unable to find kernel headers. Try rebuilding kernel with CONFIG_IKHEADERS=m (module)
chdir(/lib/modules/5.10.76-linuxkit/build): No such file or directory
Traceback (most recent call last):
  File "hello_world.py", line 14, in <module>
    b = BPF(text=prog)
  File "/usr/lib/python3/dist-packages/bcc/__init__.py", line 347, in __init__
    raise Exception("Failed to compile BPF module %s" % (src_file or "<text>"))
Exception: Failed to compile BPF module <text>
@evanrolfe
Copy link

@freemanpolys did you ever find a solution to this?

@iamshreeram
Copy link

@singe , @freemanpolys , @evanrolfe - Any luck on solving the above issue?

This code base isn't working on macOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants