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

Can't install scapy on MacOS #42

Closed
tymscar opened this issue Jan 25, 2017 · 7 comments
Closed

Can't install scapy on MacOS #42

tymscar opened this issue Jan 25, 2017 · 7 comments
Assignees

Comments

@tymscar
Copy link

tymscar commented Jan 25, 2017

The MacOS guide states that I need to install scapy using brew but I cant find the package.

Error: No available formula with the name "scapy"
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.

I installed scapy from scapy.net and the kickthemout.py script still doesent work:

Traceback (most recent call last):
File "kickthemout.py", line 338, in
scanNetwork()
File "kickthemout.py", line 72, in scanNetwork
hostsList = scan.scanNetwork()
File "/Users/oscarmolnar/kickthemout/scan.py", line 69, in scanNetwork
return scan_and_print_neighbors(net, interface)
File "/Users/oscarmolnar/kickthemout/scan.py", line 30, in scan_and_print_neighbors
ans, unans = scapy.layers.l2.arping(net, iface=interface, timeout=timeout, verbose=False)
File "/usr/local/lib/python2.7/site-packages/scapy/layers/l2.py", line 700, in arping
filter="arp and arp[7] = 2", timeout=timeout, iface_hint=net, **kargs)
File "/usr/local/lib/python2.7/site-packages/scapy/sendrecv.py", line 378, in srp
a,b=sndrcv(s ,x,*args,**kargs)
File "/usr/local/lib/python2.7/site-packages/scapy/sendrecv.py", line 133, in sndrcv
r = pks.nonblock_recv()
File "/usr/local/lib/python2.7/site-packages/scapy/arch/pcapdnet.py", line 672, in nonblock_recv
p = self.recv(MTU)
File "/usr/local/lib/python2.7/site-packages/scapy/arch/pcapdnet.py", line 653, in recv
pkt = self.ins.next()
File "/usr/local/lib/python2.7/site-packages/scapy/arch/pcapdnet.py", line 390, in next
s,us = h.getts()
AttributeError: 'NoneType' object has no attribute 'getts'

What should I try next?

@k4m4 k4m4 self-assigned this Jan 25, 2017
@k4m4 k4m4 added the duplicate label Jan 25, 2017
@k4m4
Copy link
Owner

k4m4 commented Jan 25, 2017

The same issue has appeared in: Issue #13. You probably haven't set up scapy correctly. First, you must run sudo pip install pcapy, then brew install libdnet, and finally brew install scapy. It is very possible that scapy will ask you to run some commands to successfully set it up. Let me know if this resolved your issue. Thanks.

@k4m4
Copy link
Owner

k4m4 commented Jan 25, 2017

If you still have any issues, please let me know.

@k4m4 k4m4 closed this as completed Jan 25, 2017
@tymscar
Copy link
Author

tymscar commented Jan 25, 2017

I did just that. Installed pcapy with sudo pip install pcapy. Then i installed libdnet with brew and when I try to install scapy with bre the error I posed above appears.

@tjcommers
Copy link

I have the same error

@k4m4
Copy link
Owner

k4m4 commented Feb 4, 2017

Hi there. When installing scapy with brew, did you run the commands that brew instructs you to execute? @tymscar @tjcommers

@tymscar
Copy link
Author

tymscar commented Feb 6, 2017

I didn't get such messages from brew. What did I miss?

@k4m4
Copy link
Owner

k4m4 commented Feb 6, 2017

Head over to Issue #54 for the solution to this issue. Thanks. @tymscar

@k4m4 k4m4 reopened this Feb 6, 2017
@k4m4 k4m4 closed this as completed Feb 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants