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

Iraklis leontiad at gmail.com
Tue Feb 15 19:57:56 CET 2011


Yes i did it and it worked!!!!
I did it after 3 weeks of efforts!!!!!!
(The only difference of windows shared libraries and unix based shared
libraries is the file extention?The structure of the lib is the same?)

On 15 February 2011 19:14, Dave Beckett <dave at dajobe.org> wrote:

> 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 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/94a7a811/attachment.htm 


More information about the redland-dev mailing list