raw sockets ? i need a python sniffer

ionel ionel.mc at gmail.com
Sun Jan 9 16:07:53 CET 2005


on windows xp
well i got pylibpcap-0.4 but i can't compile it :(
i got python 2.4, visual studio 2003
when i run "setup.py build" i get this:

C:\Python24\lib\distutils\dist.py:222: UserWarning: 'licence' distribution optio
n is deprecated; use 'license'
 warnings.warn(msg)
running build
running build_py
running build_ext
building 'pcapcmodule' extension
Traceback (most recent call last):
 File "d:\_PRO\__11\lib\pylibpcap-0.4\pylibpcap-0.4\setup.py", line 104, in ?
   cmdclass = {'clean': pcapclean, 'build_ext':pcap_build_ext},
 File "C:\Python24\lib\distutils\core.py", line 149, in setup
   dist.run_commands()
 File "C:\Python24\lib\distutils\dist.py", line 946, in run_commands
   self.run_command(cmd)
 File "C:\Python24\lib\distutils\dist.py", line 966, in run_command
   cmd_obj.run()
 File "C:\Python24\lib\distutils\command\build.py", line 112, in run
   self.run_command(cmd_name)
 File "C:\Python24\lib\distutils\cmd.py", line 333, in run_command
   self.distribution.run_command(command)
 File "C:\Python24\lib\distutils\dist.py", line 966, in run_command
   cmd_obj.run()
 File "C:\Python24\lib\distutils\command\build_ext.py", line 279, in run
   self.build_extensions()
 File "C:\Python24\lib\distutils\command\build_ext.py", line 405, in build_exte
nsions
   self.build_extension(ext)
 File "C:\Python24\lib\distutils\command\build_ext.py", line 442, in build_exte
nsion
   sources = self.swig_sources(sources, ext)
TypeError: swig_sources() takes exactly 2 arguments (3 given)


any help please? :)

-- 
ionel.



More information about the Python-list mailing list