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

pcap.h not found #82

Open
nitz-boy opened this issue Oct 27, 2018 · 8 comments
Open

pcap.h not found #82

nitz-boy opened this issue Oct 27, 2018 · 8 comments

Comments

@nitz-boy
Copy link

tried to download multiple times
and getting same error message

C:\Users\liat>py -m pip install pypcap
Collecting pypcap
Using cached https://files.pythonhosted.org/packages/33/21/d1f24d8a93e4e11bf604d77e04080c05ecb0308a5606936a051bd2b2b5da/pypcap-1.2.2.tar.gz
Complete output from command python setup.py egg_info:
pcap.h not found

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in C:\Users\liat\AppData\Local\Temp\pip-install-qvt8wp01\pypcap\

@SizMk
Copy link

SizMk commented Nov 1, 2018

Same here

Command "python setup.py egg_info" failed with error code 1

@hellais
Copy link
Member

hellais commented Nov 15, 2018

Did you follow the windows specific instructions here: https://github.com/pynetwork/pypcap#installation-from-sources?

(note: you should have in the parent directory a folder called wpdpack)

@MVoz
Copy link

MVoz commented Nov 17, 2018

python2.7 copy only -->> path_python2\ Library <<--
path_python2\Library\include
path_python2\Library\lib

Lib - python2.7 x64 = npcap-sdk-1.01\Lib\ x64 <<--

@oO0oO0oO0o0o00
Copy link

python2.7 copy only -->> path_python2\ Library <<--
path_python2\Library\include
path_python2\Library\lib

Lib - python2.7 x64 = npcap-sdk-1.01\Lib\ x64 <<--

This solves the problem then

error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe' failed with exit status 2

@PaxPrz
Copy link

PaxPrz commented Jul 12, 2019

The command didn't succeed because pcap.h is not found.
Try:
sudo apt-get install libpcap-dev

@drebbe-intrepid
Copy link

Noting this seems to be similar to issue #35

@oO0oO0oO0o0o00
Copy link

Won't the solution from #35 work?

@hellais
Copy link
Member

hellais commented Aug 1, 2019

@drebbe-intrepid thanks for those instructions. Do you think we should update the readme for windows to include that information? I don't have a windows machine available at the moment (and limited windows experience), but I would be very glad to review and merge a PR!

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

No branches or pull requests

7 participants