C client (via zkpython) returns unknown state

2009-10-13 Thread Steven Wong
Using zkpython with ZK 3.2.1 release: import zookeeper as z zh = z.init(...) z.state(zh) # returns 3 == z.CONNECTED_STATE # kill standalone ZK server z.state(zh) # returns 0 == ??? The problem is that 0 is not a state defined by zookeeper.[ch]. I'm not sure whether 0 should've been

RE: C client (via zkpython) returns unknown state

2009-10-13 Thread Steven Wong
a JIRA for this and we'll address it in the next release: https://issues.apache.org/jira/browse/ZOOKEEPER Thanks for the report! Patrick Steven Wong wrote: Using zkpython with ZK 3.2.1 release: import zookeeper as z zh = z.init(...) z.state(zh) # returns 3 == z.CONNECTED_STATE

UnsupportedClassVersionError when building zkpython

2009-10-12 Thread Steven Wong
Any idea how I can get it to build? ZooKeeper 3.2.1 (tarball release) on Mac OS X 10.5.8. Thanks. sw...@lgmac-swong:~/lib/zookeeper/src/contrib/zkpython 9173 sudo ant install Buildfile: build.xml BUILD FAILED java.lang.UnsupportedClassVersionError: Bad version number in .class file

RE: UnsupportedClassVersionError when building zkpython

2009-10-12 Thread Steven Wong
you can do: ant compile sudo python src/python/setup.py install to build and install manually. If you have a moment, can you let me know which ant you are using? (ant -version) Thanks for bringing this up! Henry On Mon, Oct 12, 2009 at 9:06 PM, Steven Wong sw...@netflix.com wrote