[redland-dev] python bindings . Unable to find Redland import.ImportError: "No module named Redland "

Iraklis leontiad at gmail.com
Tue Feb 15 18:06:06 CET 2011


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 at 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 at 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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.librdf.org/pipermail/redland-dev/attachments/20110215/c7cdfdad/attachment.htm 


More information about the redland-dev mailing list