2 Jan 2009 14:48
swig, gloox and python
Karim Bernardet <karim.bernardet <at> gmail.com>
2009-01-02 13:48:13 GMT
2009-01-02 13:48:13 GMT
Hi
I am trying to use a python version of gloox (XMPP client library
written in C++). The python binding is done using SWIG (provided by the
author of gloox and I made minor fixes). I am trying to adapt first a
c++ example to python.
The code below fails with
Traceback (most recent call last):
File "tutu.py", line 54, in ?
t.run()
File "tutu.py", line 28, in run
self.f = gloox.SIProfileFT( self.c, self )
File
"/home/karim/boulot/gliders/archi/project//lib/python2.4/site-packages/gloox/gloox.py",
line 1965, in __init__
this = _gloox.new_SIProfileFT(*args)
NotImplementedError: Wrong number of arguments for overloaded function
'new_SIProfileFT'.
Possible C/C++ prototypes are:
gloox::SIProfileFT(gloox::ClientBase *,gloox::SIProfileFTHandler
*,gloox::SIManager *,gloox::SOCKS5BytestreamManager *)
gloox::SIProfileFT(gloox::ClientBase *,gloox::SIProfileFTHandler
*,gloox::SIManager *)
gloox::SIProfileFT(gloox::ClientBase *,gloox::SIProfileFTHandler *)
If I comment gloox.LogHandler.__init__( self ) (and
self.c.logInstance().registerLogHandler( gloox....), it "works".
The order to initialize the objects seems to be important. The error can
(Continue reading)
RSS Feed