Nekmo / amazon-dash

Hack your Amazon Dash to run what you want.
MIT License
826 stars 69 forks source link

[Fix] Error when installing Scapy + tcpdump missing #141

Closed Keiishu closed 5 years ago

Keiishu commented 5 years ago

Put an x into all the boxes [ ] relevant to your issue (like this: [x])

What is the purpose of your issue?

Guideline for bug reports

Description

What I did to get it working

Assuming you're on a Debian-based distro or just using the apt package manager + using Python 3.x . Otherwise, you need to adapt these commands to your configuration.

Nekmo commented 5 years ago

I didn't know this problem with Scapy. Apparently it only happens in Raspberry PI. I can try to force a fixed version of Scapy, but it should not be forced on other architectures without this error.

https://github.com/secdev/scapy/issues/1864

I will study the best way to solve this issue. Thanks!

Keiishu commented 5 years ago

I didn't know it was only the RPi either lmao No problem and many thanks for your work!

Nekmo commented 5 years ago

Same error on x86_64:

Collecting scapy
  Using cached https://files.pythonhosted.org/packages/d0/04/b8512e5126a1816581767bf95cbf525e0681a22c055bcd45f47ecff60170/scapy-2.4.2.tar.gz
...
  error: [Errno 2] No such file or directory: 'LICENSE'
  ----------------------------------------
  ERROR: Failed building wheel for scapy
  Running setup.py clean for scapy
Failed to build scapy
Installing collected packages: scapy
  Running setup.py install for scapy ... done
Successfully installed scapy-2.4.2
(tmp-f5b3f44388f340c) [nekmo@homura ~/.virtualenvs/tmp-f5b3f44388f340c]$ pip install scapy
Nekmo commented 5 years ago

Fixed. Thanks!

gpotter2 commented 4 years ago

FTR we ended up removing the tcpdump dependency by using libpcap directly (https://github.com/secdev/scapy/pull/2336).

This is not included in a release as of today (will be in 2.4.4+)