USArmyResearchLab / Dshell

Dshell is a network forensic analysis framework.
Other
5.45k stars 1.14k forks source link

Fedora 21 runtime error #53

Closed JeffSoh closed 9 years ago

JeffSoh commented 9 years ago

I'm getting this error running Dshell on a new install on Fedora 21, kernel 3.19.17-200:

Traceback (most recent call last):
File "/root/Dshell/trunk/bin/decode", line 891, in main
decoder.capture = pcap.pcap(pcapfile)
AttributeError: 'module' object has no attribute 'pcap'

I have all the Fedora equivalents of the prereqs, as far as i know, and have this running on another Fedora 21 box without error. Anyone seen this?

Code is:

try: if not pcap: raise NotImplementedError( "pcap support not implemented") decoder.capture = pcap.pcap(pcapfile)

Running Python 2.7.8, have libpcap, libpcap-devel and pylibpcap installed.

dev195 commented 9 years ago

The problem might be pylibpcap. Dshell uses pypcap instead of pylibpcap, both of which are unhelpfully imported with "import pcap". Try using pypcap instead.

JeffSoh commented 9 years ago

Thank you, that fixed it.