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

FAQ: fix error message #2523

Merged
merged 1 commit into from
Sep 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
FAQ: fix error message
The package is called bcc, and not bpf:

    from bcc import BPF

If that is not available the error message reads

    ModuleNotFoundError: No module named 'bcc'

and not `No module named 'bpf'`
  • Loading branch information
jgehrcke authored Sep 23, 2019
commit 84d9798aec01bc8486f3fc88afcbe37988e3ee58
2 changes: 1 addition & 1 deletion FAQ.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ A: make sure to 'make install' and add the directory
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

Q: hello_world.py fails with:
ImportError: No module named bpf
ImportError: No module named bcc
A: checkout "sudo make install" output to find out bpf package installation site,
add it to the PYTHONPATH env variable before running the program.
sudo bash -c 'PYTHONPATH=/usr/lib/python2.7/site-packages python examples/hello_world.py'
Expand Down