<div>Hi,</div>
<div> </div>
<div>Try:</div>
<div>installMgr.installModule(swmgr,None,moduleName,source[1])</div>
<div> </div>
<div>as 0 is the null pointer in C++, but should be replaced by None in python, as 0 is taken to be a int.</div>
<div> </div>
<div>Whenever you see No matching function for overloaded '%s', it will mean you have been passing the wrong argument types in.</div>
<div><br>Hope this helps.</div>
<div> </div>
<div>God Bless,<br>Ben<br>-------------------------------------------------------------------------------------------<br>The Lord is not slow to fulfill his promise as some count slowness,<br>but is patient toward you, not wishing that any should perish,<br>
but that all should reach repentance.<br>2 Peter 3:9 (ESV) </div>
<div><span class="gmail_quote">On 2/2/08, <b class="gmail_sendername">Pierre Amadio</b> <<a href="mailto:pierre.amadio@laposte.net">pierre.amadio@laposte.net</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi there.<br><br>Looking at installmgr.cpp helped indeed.<br><br>I was able to make a python version of the following functions:<br>
<br>initConfig<br>listModules<br>listRemoteSources<br>refreshRemoteSource<br>remoteListModules<br><br>But i'm stuck when trying to rewrite remoteInstallModule :<br><br>pamadio@debian:~$ ./test.py<br>remoteInstallModule: CrossWire KJV<br>
Traceback (most recent call last):<br>File "./test.py", line 106, in ?<br> remoteInstallModule("CrossWire","KJV",installMgr,mgr)<br>File "./test.py", line 89, in remoteInstallModule<br>
installMgr.installModule(swmgr,0,moduleName,source[1])<br>File "/usr/lib/python2.4/site-packages/Sword.py", line 1560, in installModule<br> def installModule(*args): return _Sword.InstallMgr_installModule(*args)<br>
NotImplementedError: No matching function for overloaded 'InstallMgr_installModule'<br><br>A coy of test.py is available at<br><a href="http://hurdygurdy.dyndns.org/maemosword/python-sword-howto/test.py">http://hurdygurdy.dyndns.org/maemosword/python-sword-howto/test.py</a><br>
<br>If, in a ipython "shell", i ask for help(Sword.InstallMgr()) , i see<br>the installModule function defined:<br><br>| installModule(*args)<br><br>I also see several occurences of "InstallMgr_installModule" in the<br>
Sword.cxx that swig generated.<br><br>Am i right in suspecting a problem in the swing binding ?<br><br><br>_______________________________________________<br>sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>Instructions to unsubscribe/change your settings at above page<br></blockquote></div>