I am trying to use scapy in python 3.6 to parse pcap files, and of the features I am trying to use is pdfdump. from scapy.all import * packets = rdpcap('***path***/nitroba.pcap') for packet in packets[0:1]: packet.psdump("isakmp_pkt.eps",layer_shift=1) And I am getting the following error: "ImportError: PyX and its depedencies must be installed" Obviously I installed it, and a simple "import pyx" works, but the error persists. I did some digging and found that the problem originates in this code: def _test_pyx(): """Returns if PyX is correctly installed or not""" try: with open(os.devnull, 'wb') as devnull: r = subprocess.check_call(["pdflatex", "--version"], stdout=devnull, stderr=subprocess.STDOUT) except: return False else: return r == 0 when executed, it determines if pyx is installed correctly, but it says "FileNotFoundError: [WinError 2] The system cannot find the file specified". Ideas? Continue reading...