Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D19F9200BB3 for ; Wed, 2 Nov 2016 22:15:36 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D05DC160AFB; Wed, 2 Nov 2016 21:15:36 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 241A9160AF0 for ; Wed, 2 Nov 2016 22:15:35 +0100 (CET) Received: (qmail 24655 invoked by uid 500); 2 Nov 2016 21:15:35 -0000 Mailing-List: contact dev-help@arrow.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@arrow.apache.org Delivered-To: mailing list dev@arrow.apache.org Received: (qmail 24638 invoked by uid 99); 2 Nov 2016 21:15:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2016 21:15:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 6CC66C023E for ; Wed, 2 Nov 2016 21:15:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id EKtjNBQ09wTO for ; Wed, 2 Nov 2016 21:15:32 +0000 (UTC) Received: from mail-oi0-f53.google.com (mail-oi0-f53.google.com [209.85.218.53]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 094105FC2E for ; Wed, 2 Nov 2016 21:15:32 +0000 (UTC) Received: by mail-oi0-f53.google.com with SMTP id x4so38695184oix.2 for ; Wed, 02 Nov 2016 14:15:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=qqtzDbw0ZhhMUMVDkLG66BlFCJpo2RgtGhTRoAkL1Bg=; b=QrIq15HTwBz1MvBnZnL91nQXbeq5zFhINrRWjflfUCDgKQ5aaleyQdGCTRWfdvy+kC T+6A25ddDoe+cetE1aHzPusv9QQL0SaaDDA4MPo74XazxIawGnW7azUVSB4F6DO8dnQO O/moyZsWqJOwMJX3Bq2RcudxqcazdMHp6pw7q6YR+2VDZzvw0qZsH+WXb2y3qXNCXdxH mnudGUnpTrtxK+HzHF7rzHMt+uiReWRhtbArJceGDjpPFe4pLO+7xXuFbzmv/O27mBdZ BKK6Igj+ulnCZOHNNKpsXIhNFkQerQLW6VciiGqE6CbAneN1cQmK8KOTQenLLNms44AI G3Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=qqtzDbw0ZhhMUMVDkLG66BlFCJpo2RgtGhTRoAkL1Bg=; b=in9qZem1JuxCDLeTpQRLsACpcohYycvSigxFz1wvOQzHD8NOF8BR+cs9L+QAGhhaFM yT28L9QG0h1A2GcjBSVidlAxR985j/y1+3v0M4KwE7uVKoK2GQhPfJ11xNmRySHBkJag Nm2YshEjtPKExqU82VnJbjVEMIRCPxhikPvRffbGIvi6QF8uCqTNXgeh698W2fpGCMaj iMQy4/AvWziHnOlsdNhLFa9hMySXM4avm2nYa6gPE1zdSFhdIdZl7w2eRgfe8NbgK62c eWo29Do9hu2OvdLEdv8K8FtMWQa6o1GTLNCVQSyMhlOxq93skk4JPNGiD6EbUOBPIZWY kSCg== X-Gm-Message-State: ABUngvczxCPom6wQDuhToYwK64qe+AISnVdPDUi1jCnolS2HcNFZOtTxlvG01l2Ial5pbUQyfk5CISQ1vCLHYg== X-Received: by 10.107.202.69 with SMTP id a66mr6830326iog.170.1478121330189; Wed, 02 Nov 2016 14:15:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.151.92 with HTTP; Wed, 2 Nov 2016 14:15:29 -0700 (PDT) In-Reply-To: References: From: Bryan Cutler Date: Wed, 2 Nov 2016 14:15:29 -0700 Message-ID: Subject: Re: Pyarrow getting import error for libarrow.so To: dev@arrow.apache.org Content-Type: multipart/alternative; boundary=94eb2c0bad16d22b49054057f0de archived-at: Wed, 02 Nov 2016 21:15:37 -0000 --94eb2c0bad16d22b49054057f0de Content-Type: text/plain; charset=UTF-8 Thanks for clearing that up Wes! I couldn't figure out why it was working before I updated, but makes sense now. I'd be happy to add this to the Python README, is it worth opening a JIRA for it? Bryan On Wed, Nov 2, 2016 at 1:09 PM, Wes McKinney wrote: > libarrow.so needs to be in your LD_LIBRARY_PATH while you are developing, > i.e. > > export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ARROW_HOME/lib > > Might be a good idea to add this to the README > > We used to have SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE), but this > hard-codes the location of the linked library in the pyarrow shared > libraries' rpaths. By leaving it to LD_LIBRARY_PATH you can easily > switch between debug and release builds of libarrow, for example. > > - Wes > > On Wed, Nov 2, 2016 at 2:18 PM, Bryan Cutler wrote: > > After building pyarrow, running py.tests or trying to "import pyarrow" > > results in the error: > > > > /usr/lib/python2.7/dist-packages/py/_path/local.py:650: in pyimport > > __import__(modname) > > pyarrow/__init__.py:20: in > > import pyarrow.config > > E ImportError: libarrow.so: cannot open shared object file: No such > file > > or directory > > > > I have this and the other shared libs under my ARROW_HOME, and had the > env > > var exported through the build process. If I just copy the *.so files > > alongside libpyarrow.so, everything works fine. I'm not sure how it is > > supposed to work here, should the command "python setup.py build_ext > > --inplace" copy these libraries to pyarrow, or should it somehow know to > > look in ARROW_HOME for these? > > > > Thanks! > > Bryan > --94eb2c0bad16d22b49054057f0de--