[sword-devel] InstallMgr in python

Pierre Amadio pierre.amadio at laposte.net
Sat Feb 2 04:25:11 MST 2008


Hi there.

Looking at installmgr.cpp helped indeed.

I was able to make a python version of the following functions:

initConfig
listModules
listRemoteSources
refreshRemoteSource
remoteListModules

But i'm stuck when trying to rewrite remoteInstallModule :

pamadio at debian:~$ ./test.py
remoteInstallModule: CrossWire KJV
Traceback (most recent call last):
  File "./test.py", line 106, in ?
    remoteInstallModule("CrossWire","KJV",installMgr,mgr)
  File "./test.py", line 89, in remoteInstallModule
    installMgr.installModule(swmgr,0,moduleName,source[1])
  File "/usr/lib/python2.4/site-packages/Sword.py", line 1560, in installModule
    def installModule(*args): return _Sword.InstallMgr_installModule(*args)
NotImplementedError: No matching function for overloaded 'InstallMgr_installModule'

A coy of test.py is available at
http://hurdygurdy.dyndns.org/maemosword/python-sword-howto/test.py

If, in a ipython "shell", i ask for  help(Sword.InstallMgr()) , i see
the installModule function defined:

|  installModule(*args)

I also see several occurences of "InstallMgr_installModule" in the
Sword.cxx that swig generated.

Am i right in suspecting a problem in the swing binding ? 




More information about the sword-devel mailing list