pynetwork / pypcap

pypcap - python libpcap module, forked from code.google.com/p/pypcap
Other
299 stars 74 forks source link

Does not seem to install properly for python 3 #63

Open alexmarder opened 6 years ago

alexmarder commented 6 years ago

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

MarcusSorealheis commented 6 years ago

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 commented 6 years ago

sorry for the wait