omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    from scapy.all import * error

    Pythonista
    2
    2
    3016
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • SmartGoat
      SmartGoat last edited by SmartGoat

      Hey everyone, I installed scapy with Stash/pip but cannot import it in my projects because of this bug, which is already resolved (seen in a github discussion), so I don’t know how to solve it if it would already be solved at this version of scapy (2.4.0):

      >>> from scapy.all import *
      Traceback (most recent call last):
        File "<string>", line 1, in <module>
        File "/private/var/mobile/Containers/Shared/AppGroup/D48F6FDD-3F34-40EB-9497-17B2560BB120/Pythonista3/Documents/site-packages-3/scapy/all.py", line 25, in <module>
          from scapy.route import *
        File "/private/var/mobile/Containers/Shared/AppGroup/D48F6FDD-3F34-40EB-9497-17B2560BB120/Pythonista3/Documents/site-packages-3/scapy/route.py", line 191, in <module>
          conf.route=Route()
        File "/private/var/mobile/Containers/Shared/AppGroup/D48F6FDD-3F34-40EB-9497-17B2560BB120/Pythonista3/Documents/site-packages-3/scapy/route.py", line 27, in __init__
          self.resync()
        File 
      "/private/var/mobile/Containers/Shared/AppGroup/D48F6FDD-3F34-40EB-9497-17B2560BB120/Pythonista3/Documents/site-packages-3/scapy/route.py", line 34, in resync
          from scapy.arch import read_routes
      ImportError: cannot import name 'read_routes'
      

      Thanks in advance for help

      1 Reply Last reply Reply Quote 0
      • danxx26
        danxx26 last edited by

        Scapy requires npcap which I believe does not run on iOS due to Apple restrictions. If you want do packet analysis the only way that I know is covered here in this article:
        link text

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB Forums | Contributors