AirVantage / sbulb

UDP load balancer prototype using bcc (XDP/Bpf)
36 stars 9 forks source link

problem of bcc #36

Open allaismail opened 1 year ago

allaismail commented 1 year ago

i have this issue even though i have installed bcc in ubuntu Traceback (most recent call last): File "/usr/lib/python3.6/runpy.py", line 183, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/usr/lib/python3.6/runpy.py", line 142, in _get_module_details return _get_module_details(pkg_main_name, error) File "/usr/lib/python3.6/runpy.py", line 109, in _get_module_details import(pkg_name) File "/home/alla/Bureau/loadbalancer/sbulb/sbulb/init.py", line 2, in from bcc import BPF ImportError: cannot import name 'BPF'

sbernard31 commented 1 year ago

Maybe you didn't install : bcc package and linux kernel headers ? => https://github.com/AirVantage/sbulb#requirements--dependencies => https://stackoverflow.com/questions/64046700/bcc-importerror-cannot-import-name-bpf