How to troubleshoot a module import problem in a scapy script

If you try to run a Python script importing some module and you get this following issue:

NameError: name 'IP' is not defined
ImportError: No module named all

check your Python script name. Probably you are using some reserved name from a function.
To fix it, rename your Python script for other name, like (to be sure you are not using a reserved function name).
Don't forget delete any .pyc file that can has any conflict with any function name.

Here's an example about how to fix it:
rm new.pyc

Enjoy it!


Popular posts from this blog

from: can't read /var/mail/ in Python scripts

How to fix Android when developer options are not available for this user

Fix "Set scan parameters failed: Input/output error" on Ubuntu 16.04