pypcap icon indicating copy to clipboard operation
pypcap copied to clipboard

pcap.h not found

Open nitz-boy opened this issue 6 years ago • 8 comments

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\

nitz-boy avatar Oct 27 '18 11:10 nitz-boy

Same here

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

SizMk avatar Nov 01 '18 00:11 SizMk

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)

hellais avatar Nov 15 '18 14:11 hellais

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 <<--

MVoz avatar Nov 17 '18 17:11 MVoz

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

oO0oO0oO0o0o00 avatar Jul 06 '19 13:07 oO0oO0oO0o0o00

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

PaxPrz avatar Jul 12 '19 04:07 PaxPrz

Noting this seems to be similar to issue #35

drebbe-intrepid avatar Jul 23 '19 20:07 drebbe-intrepid

Won't the solution from #35 work?

oO0oO0oO0o0o00 avatar Jul 24 '19 10:07 oO0oO0oO0o0o00

@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!

hellais avatar Aug 01 '19 14:08 hellais