python libs and parallel shared libraries to the system's

19 views
Skip to first unread message

Alex Kashirin

unread,
May 17, 2016, 10:20:15 AM5/17/16
to Hypertable User
as, the system's libraries get to be over-ran by the Hypertable Libs

Instead of :
HYPERTABLE_HOME=/opt/hypertable/current
PYTHONPATH=$HYPERTABLE_HOME/lib/py
PYTHONPATH=$PYTHONPATH:$HYPERTABLE_HOME/lib/py/hypertable
PYTHONPATH=$PYTHONPATH:$HYPERTABLE_HOME/lib/py/gen-py
export PYTHONPATH
$HYPERTABLE_HOME/bin/ht python 

(the python modules start to read from the Hypertable shared-libs)

It should be:

sys.path.append("/opt/hypertable/current/lib/py/hypertable")
sys.path.append("/opt/hypertable/current/lib/py/gen-py")
sys.path.append("/opt/hypertable/current/lib/py")
sys.path.append("/opt/hypertable/current/lib")
reload(sys)


from ctypes import *
libHyperPython = CDLL('/opt/hypertable/current/lib/libstdc++.so.6')
libHyperPython = CDLL('/opt/hypertable/current/lib/libthrift-0.9.3.so')
libHyperPython = CDLL('/opt/hypertable/current/lib/libthriftnb-0.9.3.so')
libHyperPython = CDLL("/opt/hypertable/current/lib/py/hypertable/libHyperPython.so")
import libHyperPython


While, there is an error of the Thrift libs:
libHyperPython = CDLL('/opt/hypertable/current/lib/libthriftnb-0.9.3.so')
 File "/usr/lib/python2.7/ctypes/__init__.py", line 365, in __init__
 self._handle = _dlopen(self._name, mode)
OSError: /opt/hypertable/current/lib/libthriftnb-0.9.3.so: undefined symbol: _ZTIN6apache6thrift5async13TAsyncChannelE


Can that be just of a compiler release?

Thanks,
Kashirin Alex

Alex Kashirin

unread,
May 17, 2016, 12:21:17 PM5/17/16
to Hypertable User
all the Thrift libs are dependent on the other.

Got around with:

sys.path.append("/opt/hypertable/current/lib/py/hypertable/")
sys.path.append("/opt/hypertable/current/lib/py/gen-py/")
sys.path.append("/opt/hypertable/current/lib/py/")

reload(sys)

from ctypes import *
libHyperPython = CDLL('/opt/hypertable/current/lib/py/hypertable/libHyperPython.so')
import libHyperPython


while the Next Things are needs to be done:
compile on the sys:
 thrift-0.9.3
 libboost1.59.0

apt-get install libtcmalloc-minimal4 libsnappy-dev libre2-dev libunwind-dev

depends on the (libunwind-dev)
ln -s /opt/hypertable/current/lib/libunwind.so.7 /usr/local/lib/libunwind.so.7

that is for my OS Ubuntu 16.04

If you know of issue with such setup, will be great to know about.

just this way the common libs like libz.so.1 will not be used with other python module.

Thanks,
Kashirin Alex
Reply all
Reply to author
Forward
0 new messages