help! about pypcap.dispatch
Chris Angelico
rosuav at gmail.com
Tue Aug 26 10:45:15 EDT 2014
On Tue, Aug 26, 2014 at 8:44 PM, <doit4um at gmail.com> wrote:
> Hi,
>
> I'm using Python 2.7.6 in Centos 6.5.
>
> I have defined
> "p = pcap.pcap(timeout_ms=1000)
> def function(timestamp,pkt,*args):
> "
> and try to run "p.dispatch(-1,function)"
>
> and I got this:
> p.dispatch(-1,function)
> File "pcap.pyx", line 296, in pcap.pcap.dispatch (pcap.c:3182)
> TypeError: raise: exception class must be a subclass of BaseException
>
> why this happened? Anybody know how to solve it?
Where did pcap.pyx come from? What version is it? Is it something that
was written for an ancient version of Python? It might be raising a
string exception.
ChrisA
More information about the Python-list
mailing list