-
Notifications
You must be signed in to change notification settings - Fork 191
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: a bytes-like object is required, not 'NoneType' #206
Comments
May be experiencing same issue.
Exception:
|
Actually, just noticed like mentioned in #22 that my outcome is different when the
|
…es scapy3k encounters exceptions. File "/Users/DarrenSpruell/devel/external/ampt-generator/ampt_generator/__init__.py", line 15, in <module> from . import api File "/Users/DarrenSpruell/devel/external/ampt-generator/ampt_generator/api.py", line 11, in <module> from . import app, packetgen File "/Users/DarrenSpruell/devel/external/ampt-generator/ampt_generator/packetgen.py", line 7, in <module> from scapy.all import IP, TCP, UDP, send, conf File "/Users/DarrenSpruell/venv.d/ampt-generator/lib/python3.6/site-packages/scapy/all.py", line 25, in <module> from .route import * File "/Users/DarrenSpruell/venv.d/ampt-generator/lib/python3.6/site-packages/scapy/route.py", line 163, in <module> conf.route=Route() File "/Users/DarrenSpruell/venv.d/ampt-generator/lib/python3.6/site-packages/scapy/route.py", line 22, in __init__ self.resync() File "/Users/DarrenSpruell/venv.d/ampt-generator/lib/python3.6/site-packages/scapy/route.py", line 31, in resync self.routes = read_routes() File "/Users/DarrenSpruell/venv.d/ampt-generator/lib/python3.6/site-packages/scapy/arch/unix.py", line 82, in read_ro utes ifaddr = scapy.arch.get_if_addr(netif) File "/Users/DarrenSpruell/venv.d/ampt-generator/lib/python3.6/site-packages/scapy/arch/__init__.py", line 52, in get _if_addr return socket.inet_ntoa(get_if_raw_addr(iff)) TypeError: a bytes-like object is required, not 'NoneType' Reference phaethon/kamene#206 for information on documented failure case.
I am experiencing this issue also. There is a WARNING when
|
I'm experiencing the same issue on Mac OS X 17.7.0 with netifaces available in the virtualenv. The loop through interfaces in arch/unix.py works, but the vboxnet interface triggers the error. In my netstat -rn output the interface is called vboxnet, in netifaces.interfaces(), they are called vboxnetX (with a number), so there's a slight mismatch. Setting conf.use_netifaces = False does not seem to fix that. |
trying to run example
The text was updated successfully, but these errors were encountered: