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

TypeError: argument of type 'NoneType' is not iterable #24

Open
dogancelik opened this issue Dec 24, 2017 · 1 comment
Open

TypeError: argument of type 'NoneType' is not iterable #24

dogancelik opened this issue Dec 24, 2017 · 1 comment

Comments

@dogancelik
Copy link

dogancelik commented Dec 24, 2017

Versions: Windows 10, Python 2.7.13

Instructions

pip install git+https://github.com/secdev/scapy
pip install argparse

git clone https://github.com/andreafabrizi/rtmpSnoop.git
cd rtmpSnoop

python rtmpSnoop.py -f dump.pcap

Error

rtmpSnoop v0.2.1 - The RTMP Sniffer!
Andrea Fabrizi - [email protected]

Reading packets from dump file 'dump.pcap'...
Traceback (most recent call last):
  File "rtmpSnoop.py", line 147, in <module>
    sniff(offline=args.pcapfile, filter="tcp", prn = PacketHandler)
  File "D:\Tools\winpython2\python-2.7.13.amd64\lib\site-packages\scapy\sendrecv.py", line 692, in sniff
    )] = offline
  File "D:\Tools\winpython2\python-2.7.13.amd64\lib\site-packages\scapy\utils.py", line 1283, in tcpdump
    stderr=open(os.devnull) if quiet else None,
  File "D:\Tools\winpython2\python-2.7.13.amd64\lib\subprocess.py", line 390, in __init__
    errread, errwrite)
  File "D:\Tools\winpython2\python-2.7.13.amd64\lib\subprocess.py", line 595, in _execute_child
    args = list2cmdline(args)
  File "D:\Tools\winpython2\python-2.7.13.amd64\lib\subprocess.py", line 262, in list2cmdline
    needquote = (" " in arg) or ("\t" in arg) or not arg
TypeError: argument of type 'NoneType' is not iterable

Related

Also please change the Windows instructions URL to this one because it doesn't direct to the correct page:

https://scapy.readthedocs.io/en/latest/installation.html#windows
@Alokadev
Copy link

even I had this issue. by install following software all of them get solved.

  1. python 2.7.2 from python.org
  2. Microsoft Visual C++ Compiler for Python 2.7 from https://www.microsoft.com/en-us/download/confirmation.aspx?id=44266.
  3. pip install scapy==2.4.3rc1

Install python 2.7.2 and then install Microsoft Visual C++ Compiler for Python 2.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants