Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Jun 14, 2015 · 3 comments
Open

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant