The compilation of the example.py was succefull.But i got this after running the redlandtest.py<div><div>home@home-PC ~/red</div><div>$ python redlandtest.py</div><div>............EEE..........</div><div>======================================================================</div>
<div>ERROR: testListnessContext (__main__.RedlandModelCase)</div><div>----------------------------------------------------------------------</div><div>Traceback (most recent call last):</div><div> File "redlandtest.py", line 16, in setUp</div>
<div> options_string="hash-type='bdb',contexts='no',dir='/tmp',new='yes'")</div><div> File "/home/home/redland-bindings-1.0.13.1/python/RDF.py", line 1526, in __init__</div>
<div> raise RedlandError("Creating Storage failed")</div><div>RedlandError: 'Creating Storage failed'</div><div><br></div><div>======================================================================</div>
<div>ERROR: testListnessNoContext (__main__.RedlandModelCase)</div><div>----------------------------------------------------------------------</div><div>Traceback (most recent call last):</div><div> File "redlandtest.py", line 16, in setUp</div>
<div> options_string="hash-type='bdb',contexts='no',dir='/tmp',new='yes'")</div><div> File "/home/home/redland-bindings-1.0.13.1/python/RDF.py", line 1526, in __init__</div>
<div> raise RedlandError("Creating Storage failed")</div><div>RedlandError: 'Creating Storage failed'</div><div><br></div><div>======================================================================</div>
<div>ERROR: testSync (__main__.RedlandModelGeneral)</div><div>----------------------------------------------------------------------</div><div>Traceback (most recent call last):</div><div> File "redlandtest.py", line 262, in setUp</div>
<div> self.storage = HashStorage("test", options="hash-type='bdb'")</div><div> File "/home/home/redland-bindings-1.0.13.1/python/RDF.py", line 1552, in __init__</div><div> options_string = options)</div>
<div> File "/home/home/redland-bindings-1.0.13.1/python/RDF.py", line 1526, in __init__</div><div> raise RedlandError("Creating Storage failed")</div><div>RedlandError: 'Creating Storage failed'</div>
<div><br></div><div>----------------------------------------------------------------------</div><div>Ran 25 tests in 0.084s</div><div><br></div><div>FAILED (errors=3)</div></div><div><br></div><div>Is it something i have to worry if i wanted to create a simple python script for parsing and then storing an rdf model in ntriples format?</div>
<div>thank you</div><div><br><br><div class="gmail_quote">On 15 February 2011 20:55, Dave Beckett <span dir="ltr"><<a href="mailto:dave@dajobe.org">dave@dajobe.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
The contents are different but the suffix for shared libraries is very system dependent, especially with language bindings, even moreso with python. There are many configure options for this and I added a bunch more in bindings <a href="http://1.0.13.1" target="_blank">1.0.13.1</a>:<br>
<a href="http://librdf.org/bindings/INSTALL.html" target="_blank">http://librdf.org/bindings/INSTALL.html</a><br>
<br>
I forgot to CC: this to redland-dev, maybe you can follow up to your email with the answer so people can find it.<br>
<br>
Dave<br>
<br>
<br>
On Tue, 15 Feb 2011, Iraklis wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Yes i did it and it worked!!!!I did it after 3 weeks of efforts!!!!!!<br>
(The only difference of windows shared libraries and unix based shared<br>
libraries is the file extention?The structure of the lib is the same?)<br>
<br>
On 15 February 2011 19:14, Dave Beckett <<a href="mailto:dave@dajobe.org" target="_blank">dave@dajobe.org</a>> wrote:<br>
I don't use cygwin but I'm guessing since it is Windows it does<br>
not use .so files but uses DLLs. Have you tried renaming<br>
Redland.so to redland.dll ?<br>
<br>
Dave<br>
<br>
<br>
On Tue, 15 Feb 2011, Iraklis wrote:<br>
<br>
After all,i installed redland library under cygwin.I tried<br>
to run te<br>
example.py for the python bindings and i am getting an<br>
error from<br>
pythonabout the unknown Redland import from RDF.py : <br>
home@home-PC ~/redland-bindings-1.0.13.1/python/test<br>
$ python test.py<br>
Traceback (most recent call last):<br>
File "test.py", line 23, in <module><br>
import RDF<br>
File "/usr/lib/python2.6/site-packages/RDF.py", line<br>
126, in <module><br>
import Redland<br>
ImportError: No module named Redland<br>
<br>
I run the below to check the sys,path of python: <br>
home@home-PC ~/redland-bindings-1.0.13.1/python/test<br>
$ python<br>
Python 2.6.5 (r265:79063, Jun 12 2010, 17:07:01)<br>
[GCC 4.3.4 20090804 (release) 1] on cygwin<br>
Type "help", "copyright", "credits" or "license" for more<br>
information.<br>
>>> import sys<br>
>>> sys.path<br>
['', '/usr/lib/python26.zip', '/usr/lib/python2.6',<br>
'/usr/lib/python2.6/plat-cygwin',<br>
'/usr/lib/python2.6/lib-tk',<br>
'/usr/lib/python2.<br>
6/lib-old', '/usr/lib/python2.6/lib-dynload',<br>
'/usr/lib/python2.6/site-packages']<br>
<br>
Under '/usr/lib/python2.6/site-packages i can find<br>
Redland.so.I guess python<br>
is not able to find the imported file but the path is<br>
being set correctly.<br>
I have also set PYTHONPATH and LD_LIBRARY_PATH with the<br>
value of<br>
"'/usr/lib/python2.6/site-packages" according to the<br>
documentation <a href="http://librdf.org/docs/python.html" target="_blank">http://librdf.org/docs/python.html</a>.<br>
Any suggestions?<br>
<br>
<br>
<br>
</blockquote>
</blockquote></div><br></div>