[Solved] Install scapy on Ubuntu 22.04

 If you try to install scapy from apt, you will see the following issues:


sudo apt install python3-scapy
sudo scapy
<frozen importlib._bootstrap>:914: ImportWarning: _SixMetaPathImporter.find_spec() not found; falling back to find_module()
<frozen importlib._bootstrap>:671: ImportWarning: _SixMetaPathImporter.exec_module() not found; falling back to load_module()
INFO: Can't import PyX. Won't be able to use psdump() or pdfdump().

To solve them, you need pyx module

sudo apt install python3-pyx

I could not find info about _SixMetaPathImporter.exec_module() 

To avoid this warning, just install the git version:

git clone https://github.com/secdev/scapy.git
cd scapy
sudo python3 setup.py install

Enjoy it!


Comments

Popular posts from this blog

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

Exception: Could not find a default OpenFlow controller in Mininet

v4l2: open /dev/video0: Permission denied