conda-forge / pyarrow-feedstock

A conda-smithy repository for pyarrow.
BSD 3-Clause "New" or "Revised" License
6 stars 26 forks source link

ImportError on Ubuntu 16.10 #17

Closed tebeka closed 7 years ago

tebeka commented 7 years ago
╭─miki@xubi  arrow (git:integration) 
╰─<conda:arrow>$ conda install -c conda-forge pyarrow            Mon Feb 27, 07:18 
Fetching package metadata .............
Solving package specifications: .

Package plan for installation in environment /opt/miniconda3/envs/arrow:

The following packages will be UPDATED:

    pyarrow: 0.1.post-np111py36_7 conda-forge --> 0.2.post-np111py36_0 conda-forge

Proceed ([y]/n)? 

pyarrow-0.2.po 100% |####################################| Time: 0:00:02   1.65 MB/s
╭─miki@xubi  arrow (git:integration) 
╰─<conda:arrow>$ conda install ipython                           Mon Feb 27, 07:18 
Fetching package metadata ...........
Solving package specifications: .

Package plan for installation in environment /opt/miniconda3/envs/arrow:

The following packages will be UPDATED:

    ipython: 5.2.2-py36_0 --> 5.3.0-py36_0

Proceed ([y]/n)? 

╭─miki@xubi  arrow (git:integration) 
╰─<conda:arrow>$ ipy                                             Mon Feb 27, 07:19 
Python 3.6.0 |Continuum Analytics, Inc.| (default, Dec 23 2016, 12:22:00) 
Type "copyright", "credits" or "license" for more information.

IPython 5.3.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import pyarrow
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-57968f417579> in <module>()
----> 1 import pyarrow

/opt/miniconda3/envs/arrow/lib/python3.6/site-packages/pyarrow/__init__.py in <module>()
     26 
     27 
---> 28 import pyarrow.config
     29 from pyarrow.config import cpu_count, set_cpu_count
     30 

ImportError: /opt/miniconda3/envs/arrow/lib/python3.6/site-packages/pyarrow/./libpyarrow.so: undefined symbol: _ZN5arrow2io9Writeable5FlushEv

In [2]:                                                                             
╭─miki@xubi  arrow (git:integration) 
╰─<conda:arrow>$ source deactivate
╭─miki@xubi  arrow (git:integration) 
╰─$ lsb_release -d                                               Mon Feb 27, 07:41 
Description:    Ubuntu 16.10
wesm commented 7 years ago

hi @tebeka -- when I create an empty package plan I see

$ conda create -n arrow-conda-test-3.6 python=3.6 pyarrow -c conda-forge
Fetching package metadata ...........
Solving package specifications: ..........

Package plan for installation in environment /home/wesm/anaconda3/envs/arrow-conda-test-3.6:

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    ca-certificates-2017.1.23  |                0         166 KB  conda-forge
    jemalloc-4.4.0             |                0         2.3 MB  conda-forge
    arrow-cpp-0.2.post         |                0         8.9 MB  conda-forge
    parquet-cpp-0.1.pre        |               14        12.7 MB  conda-forge
    python-3.6.0               |                2        18.9 MB  conda-forge
    pyarrow-0.2.post           |      np111py36_0         3.4 MB  conda-forge
    ------------------------------------------------------------
                                           Total:        46.3 MB

Since you already had pyarrow installed, can you see if conda update pyarrow resolves the issue?

wesm commented 7 years ago

(the problem is that pyarrow's dependencies did not get updated when you ran "conda install")

tebeka commented 7 years ago

@wesm Creating an environment the way you specified solves the problem.