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

Dan Burkert commented on KUDU-1298:
-----------------------------------

[~tlipcon] and I spent some time today trying to figure out what's going on 
here.  It seems to be an rpath issue with the kudu client shared object that 
python builds.  Error:
{code}
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "kudu/__init__.py", line 18, in <module>
    from kudu.client import (Client, Table, Scanner, Session,  # noqa
ImportError: dlopen(kudu/client.so, 2): Library not loaded: 
@rpath/libkudu_client.0.dylib
  Referenced from: /Users/dan/src/cloudera/kudu/python/kudu/client.so
  Reason: image not found
{code}

{code}
otool -L /Users/dan/src/cloudera/kudu/python/kudu/client.so
/Users/dan/src/cloudera/kudu/python/kudu/client.so:
        @rpath/libkudu_client.0.dylib (compatibility version 0.0.0, current 
version 0.0.0)
        /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 
120.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current 
version 1213.0.0)
{code}

The {{libkudu_client.0.dylib}} is in 
{{/Users/dan/src/cloudera/kudu/build/latest/lib/exported}}, but it's not picked 
up properly.  Adding 
{{DYLD_LIBRARY_PATH=/Users/dan/src/cloudera/kudu/build/latest/lib/exported}} 
fixes the issue.  So the question is, how can we get the python shared object 
to have the correct rpath, or is there another solution?  [~wesmckinn]] do you 
have any ideas?

> Make pip install of Kudu Python client work with C++11 on OS X
> --------------------------------------------------------------
>
>                 Key: KUDU-1298
>                 URL: https://issues.apache.org/jira/browse/KUDU-1298
>             Project: Kudu
>          Issue Type: Bug
>          Components: python
>            Reporter: Jeff Hammerbacher
>            Assignee: David Alves
>
> Pip install of kudu-python on Homebrew's Python 3.5.1 and the most recent 
> Xcode is failing for me: 
> https://getkudu.slack.com/archives/kudu-general/p1453163444003189.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to