[
https://issues.apache.org/jira/browse/ARROW-4809?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16787966#comment-16787966
]
Francois Saint-Jacques commented on ARROW-4809:
-----------------------------------------------
Got it, need to use `pyarrow=0.11.1` from conda-forge
{code:bash}
(arrow-test) [root@8631455ab183 /]# conda install -c conda-forge pyarrow=0.11.1
...
(arrow-test) [root@8631455ab183 /]# ipython
Python 3.7.2 (default, Dec 29 2018, 06:19:36)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.3.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import pyarrow
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-f1048abcb32d> in <module>
----> 1 import pyarrow
~/miniconda3/envs/arrow-test/lib/python3.7/site-packages/pyarrow/__init__.py in
<module>
52
53
---> 54 from pyarrow.lib import cpu_count, set_cpu_count
55 from pyarrow.lib import (null, bool_,
56 int8, int16, int32, int64,
ImportError:
/root/miniconda3/envs/arrow-test/lib/python3.7/site-packages/pyarrow/lib.cpython-37m-x86_64-linux-gnu.so:
undefined symbol: _ZNK5arrow6Status8ToStringB5cxx11Ev
{code}
Note that this doesn't happen with conda-forge's pyarrow=0.12.1 (the default).
> import pyarrow error: undefined symbol
> --------------------------------------
>
> Key: ARROW-4809
> URL: https://issues.apache.org/jira/browse/ARROW-4809
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Affects Versions: 0.11.1
> Environment: RHELS 6.10; Python 3.7.2
> Reporter: David Schwab
> Priority: Major
>
> I installed conda 4.5.12 and created a new environment named test-env. I
> activated this environment and installed several packages with conda,
> including pyarrow. When I run a Python shell and import pyarrow, I get the
> following error:
>
> {code:java}
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/test-env/lib/python3.7/site-packages/pyarrow/__init__.py", line 54,
> in <module>
> from pyarrow.lib import cpu_count, set cpu_count
> Import Error:
> /test-env/lib/python3.7/site-packages/pyarrow/lib.cpython-37m-x86_64-linux-gnu.so:
> undefined symbol: _ZNK5arrow6Status8ToStringB5xcc11Ev
> {code}
> From Googling, I believe this has to do with the compiler flags used to build
> either pyarrow or one of its dependencies (libboost has been suggested); I
> can build the package from source if I need to, but I'm not sure what flags I
> would need to set to fix the error.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)