zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From guru singh <grsingh...@gmail.com>
Subject Re: ImportError zookeeper python binding
Date Fri, 27 Apr 2012 07:33:44 GMT
Hi,

Mark,

you're right, I didn't have /usr/local/lib in LD_LIBRARY_PATH.
It works now, thanks

Peter,
zk-smoketest is very handy utility, duly noted.

Thanks
Gurteshwar



On Fri, Apr 27, 2012 at 1:55 AM, Mark Gius <mgius7096@gmail.com> wrote:
> I am using the python bindings for zookeeper, but I'm using the ones that
> are packaged with Ubuntu 11.10.  I'm guessing you don't have /usr/local/lib
> on your library path.  Reading Patrick's link, I think that's
> LD_LIBRARY_PATH that needs to be extended.  If you were to run
>
> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib python
>
> can you import zookeeper?
>
> Mark
>
> On Thu, Apr 26, 2012 at 9:59 AM, Patrick Hunt <phunt@apache.org> wrote:
>
>> Take a look at my setup instructions for zk-smoketest and see if that
>> helps: http://bit.ly/IRG1Ks
>>
>> Patrick
>>
>> On Thu, Apr 26, 2012 at 6:21 AM, guru singh <grsingh750@gmail.com> wrote:
>> > Hi,
>> >
>> > I'm new to zookeeper. I want use it to build a master-election service
>> > for redis.
>> > There is a python binding in the contrib/ folder. I followed all the
>> > steps in the README,
>> > the module installs but when I try to import zookeeper, I get this error:
>> >
>> > ImportError: libzookeeper_mt.so.2: cannot open shared object file: No
>> > such file or directory.
>> >
>> > I looked through the archives and noticed others had this problem way
>> back.
>> > These are the steps I took :
>> >
>> > 1) download and untar zookeeper-3.3.5
>> > 2) cd zookeeper-3.3.5/
>> > 3) ant
>> > 4) cd zookeeper-3.3.5/src/c
>> > 5) autoreconf -if
>> > 6) ./configure
>> > 7) make && make install
>> > 8) cd zookeeper-3.3.5/src/contrib/zkpython
>> > 9) ant install
>> > If i run 'ant test' here I get no errors either.
>> >
>> >  libzookeeper_mt.so.2 is in /usr/local/lib/
>> >
>> > Is there something I'm doing wrong? Is anybody else using the python
>> > binding included with zookeeper-3.3.5?
>> >
>> > Thanks
>> > gurteshwar
>>

Mime
View raw message