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 D355E200C69 for ; Sat, 6 May 2017 16:16:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D1DF4160BA2; Sat, 6 May 2017 14:16:08 +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 2C566160BAD for ; Sat, 6 May 2017 16:16:08 +0200 (CEST) Received: (qmail 79705 invoked by uid 500); 6 May 2017 14:16:07 -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 79688 invoked by uid 99); 6 May 2017 14:16:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 May 2017 14:16:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id C25001827C7 for ; Sat, 6 May 2017 14:16:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id a8hR7iri8Y7u for ; Sat, 6 May 2017 14:16:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id A06315FC91 for ; Sat, 6 May 2017 14:16:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id DCD99E0BDF for ; Sat, 6 May 2017 14:16:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 344F821DF0 for ; Sat, 6 May 2017 14:16:04 +0000 (UTC) Date: Sat, 6 May 2017 14:16:04 +0000 (UTC) From: "Devang Shah (JIRA)" To: dev@arrow.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (ARROW-955) ImportError: No module named _config MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 06 May 2017 14:16:09 -0000 Devang Shah created ARROW-955: --------------------------------- Summary: ImportError: No module named _config Key: ARROW-955 URL: https://issues.apache.org/jira/browse/ARROW-955 Project: Apache Arrow Issue Type: Bug Components: Python Environment: Ubuntu - 3.19.0-80-generic #88~14.04.1-Ubuntu Python 2.7.6 Reporter: Devang Shah Priority: Blocker I built pyarrow, arrow, and parquet-cpp from source - so that I could use the new read_row_group() interface and in general, have access to the latest versions. I ran into many issues during the build but was ultimately successful (notes below). However, I am not able to import pyarrow.parquet due to the following issue: >>import pyarrow.parquet Traceback (most recent call last): File "", line 1, in File "pyarrow/init.py", line 28, in import pyarrow._config ImportError: No module named _config This is similar to an issue reported in github/conda-forge/pyarrow-feedstock, where also I posted this...but I think this forum is more direct and appropriate - so re-posting here. I used instructions at https://arrow.apache.org/docs/python/install.html to build arrow/cpp, parquet-cpp, and then pyarrow, with the following deviations (I view them as possibly bugs in the instructions): arrow/cpp build: export ARROW_HOME=$HOME/local I had to specify -DARROW_PYTHON=on and -DPARQUET_ARROW=ON to the cmake command (besides the -DCMAKE_INSTALL_PREFIX=$ARROW_HOME) parquet-cpp build: export ARROW_HOME=$HOME/local cmake -DARROW_HOME=$HOME/local -DPARQUET_ARROW_LINKAGE=static -DPARQUET_ARROW=ON . make sudo make install ----> this installs parquet libs in the std systems location (/usr/local/lib) so that the pyarrow build (see below) can find the parquet libs pyarrow build: export ARROW_HOME=$HOME/local (not a deviation; just repeating here) export LD_LIBRARY_PATH=$HOME/local/lib:$HOME/parquet4/parquet-cpp/build/latest sudo python setup.py build_ext --with-parquet --with-jemalloc --build-type=release install sudo python setup.py install (sudo is needed to install in /usr/local/lib/python2.7/dist-packages ) These are the steps and modifications to the instructions needed for me to build the pyarrow.parquet package. However, when I now try to import the package I get the error specified above. Maybe I did something wrong in my steps which I kind of put together by searching for these issues...but really can't tell what. It took me almost a whole day to get to the point where I can build pyarrow and parquet, and now I can't use what I built. Any comments, help appreciated! Thanks in advance. -- This message was sent by Atlassian JIRA (v6.3.15#6346)