New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"arrow/python/platform.h: No such file or directory" error #2281
Comments
This is a different Arrow, not the project here. To debug this problems, it would be good to have answers to the following questions:
|
$ conda install arrow-cpp PackagesNotFoundError: The following packages are not available from current channels:
Current channels:
|
@nasica88 you are missing |
Note we have not packaged and tested Arrow on ppc64le because we don't have access to such a system; your help testing things out and reporting issues would be appreciated |
@wesm Thank you for the link anove. It helps. I succeeds in building pyarrow as below. $ MAKEFLAGS=-j16 python setup.py build_ext --build-type=$ARROW_BUILD_TYPE --with-parquet --with-plasma --inplace However, when I tried to build whl file, it gives me a very weird error. I say weird because /home/data/dist/lib64/libarrow.so does exist ! $ ls -l /home/data/dist/lib64/libarrow.so Below is the error I get when I try to build whl file. Can you pls advise ? $ python setup.py build_ext --build-type=$ARROW_BUILD_TYPE --with-parquet --with-plasma --bundle-arrow-cpp bdist_wheel INFOCompiler id: GNU |
Did you set $ARROW_HOME to |
@wesm Yes I did. |
hi @nasica88 can you please open a JIRA with the details from this issue? I'm not sure how to proceed as I do not have access to a ppc64le machine to test. Perhaps you can also open a request with Anaconda to get their assistance with packaging pyarrow as part of the Anaconda distribution |
@wesm By the way, you can always access a ppc64le (IBM POWER8) machine with the linux OS of your choice for free. Visit the following site for IBM Power Development Platform. You get two weeks of a small ppc64le VM for free, and store it after two weeks, and request another two weeks for free perpetually. They do not give you a GPU, though. |
@wesm I could work around that "/home/data/dist/lib64/libarrow.so. does not exist" error with the following. $ ln -s /usr/local/lib64/libarrow.so.10.0.0 /usr/local/lib64/libarrow.so. In short, CMakeLists.txt tries to concatenate ARG_ABI_VERSION behind libarrow.so so that the file name should be something like libarrow.so.10.0.0. It simply didn't work. I do not know if this is due to a bug or some misconfigured environment. See the following line # 230 in CMakeLists.txt. configure_file(${${library_path}}.${ARG_ABI_VERSION} Any way, I just made a soft link with the name of /usr/local/lib64/libarrow.so., with the dot (.) in the end. That solved it. ... $ ls -l ./dist/pyarrow-0.9.1.dev386+g7d2fbeb.d20180723-cp36-cp36m-linux_ppc64le.whl |
That seems buggy. We should try to diagnose the underlying cause so it can be fixed |
@nasica88 can you open a JIRA issue summarizing your findings on this? We need to track development work / bugs there and not here |
Closing as stale |
I am trying to install pyarrow on Redhat 7.5ALT ppc64le with pip 10.0.1, but I end up with "arrow/python/platform.h: No such file or directory" error.
What did I do wrong ?
At first, I got "No package 'arrow' found" error, even though I did install arrow.
$ pip list | grep arrow
arrow 0.12.1
So I had to build arrow from source (from this github), and installed libarrow.so in /usr/local/lib64 as below and set the PKG_CONFIG_PATH accordingly.
$ find /usr -name libarrow.*
/usr/local/lib64/libarrow.so.10.0.0
/usr/local/lib64/libarrow.so.10
/usr/local/lib64/libarrow.so
/usr/local/lib64/libarrow.a
$ export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig
Still, I end up with "arrow/python/platform.h: No such file or directory" error.
$ pip --version
pip 10.0.1 from /opt/anaconda2/lib/python2.7/site-packages/pip (python 2.7)
$ pip install pyarrow
Collecting pyarrow
Using cached https://files.pythonhosted.org/packages/be/2d/11751c477e4e7f4bb07ac7584aafabe0d0608c170e4bff67246d695ebdbe/pyarrow-0.9.0.tar.gz
...
[ 66%] Building CXX object CMakeFiles/lib.dir/lib.cxx.o
/tmp/pip-install-kil31a/pyarrow/build/temp.linux-ppc64le-2.7/lib.cxx:592:35: fatal error: arrow/python/platform.h: No such file or directory
#include "arrow/python/platform.h"
^
compilation terminated.
make[2]: *** [CMakeFiles/lib.dir/lib.cxx.o] Error 1
make[1]: *** [CMakeFiles/lib.dir/all] Error 2
make: *** [all] Error 2
error: command 'make' failed with exit status 2
The text was updated successfully, but these errors were encountered: