- This topic has 3 replies, 2 voices, and was last updated 3 years, 10 months ago by Diego Pérez.
- AuthorPosts
- January 18, 2021 at 12:34 pm #51199GusciParticipant
hello i keep getting an error when i try to run the network scanner with python3.on the video “testing the network scanner with python3 it shows how to download scapy to work with python 3 but is not working wiht me , thank you
PIP package scapy-python3 used to provide scapy3k, which was a fork from scapy implementing python3 compatibility since 2016. This package was included in some of the Linux distros under name of python3-scapy. Starting from scapy version 2.4 (released in March, 2018) mainstream scapy supports python3. To reduce any confusion scapy3k was renamed to kamene.
You should use either pip package kamene for scapy3k (see http://github.com/phaethon/kamene for differences in use) or mainstream scapy (pip package scapy, http://github.com/secdev/scapy).Traceback (most recent call last):
File “Network_Scanner.py”, line 4, in <module>
import scapy.all as scapy
File “/usr/local/lib/python3.7/dist-packages/scapy/all.py”, line 5, in <module>
raise Exception(msg)
Exception:
PIP package scapy-python3 used to provide scapy3k, which was a fork from scapy implementing python3 compatibility since 2016. This package was included in some of the Linux distros under name of python3-scapy. Starting from scapy version 2.4 (released in March, 2018) mainstream scapy supports python3. To reduce any confusion scapy3k was renamed to kamene.
You should use either pip package kamene for scapy3k (see http://github.com/phaethon/kamene for differences in use) or mainstream scapy (pip package scapy, http://github.com/secdev/scapy).
i did try to download kamene but still no better, any ideas?, thank you .January 18, 2021 at 6:41 pm #51206Diego PérezModeratorHi!
That scapy version doesn’t work as expected anymore as the offical scapy library now supports python3, So run:pip3 unistall scapy
pip3 unistall scapy-pyhton3
pip unistall scapy
pip unistall scapy-pyhton3pip install scapy
pip3 install scapyIf any of the unistall commands throw an error saying it couldn’t unistall because there’s no such package just ignore it.
Let me know how it goes!
DiegoJanuary 18, 2021 at 9:15 pm #51208GusciParticipantDiego thank you it worked just like you said .
January 19, 2021 at 7:02 pm #51228Diego PérezModeratorHi!
Cool you got it!
Diego - AuthorPosts
- You must be logged in to reply to this topic.