pypcap
pypcap copied to clipboard
Does not seem to install properly for python 3
I installed using pip install pypcap
and it downloaded and installed without error. When I try to import pcap
I get the following error:
ImportError: dlopen(/Users/username/anaconda/lib/python3.6/site-packages/pcap.cpython-36m-darwin.so, 2): Symbol not found: _PyInt_Type
Referenced from: /Users/username/anaconda/lib/python3.6/site-packages/pcap.cpython-36m-darwin.so
Expected in: flat namespace in /Users/username/anaconda/lib/python3.6/site-packages/pcap.cpython-36m-darwin.so
Python 3.6.3 |Anaconda, Inc. Cython version 0.27.3 OS MacOS 10.13.2
hey bro, try this:
pip3 install pypcap
It looks like the pcap shared object could live in your python 2 world, which comes installed on that operating system by default.
sorry for the wait