Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-2332

Error when importing kudu package in Python Anaconda distribution

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Cannot Reproduce
    • 1.2.0
    • NA
    • python
    • None
    • ProductName: Mac OS X
      ProductVersion: 10.13.3
      BuildVersion: 17D102
      Anaconda Python distribution

    Description

      I tried to install Kudu on my local machine:

      ProductName:    Mac OS X
      ProductVersion:    10.13.3
      BuildVersion:    17D102

      I followed all the steps to build Kudu 1.6 from source:

      1. brew install autoconf automake cmake libtool pkg-config pstree
      2. git clone https://github.com/apache/incubator-kudu kudu
      2. cd kudu
      3. PKG_CONFIG_PATH=/usr/local/Cellar/openssl/1.0.2n/lib/pkgconfig thirdparty/build-if-necessary.sh
      4. mkdir -p build/release
      5. cd build/release
      6. PKG_CONFIG_PATH=/usr/local/Cellar/openssl/1.0.2n/lib/pkgconfig ../../thirdparty/installed/common/bin/cmake \
        -DCMAKE_BUILD_TYPE=release \
        -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl \
        ../..
      7. make -j4
      8. sudo make install

      This resulted with following libraries installed:

       

      /usr/local/include/kudu
      /usr/local/include/kudu/util/kudu_export.h
      /usr/local/lib/libkudu_client.0.1.0.dylib
      /usr/local/lib/libkudu_client.dylib
      /usr/local/lib/libkudu_client.0.dylib
      /usr/local/share/kuduClient
      /usr/local/share/kuduClient/cmake/kuduClientTargets.cmake
      /usr/local/share/kuduClient/cmake/kuduClientTargets-release.cmake
      /usr/local/share/kuduClient/cmake/kuduClientConfig.cmake
      /usr/local/share/doc/kuduClient

       

      Then I followed steps to instal kudu-python package using pip:

      1. clean pip cache to make sure it is clean
      2. pip install -v kudu-python

      Then after calling:

      import kudu

      I got error like in the attachment "error.png".

      As first line of this screen states it was Anaconda Python distribution.

      After removing Anaconda Python and installing Python using Homebrew and again following above steps - all worked.

      My conclusion: there is some kind of issue happening between Anaconda Python and kudu-python package.

      Some more details are also in https://getkudu.slack.com slack channel on #kudu-general channel.

      I am reachable there under msznajder nickname.

       

       

      Attachments

        1. error.png
          216 kB
          Michał Sznajder

        Activity

          People

            Unassigned Unassigned
            msznajder Michał Sznajder
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: