#8 build fails at swig_sources

open
nobody
None
5
2005-07-18
2005-07-18
No

trying "python setup.py build" returns:

/usr/local/lib/python2.4/distutils/dist.py:222:
UserWarning: 'licence' distribut
ion option is deprecated; use 'license'
warnings.warn(msg)
running build
running build_ext
building '_pcapmodule' extension
Traceback (most recent call last):
File "setup.py", line 187, in ?
cmdclass = {'clean': pcapclean,
File "/usr/local/lib/python2.4/distutils/core.py",
line 149, in setup
dist.run_commands()
File "/usr/local/lib/python2.4/distutils/dist.py",
line 946, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python2.4/distutils/dist.py",
line 966, in run_command
cmd_obj.run()
File
"/usr/local/lib/python2.4/distutils/command/build.py",
line 112, in run
self.run_command(cmd_name)
File "/usr/local/lib/python2.4/distutils/cmd.py",
line 333, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python2.4/distutils/dist.py",
line 966, in run_command
cmd_obj.run()
File
"/usr/local/lib/python2.4/distutils/command/build_ext.py",
line 279, in r
un
self.build_extensions()
File
"/usr/local/lib/python2.4/distutils/command/build_ext.py",
line 405, in b
uild_extensions
self.build_extension(ext)
File
"/usr/local/lib/python2.4/distutils/command/build_ext.py",
line 442, in b
uild_extension
sources = self.swig_sources(sources, ext)
TypeError: swig_sources() takes exactly 2 arguments (3
given)

Not sure if this is something stupid or not, I'm a
complete noob at pcap. Looks like I have pcap
0.8.3-3. Do I need to install a swig library?

Discussion

  • Chris Curvey

    Chris Curvey - 2005-07-18

    Logged In: YES
    user_id=129725

    Now that I've had a chance to actually *read* the stack
    trace (and do a bit of Googling), it appears that this is a
    known bug in the distutils package. There seems to be some
    mention that documentation will improve in the next release
    of Python (whatever it is), but I'd love to hear how folks
    are compiling this now.

     
  • dterry

    dterry - 2005-07-21

    Logged In: YES
    user_id=1316531

    I get the same error when building on FreeBSD5.4. The work
    around is to add a parameter 'ext=None' to swig_sources().
    Build still fails however with missing include file 'doc.i'.

     
  • Nobody/Anonymous

    Logged In: NO

    I changed

    def swig_sources (self, sources):
    to:
    def swig_sources(self, sources, extension=None):

    -C

     
  • Paul Wise

    Paul Wise - 2005-10-02

    Logged In: YES
    user_id=35028

    I had to download build-tools/docify.py,
    build-tools/docify-shadow.py and doc.i from CVS in order to
    build pylibpcap. These should really be distributed in the
    tarball so the package is buildable.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks