pypcap icon indicating copy to clipboard operation
pypcap copied to clipboard

Does not seem to install properly for python 3

Open alexmarder opened this issue 7 years ago • 2 comments

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

alexmarder avatar Dec 13 '17 22:12 alexmarder

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.

MarcusSorealheis avatar Jun 15 '18 02:06 MarcusSorealheis

sorry for the wait

MarcusSorealheis avatar Jun 15 '18 02:06 MarcusSorealheis