Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
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 setup.py) you will get the following error:
-- Found Python lib /usr/lib/x86_64-linux-gnu/libpython2.7.so 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/__init__.py", line 180, in <module> from . import add_newdocs File "/home/uwe/.virtualenvs/pyarrow/local/lib/python2.7/site-packages/numpy/add_newdocs.py", line 13, in <module> from numpy.lib import add_newdoc File "/home/uwe/.virtualenvs/pyarrow/local/lib/python2.7/site-packages/numpy/lib/__init__.py", line 8, in <module> from .type_check import * File "/home/uwe/.virtualenvs/pyarrow/local/lib/python2.7/site-packages/numpy/lib/type_check.py", line 11, in <module> import numpy.core.numeric as _nx File "/home/uwe/.virtualenvs/pyarrow/local/lib/python2.7/site-packages/numpy/core/__init__.py", line 58, in <module> from numpy.testing import Tester File "/home/uwe/.virtualenvs/pyarrow/local/lib/python2.7/site-packages/numpy/testing/__init__.py", line 14, in <module> from .utils import * File "/home/uwe/.virtualenvs/pyarrow/local/lib/python2.7/site-packages/numpy/testing/utils.py", line 15, in <module> from tempfile import mkdtemp File "/usr/lib/python2.7/tempfile.py", line 32, in <module> import io as _io ImportError: /home/uwe/Development/arrow/python/build/temp.linux-x86_64-2.7/./libpyarrow.so: undefined symbol: pyarrow_ARRAY_API Call Stack (most recent call first): CMakeLists.txt:223 (find_package)
The actual error message here is confusing but the basic problem is that here the wrong io module is imported.