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 ?
Dave
On Tue, 15 Feb 2011, Iraklis wrote:
After all,i installed redland library under cygwin.I tried to run te
example.py for the python bindings and i am getting an error from
pythonabout the unknown Redland import from RDF.py :
home@home-PC ~/redland-bindings-1.0.13.1/python/test
$ python test.py
Traceback (most recent call last):
File "test.py", line 23, in <module>
import RDF
File "/usr/lib/python2.6/site-packages/RDF.py", line 126, in <module>
import Redland
ImportError: No module named Redland
I run the below to check the sys,path of python:
home@home-PC ~/redland-bindings-1.0.13.1/python/test
$ python
Python 2.6.5 (r265:79063, Jun 12 2010, 17:07:01)
[GCC 4.3.4 20090804 (release) 1] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/lib/python26.zip', '/usr/lib/python2.6',
'/usr/lib/python2.6/plat-cygwin', '/usr/lib/python2.6/lib-tk',
'/usr/lib/python2.
6/lib-old', '/usr/lib/python2.6/lib-dynload',
'/usr/lib/python2.6/site-packages']
Under '/usr/lib/python2.6/site-packages i can find Redland.so.I guess python
is not able to find the imported file but the path is being set correctly.
I have also set PYTHONPATH and LD_LIBRARY_PATH with the value of
"'/usr/lib/python2.6/site-packages" according to the
documentation http://librdf.org/docs/python.html.
Any suggestions?
_______________________________________________
redland-dev mailing list
[email protected]
http://lists.librdf.org/mailman/listinfo/redland-dev