mirror of
https://github.com/espressif/openthread.git
synced 2026-07-24 13:04:07 +00:00
on OSX I had an issue running the sniffer after following the readme (#831)
* on OSX I had an issue running the sniffer after following the readme due to dnet not being installed. This may be listed elsewhere in the repo, but it's nice to have all installation dependencies for a tool listed in the readme for the tool
This commit is contained in:
committed by
Jonathan Hui
parent
85aec8add0
commit
76be95668a
@@ -94,3 +94,17 @@ This will connect to stock openthread ncp firmware over the given UART,
|
||||
make the node into a promiscuous mode sniffer on the given channel,
|
||||
open up wireshark, and start streaming packets into wireshark.
|
||||
|
||||
## Troubleshooting
|
||||
Q: sniffer.py throws ```ImportError: No module named dnet``` on OSX
|
||||
|
||||
A: install the libdnet package for OSX -
|
||||
```
|
||||
brew install --with-python libdnet
|
||||
mkdir -p /Users/YourUsernameHere/Library/Python/2.7/lib/python/site-packages
|
||||
touch /Users/YourUsernameHere/Library/Python/2.7/lib/python/site-packages/homebrew.pth
|
||||
echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/YourUsernameHere/Library/Python/2.7/lib/python/site-packages/homebrew.pth
|
||||
```
|
||||
you may need to reinstall the scapy pip dependency listed above
|
||||
|
||||
you can read more about this issue here: http://stackoverflow.com/questions/26229057/scapy-installation-fails-on-osx-with-dnet-import-error
|
||||
|
||||
|
||||
Reference in New Issue
Block a user