hadoop-zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Hunt <ph...@apache.org>
Subject Re: Error running contrib tests
Date Tue, 22 Sep 2009 23:07:35 GMT
Erik, I think you ran into this: 
https://issues.apache.org/jira/browse/ZOOKEEPER-420

Henry Robinson from Cloudera (cc'd) created the zkpython contrib, ccing 
him if he has a better way, but here's how I am able to run the tests 
w/o installing:

I get around it by compiling src/c and then changing 
src/contrib/zkpython/src/python/setup.py

from:
library_dirs=["/usr/local/lib"]
to:
library_dirs=["<path_to zk>/src/c/.libs"]

then "ant compile" zkpython, move the zookeeper.so from build/contrib 
into zkpython/src/test, then I run the tests as:

  LD_LIBRARY_PATH=<path_to_zk>/src/c/.libs/. ant test


There are a few issues pending with zkpython, I'm hoping Henry can get 
back and address these for the next release.
(such as https://issues.apache.org/jira/browse/ZOOKEEPER-510)

Regards,

Patrick

Erik Holstad wrote:
> Hi!
> I am trying out the python bindings and I followed the guide on
> http://www.cloudera.com/blog/2009/05/28/building-a-distributed-concurrent-queue-with-apache-zookeeper/
> Everything worked fine until the last step:
> 
> Python 2.5.1 (r251:54863, Jun 15 2008, 18:24:56)
> [GCC 4.3.0 20080428 (Red Hat 4.3.0-8)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import zookeeper
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: libzookeeper_mt.so.2: cannot open shared object file: No such
> file or directory
> 
> I figured that I did something wrong in my setup, so I tried to run the
> contrib test and got:
> 
> python-test:
>      [exec] Running src/test/clientid_test.py
>      [exec] Traceback (most recent call last):
>      [exec]   File "src/test/clientid_test.py", line 21, in <module>
>      [exec]     import zookeeper, zktestbase
>      [exec] ImportError: libzookeeper_mt.so.2: cannot open shared object
> file: No such file or directory
>      [exec] Running src/test/connection_test.py
>      [exec] Traceback (most recent call last):
>      [exec]   File "src/test/connection_test.py", line 21, in <module>
>      [exec]     import zookeeper, zktestbase
>      [exec] ImportError: libzookeeper_mt.so.2: cannot open shared object
> file: No such file or directory
>      [exec] Running src/test/create_test.py
>      [exec] Traceback (most recent call last):
>      [exec]   File "src/test/create_test.py", line 19, in <module>
>      [exec]     import zookeeper, zktestbase, unittest, threading
>      [exec] ImportError: libzookeeper_mt.so.2: cannot open shared object
> file: No such file or directory
>      [exec] Running src/test/delete_test.py
>      [exec] Traceback (most recent call last):
>      [exec]   File "src/test/delete_test.py", line 19, in <module>
>      [exec]     import zookeeper, zktestbase, unittest, threading
>      [exec] ImportError: libzookeeper_mt.so.2: cannot open shared object
> file: No such file or directory
>      [exec] Running src/test/exists_test.py
>      [exec] Traceback (most recent call last):
>      [exec]   File "src/test/exists_test.py", line 19, in <module>
>      [exec]     import zookeeper, zktestbase, unittest, threading
>      [exec] ImportError: libzookeeper_mt.so.2: cannot open shared object
> file: No such file or directory
>      [exec] Running src/test/get_set_test.py
>      [exec] Traceback (most recent call last):
>      [exec]   File "src/test/get_set_test.py", line 19, in <module>
>      [exec]     import zookeeper, zktestbase, unittest, threading
>      [exec] ImportError: libzookeeper_mt.so.2: cannot open shared object
> file: No such file or directory
> 
> BUILD FAILED
> /home/erik/src/zookeeper-3.2.1/src/contrib/build.xml:48: The following error
> occurred while executing this line:
> /home/erik/src/zookeeper-3.2.1/src/contrib/zkpython/build.xml:63: exec
> returned: 1
> 
> 
> I ran this test from zookeeper/src/contrib with ant test
> 
> Not sure if I'm doing something wrong or if this is a bug?
> 
> Regards Erik
> 

Mime
View raw message