Skip to content
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

[Python] Python C++ libraries no longer in pyarrow/lib directory #15136

Closed
wjones127 opened this issue Dec 30, 2022 · 3 comments · Fixed by #15143
Closed

[Python] Python C++ libraries no longer in pyarrow/lib directory #15136

wjones127 opened this issue Dec 30, 2022 · 3 comments · Fixed by #15143

Comments

@wjones127
Copy link
Member

Describe the bug, including details regarding any error messages, version, and platform.

Prior to #14925, libraries such as arrow_python.dylib were installed in both python/pyarrow and python/pyarrow/lib. Afterward, they are only present in python/pyarrow, and when I build in place and run import pyarrow I get:

ImportError: dlopen(/Users/willjones/Documents/arrows/arrow/python/pyarrow/lib.cpython-310-darwin.so, 0x0002): Library not loaded: '/Users/willjones/Documents/arrows/arrow/python/pyarrow/lib/libarrow_python.1100.dylib'

It seems my dev environment relied on that lib directory and I suspect I am not alone.

Component(s)

Python

@wjones127
Copy link
Member Author

> otool pyarrow/lib.cpython-310-darwin.so -L
pyarrow/lib.cpython-310-darwin.so:
        /Users/willjones/Documents/arrows/arrow/python/pyarrow/lib/libarrow_python.1100.dylib (compatibility version 1100.0.0, current version 1100.0.0)
        /Users/willjones/mambaforge/envs/arrow-dev/lib/libarrow.1100.dylib (compatibility version 1100.0.0, current version 1100.0.0)
        @rpath/libc++.1.dylib (compatibility version 1.0.0, current version 1.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1311.100.3)

@wjones127
Copy link
Member Author

Workaround for now (on MacOS): after building,

mkdir -p pyarrow/lib && cp pyarrow/*.dylib pyarrow/lib/

@kou
Copy link
Member

kou commented Dec 31, 2022

Related:

I think that we should always use @rpath even when Apache Arrow C++ is built with -DARROW_INSTALL_NAME_RPATH=NO.

@kou kou self-assigned this Dec 31, 2022
@kou kou closed this as completed in #15143 Jan 3, 2023
kou added a commit that referenced this issue Jan 3, 2023
)

* Closes: #15136

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
@kou kou added this to the 11.0.0 milestone Jan 3, 2023
EpsilonPrime pushed a commit to EpsilonPrime/arrow that referenced this issue Jan 5, 2023
apache#15143)

* Closes: apache#15136

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
EpsilonPrime pushed a commit to EpsilonPrime/arrow that referenced this issue Jan 5, 2023
apache#15143)

* Closes: apache#15136

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
vibhatha pushed a commit to vibhatha/arrow that referenced this issue Jan 9, 2023
apache#15143)

* Closes: apache#15136

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants