helpsystems / pcapy

Pcapy is a Python extension module that interfaces with the libpcap packet capture library.
Other
383 stars 105 forks source link

Error when building #66

Open incarnadined opened 4 years ago

incarnadined commented 4 years ago

After cloning the repo and running python setup.py install, I get this error

dist.py:474: UserWarning: Normalizing '0.11.5-dev' to '0.11.5.dev0'
  normalized_version,
running install
running bdist_egg
running egg_info
creating pcapy.egg-info
writing pcapy.egg-info\PKG-INFO
writing dependency_links to pcapy.egg-info\dependency_links.txt
writing top-level names to pcapy.egg-info\top_level.txt
writing manifest file 'pcapy.egg-info\SOURCES.txt'
reading manifest file 'pcapy.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pcapy.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_ext
building 'pcapy' extension
creating build
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\win32
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -DWIN32=1 -Ic:\wpdpack\Include -IC:\Users\user\AppData\Local\Programs\Python\Python36\include -IC:\Users\user\AppData\Local\Programs\Python\Python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tppcapdumper.cc /Fobuild\temp.win-amd64-3.6\Release\pcapdumper.obj
pcapdumper.cc
pcapdumper.cc(11): fatal error C1083: Cannot open include file: 'pcap.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

Telling me that it cannot find pcap.h. The same error occurs when using pip.

gvanem commented 4 years ago

Edit setup.py or set the WPDPACK_BASE env-var to point to libpcap and WinPcap.

It's a complete sloppy mess.

si452772 commented 3 years ago

и как решили проблему? у меня такая же, что делать?