[redland-dev] Python bindings on OSX

Mark Nottingham mnot at mnot.net
Wed Aug 11 16:21:00 BST 2004


Yep, that worked.  Thanks! (And thanks to Larry Price, who gave some 
off-list help)

On Aug 11, 2004, at 3:15 AM, Dave Beckett wrote:

> On Sun, 8 Aug 2004 11:53:19 -0700, Mark Nottingham <mnot at mnot.net> 
> wrote:
>> I'm trying to build the Python bindings on OSX, but am running into a
>> problem;
>>
>> Traceback (most recent call last):
>>    File "./redlandtest.py", line 12, in ?
>>      from RDF import *
>>    File "/Users/mnot/Desktop/redland-bindings-0.9.18.1/python/RDF.py",
>> line 121, in ?
>>      import Redland
>> ImportError: Loaded module does not contain symbol _initRedland
>>
>> This is directly after a vanilla install of;
>>    raptor 1.3.1
>>    rasqal 0.9.2
>>    redland 0.9.18
>>
>> On OSX 10.3.4 (7H63) with Python 2.3 (Apple's build) and swig 1.3.20
>> (via Fink). Gcc is 3.3 20030304; I *believe* that's the one that comes
>> with XCode 1.5.
>
> I've got something pretty similar here - OSX 10.3.5 and xcode 1.5 I
> downloaded raptor 1.3.2, rasqal 0.9.2, redlabd 0.9.18,
> redland-bindings-0.19.18.1 and did the following, which puts it all
> into the default /usr/local.
>
>   PATH=/usr/local/bin:$PATH
>
>   tar xfz raptor-1.3.2.tar.gz
>   cd raptor-1.3.2
>   ./configure
>   make
>   sudo make install
>   cd ..
>
>   tar xfz rasqal-0.9.2.tar.gz
>   cd rasqal-0.9.2
>   ./configure
>   make
>   sudo make install
>   cd ..
>
>   tar xfz redland-0.9.18.tar.gz
>   cd redland-0.9.18
>   ./configure
>   make
>   sudo make install
>   cd ..
>
>   tar xfz redland-bindings-0.9.18.1.tar.gz
>   cd redland-bindings-0.9.18.1
>   ./configure
>   cd python
>   make
>   make check
>
> which worked ok.
>
> So, python loads the local Redland.so file which here
> has the initRedland:
>   $ nm Redland.so | grep initRedland
>   000078a8 T _initRedland
>
> Maybe you could 'make clean' in the python dir and email the output
> of a 'make' there.
>
> Another suggestion is an older installed Redland.so somewhere that
> python finds it?
>
> Dave
>

--
Mark Nottingham     http://www.mnot.net/




More information about the redland-dev mailing list