<div dir="ltr"><div>I am trying to install the python bindings for Python 2.6 from
source on Ubuntu 10.04 running the 2.6.32 kernel. I compiled and built
raptor2-2.0.9, rasqal-0.9.30 and redland-1.0.14 from source with no
problems. I am trying to install the bindings for version 1.0.14. I am
able to run the configure script and I can see in the build summary that
the Language APIs built includes python. <br>
<br></div>However, when I try to make from the python directory, this is the error that I get.<br><div><br>Making all in test<br>make[1]: Entering directory `/home/fryz/Downloads/redland-bindings-1.0.14.1/python/test'<br>
make[1]: Nothing to be done for `all'.<br>make[1]: Leaving directory `/home/fryz/Downloads/redland-bindings-1.0.14.1/python/test'<br>make[1]: Entering directory `/home/fryz/Downloads/redland-bindings-1.0.14.1/python'<br>
gcc -DHAVE_CONFIG_H -I. -I./.. -DREDLAND_PRE_I -DREDLAND_POST_I
-DREDLAND_DECL_I -DREDLAND_TYPEMAP_I -I/usr/local/include
-I/usr/local/include/raptor2 -I/usr/local/include/rasqal
-I/usr/include/libxml2 -I/usr/include/python2.6
-DSWIG_PYTHON_SILENT_MEMLEAK -g -O2 -I/usr/local/include
-I/usr/local/include/raptor2 -I/usr/local/include/rasqal
-I/usr/include/libxml2 -DSWIG_PYTHON_SILENT_MEMLEAK -g -O2 -fPIC
-DPIC ./Redland_wrap.c -c -o Redland_wrap.so<br>
./Redland_wrap.c:125:20: error: Python.h: No such file or directory<br>./Redland_wrap.c:764: error: expected ) before * token<br>./Redland_wrap.c:788: error: expected =, ,, ;, asm or __attribute__ before * token<br>
./Redland_wrap.c:814: error: expected =, ,, ;, asm or __attribute__ before * token<br>./Redland_wrap.c:868: error: expected =, ,, ;, asm or __attribute__ before * token<br>./Redland_wrap.c:883: error: expected =, ,, ;, asm or __attribute__ before lenfunc<br>
./Redland_wrap.c:884: error: expected =, ,, ;, asm or __attribute__ before ssizeargfunc<br>....<br><br>make[1]: *** [Redland_wrap.so] Error 1<br>make[1]: Leaving directory `/home/fryz/Downloads/redland-bindings-1.0.14.1/python'<br>
make: *** [all-recursive] Error 1<br><br></div><div>Also, when I
installed the python bindings using apt-get install python-librdf, I get
the following error when trying to import RDF:<br><br>Python 2.6.5 (r265:79063, Oct 1 2012, 22:04:36)<br>
[GCC 4.4.3] on linux2<br>Type "help", "copyright", "credits" or "license" for more information.<br>>>> import RDF<br>Traceback (most recent call last):<br> File "<stdin>", line 1, in <module><br>
File "/usr/lib/python2.6/dist-packages/RDF.py", line 129, in <module><br> import Redland<br>ImportError: /usr/lib/librasqal.so.2: undefined symbol: raptor_iostream_read_eof<br><br></div><div>Are these two errors related?<br>
</div><div><br></div><div>Your help is greatly appreciated.<br><br></div>Thanks,<br>Zach</div>