I tried installing pcapy 0.10.4 and i get an error.

C:>setup.py install
running install
running build
running build_ext
building 'pcapy' extension
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nolog /0x /MD /W3 /GS- /DNDEBUG -DWIN32=1 -Ic:\devel\oss\wpdpack\Include - IC:\Python26\include -IC:\Python26\PC /Tppcapdumper.cc /Fobuild\temp.win32-2.6\Release\pcapdumper.obj
pcapdumper.cc
pcapdumper.cc(12) : fatal error C1083: Cannot open include file: 'pcap.h' : No such file or directory
error: command '"C:\Program files (x86)\microsoft Visual Studio 9.0\VC\BIN\cl.exe" failed with exit status 2


system specs.:
windows Vista home
64bit
python 2.6


I've tried everything I could think of to get it installed. But It keeps giving me the same error.

I suggest you to install python 2.5 (i think you can have both 2.5 and 2.6).
Then you can simple download and install the binary package o pcapy from here.

Ofcourse you must have winpcap already downloaded.. here is the link

I'd rather have 2.5 as a last resort. I'd like to compile it myself.
I have winPcap.
It works great with wireshark and microsoft's network monitor.

Be aware that Python25 and Python26 use different MS C compilers and so do the modules they use. The C code syntax has to match these compilers, as they are not compatible.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.