limifly / pypcap

Exported from
http://code.google.com/p/pypcap
Other
0 stars 0 forks source link

AttributeError: 'pcap.pcap' object has no attribute 'inject' #42

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
running oftests on linux with python2.7 is giving this error :

Traceback (most recent call last):
  File "/usr/local/bin/oftest/tests/basic.py", line 94, in runTest
    self.dataplane.send(of_port, str(pkt))
  File "/usr/local/bin/oftest/src/python/oftest/dataplane.py", line 250, in send
    bytes = self.ports[port_number].send(packet)
  File "/usr/local/bin/oftest/src/python/oftest/dataplane.py", line 132, in send
    return self.pcap.inject(packet, len(packet))
AttributeError: 'pcap.pcap' object has no attribute 'inject'

i am using python2.7 with pycap1.1
how can i fix this ?? can someone help here .

thanks 

Original issue reported on code.google.com by feras....@gmail.com on 7 Oct 2013 at 2:34

GoogleCodeExporter commented 9 years ago
I have the same problem. I cannot use oftest tool because of this.

Original comment by damian.p...@gmail.com on 3 Jan 2014 at 2:03

GoogleCodeExporter commented 9 years ago
I had the same problem, and I resolved by uninstalling the the pcap libraries  
from pip as well as from apt. Then I installed new python-pcap. 

$sudo apt-get install python-pypcap

It worked for me.

Original comment by subh.sin...@gmail.com on 24 Mar 2014 at 4:53

GoogleCodeExporter commented 9 years ago
I am facing a similar issue with centos7 and python 2.7. Any help?

Original comment by harshme...@gmail.com on 22 Aug 2014 at 4:28