<span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">Yes i did it and it worked!!!!<div>I did it after 3 weeks of efforts!!!!!!</div><div>(The only difference of windows shared libraries and unix based shared libraries is the file extention?The structure of the lib is the same?)</div>
</span><br><div class="gmail_quote">On 15 February 2011 19:14, 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;">
I don't use cygwin but I'm guessing since it is Windows it does not use .so files but uses DLLs. Have you tried renaming Redland.so to redland.dll ?<br><font color="#888888">
<br>
Dave</font><div><div></div><div class="h5"><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">
After all,i installed redland library under cygwin.I tried to run te<br>
example.py for the python bindings and i am getting an 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 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 information.<br>
>>> import sys<br>
>>> sys.path<br>
['', '/usr/lib/python26.zip', '/usr/lib/python2.6',<br>
'/usr/lib/python2.6/plat-cygwin', '/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 Redland.so.I guess python<br>
is not able to find the imported file but the path is being set correctly.<br>
I have also set PYTHONPATH and LD_LIBRARY_PATH with the 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>
</blockquote>
</div></div></blockquote></div><br>