Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #51199
    Gusci
    Participant

    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 .

    #51206
    Diego PérezDiego Pérez
    Moderator

    Hi!
    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-pyhton3

    pip install scapy
    pip3 install scapy

    If 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!
    Diego

    #51208
    Gusci
    Participant

    Diego thank you it worked just like you said .

    #51228
    Diego PérezDiego Pérez
    Moderator

    Hi!
    Cool you got it!
    Diego

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.