<div>I am interested in Swig & Python for sword-devel. I am a professor.</div> <div>Python is the easiest language to teach beginners. It does not</div> <div>have a dead end like BASIC. Instead it has the OO power of Java</div> <div>and the functional power of most of LISP for those who need and</div> <div>want it. </div> <div> </div> <div>I'm tired of learning dozens of computer languages. I want to help</div> <div>sword. Python for me at least provides the most appealing way to</div> <div>expand sword.</div> <div> </div> <div>I am sorry I don't yet know how to overcome this problem so we</div> <div>can move forward like the PyLucene project did. If someone else</div> <div>knows please announce your plans and needs.</div> <div> </div> <div>pythondrs a user of yahoo.com<BR><BR><B><I>Jason Turner <lefticus@gmail.com></I></B> wrote:</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px;
MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Your first error is my doing, I'll try to get it fixed soon, but it<BR>will probably be in April before I can. I sumbitted some patches a<BR>little while ago to get the csharp library compiling with<BR>VisualStudio.NET. The fix that your propose might not work across the<BR>board, and honestly I don't have time to look into it ATM.<BR><BR>You will probably have better luck with the last released version over<BR>the SVN version right now. However, if you want to keep looking at the<BR>SVN version, you should check and make sure the the Treekey.h included<BR>by Sword.cxx is the one that you think it is.<BR><BR>God Bless,<BR>Jason<BR><BR>On 3/9/06, David Csercsics <AARG@SHAW.CA>wrote:<BR>> The swig Python bindings have a couple issues. I checked out the latest<BR>> svn and installed the libraries. Then I did the following:<BR>><BR>> cd sword-build/bindings/swig/package<BR>> ./autogen.sh<BR>> ./configure --prefix=/usr
--sysconfdir=/etc<BR>> make pythonswig<BR>><BR>> This produces the following:<BR>><BR>> mkdir -p python<BR>> /usr/bin/swig -python -c++ -shadow -o python/Sword.cxx -I. ./sword.i<BR>> ./sword.i:19: Error: Unable to find '../../include/defs.h'<BR>> make: *** [pythonswig] Error 1<BR>><BR>> Line 19 of sword.i should read:<BR>><BR>> %include "../../../include/defs.h"<BR>><BR>> That is where the file is located. I made the change and this time make pythonswig completes successfully. So the next thing I did was:<BR>><BR>> make python_make<BR>><BR>> And i got this error:<BR>><BR>> mkdir -p python<BR>> echo "writing python/setup.py"<BR>> writing python/setup.py<BR>> cd python && /usr/bin/python setup.py build_ext -I/usr/include/sword -L/usr/lib -lsword<BR>> running build_ext<BR>> building '_Sword' extension<BR>> creating build<BR>> creating build/temp.linux-i686-2.4<BR>> gcc -pthread
-fno-strict-aliasing -DNDEBUG -O3 -march=i486 -mcpu=i686 -fPIC -DSWIG=1 -I/usr/include/sword -I/usr/include/python2.4 -c Sword.cxx -o build/temp.linux-i686-2.4/Sword.o<BR>> Sword.cxx: In function `PyObject* _wrap_TreeKey_getFullName(PyObject*,<BR>> PyObject*)':<BR>> Sword.cxx:12005: error: `getFullName' undeclared (first use this function)<BR>> Sword.cxx:12005: error: (Each undeclared identifier is reported only once for<BR>> each function it appears in.)<BR>> error: command 'gcc' failed with exit status 1<BR>> make: *** [python_make] Error 1<BR>><BR>> Is there something I've left out here? What would be places to look for<BR>> a solution. I've not look at the source code at all so I'm not really<BR>> sure where the problem is exactly. My friendly search engine didn't turn<BR>> up any previous reports of this problem so I thought I'd send one here. Hopefully this was helpful.<BR>> _______________________________________________<BR>>
sword-devel mailing list: sword-devel@crosswire.org<BR>> http://www.crosswire.org/mailman/listinfo/sword-devel<BR>> Instructions to unsubscribe/change your settings at above page<BR>><BR><BR><BR>--<BR>http://emptycrate.com Games, Programming, Travel & other stuff<BR><BR>_______________________________________________<BR>sword-devel mailing list: sword-devel@crosswire.org<BR>http://www.crosswire.org/mailman/listinfo/sword-devel<BR>Instructions to unsubscribe/change your settings at above page<BR></BLOCKQUOTE><BR><p>
                <hr size=1>Yahoo! Travel<br>
<a href="http://us.lrd.yahoo.com/_ylc=X3oDMTFscDlocTFiBF9TAzMyOTc1MDIEX3MDMjcxOTQ4MQRwb3MDMgRzZWMDbWFpbC1mb290ZXIEc2xrA3l0LXR0/SIG=12hqieud9/**http%3a//leisure.travelocity.com/Promotions/0,,YHOE%7c1381%7cvacs_main,00.html">Find
great deals</a> to the top 10 hottest destinations!