arrow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Pivarski (JIRA)" <>
Subject [jira] [Commented] (ARROW-230) Python: Do not name modules like native ones (i.e. rename
Date Tue, 18 Oct 2016 22:33:58 GMT


Jim Pivarski commented on ARROW-230:

Actually, I encounter this bug every time.

I don't know how to get my Python environment to ` build_ext --inplace` without encountering
an `import io` that doesn't yield `undefined symbol: pyarrow_ARRAY_API`. Even if I clean the
build directory and start over, I hit cases with an `import io` in `.local/lib/python2.7/site-packages/pkg_resources`
or `numpy/lib/`.

Using the 0.1.0 release.

I was going to use pyarrow to explore the structure of the C++ API; everything else built

> Python: Do not name modules like native ones (i.e. rename
> ---------------------------------------------------------------------
>                 Key: ARROW-230
>                 URL:
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>            Reporter: Uwe L. Korn
> Although you can rename it in imports, still weird stuff can happen.
> E.g. if you re-run make in the build directory (only happens probably if you change pyarrow's
CMakeLists.txt and do not call it via you will get the following error:
> {noformat}
>     -- Found Python lib /usr/lib/x86_64-linux-gnu/
>     CMake Error at cmake_modules/FindNumPy.cmake:62 (message):
>       NumPy import failure:
>       Traceback (most recent call last):
>         File "<string>", line 1, in <module>
>         File "/home/uwe/.virtualenvs/pyarrow/local/lib/python2.7/site-packages/numpy/",
line 180, in <module>
>           from . import add_newdocs
>         File "/home/uwe/.virtualenvs/pyarrow/local/lib/python2.7/site-packages/numpy/",
line 13, in <module>
>           from numpy.lib import add_newdoc
>         File "/home/uwe/.virtualenvs/pyarrow/local/lib/python2.7/site-packages/numpy/lib/",
line 8, in <module>
>           from .type_check import *
>         File "/home/uwe/.virtualenvs/pyarrow/local/lib/python2.7/site-packages/numpy/lib/",
line 11, in <module>
>           import numpy.core.numeric as _nx
>         File "/home/uwe/.virtualenvs/pyarrow/local/lib/python2.7/site-packages/numpy/core/",
line 58, in <module>
>           from numpy.testing import Tester
>         File "/home/uwe/.virtualenvs/pyarrow/local/lib/python2.7/site-packages/numpy/testing/",
line 14, in <module>
>           from .utils import *
>         File "/home/uwe/.virtualenvs/pyarrow/local/lib/python2.7/site-packages/numpy/testing/",
line 15, in <module>
>           from tempfile import mkdtemp
>         File "/usr/lib/python2.7/", line 32, in <module>
>           import io as _io
>       ImportError:
>       /home/uwe/Development/arrow/python/build/temp.linux-x86_64-2.7/./
>       undefined symbol: pyarrow_ARRAY_API
>     Call Stack (most recent call first):
>       CMakeLists.txt:223 (find_package)
> {noformat}
> The actual error message here is confusing but the basic problem is that here the wrong
io module is imported. 

This message was sent by Atlassian JIRA

View raw message