You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "Todd Lipcon (JIRA)" <ji...@apache.org> on 2018/06/08 00:11:00 UTC

[jira] [Commented] (KUDU-2465) Kudu kudu-python package fails on import

    [ https://issues.apache.org/jira/browse/KUDU-2465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16505532#comment-16505532 ] 

Todd Lipcon commented on KUDU-2465:
-----------------------------------

The issue seems to be that you're using a Debian 8 deb on Debian 9. I believe Debian 9 switched to using the c++11 ABI by default, whereas Debian 8 used the old ABI. So, your compiled Python library isn't able to resolve the symbols from the deb you've installed.

It may be possible to influence the ABI when compiling the python library by somehow injecting -D_GLIBCXX_USE_CXX11_ABI=0 into the cxxflags, but I'm not sure about how to do that through pip.

> Kudu kudu-python package fails on import
> ----------------------------------------
>
>                 Key: KUDU-2465
>                 URL: https://issues.apache.org/jira/browse/KUDU-2465
>             Project: Kudu
>          Issue Type: Bug
>          Components: python
>    Affects Versions: 1.5.0
>            Reporter: Ivan SPM
>            Priority: Major
>
> After installing all packages from Cloudera repository,
>  
> {{ii kudu 1.6.0+cdh5.14.2+0-1.cdh5.14.2.p0.11~jessie-cdh5.14.2 amd64 Columnar storage engine for Hadoop}}
>  {{ii kudu-master 1.6.0+cdh5.14.2+0-1.cdh5.14.2.p0.11~jessie-cdh5.14.2 amd64 Kudu Master service}}
>  {{ii kudu-tserver 1.6.0+cdh5.14.2+0-1.cdh5.14.2.p0.11~jessie-cdh5.14.2 amd64 Kudu Tablet Server service}}
>  {{ii libkuduclient-dev 1.6.0+cdh5.14.2+0-1.cdh5.14.2.p0.11~jessie-cdh5.14.2 amd64 Kudu client development package}}
>  {{ii libkuduclient0 1.6.0+cdh5.14.2+0-1.cdh5.14.2.p0.11~jessie-cdh5.14.2 amd64 Kudu client library}}
>  
> and creating a virtualenv from scratch and installing kudu-python using pip:
>  
> {{pip install cython}}
> {{pip install kudu-python}}
>  
> The package fails when being imported:
> {{In [1]: import kudu}}
>  {{---------------------------------------------------------------------------}}
>  {{ImportError Traceback (most recent call last)}}
>  {{<ipython-input-1-5ff9740ece81> in <module>()}}
>  {{----> 1 import kudu}}{{/opt/venv/kudu/local/lib/python2.7/site-packages/kudu/__init__.py in <module>()}}
>  \{{ 16 # under the License.}}
>  \{{ 17 }}
>  {{---> 18 from kudu.client import (Client, Table, Scanner, Session, # noqa}}
>  \{{ 19 Insert, Update, Delete, Predicate,}}
>  \{{ 20 TimeDelta, KuduError, ScanTokenBuilder,}}{{ImportError: /opt/venv/kudu/local/lib/python2.7/site-packages/kudu/client.so: undefined symbol: _ZNK4kudu6client10KuduTablet2idB5cxx11Ev}}
>  
> This happens both with Python 2.7.13 and 3.6.4, on Debian Stretch.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)