raulcd commented on PR #39316:
URL: https://github.com/apache/arrow/pull/39316#issuecomment-1864506568
ok, the fix seems to work for the use case I am trying to solve.
I've built pyarrow with "everything":
```
$ python
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyarrow
>>> import pyarrow.parquet
>>>
```
after I do the following:
```
$ cd ../../dist/
$ find . -iname libparquet.so
./lib/libparquet.so
$ mkdir raul
$ mv lib/libparquet.* raul/
$ find . -iname libparquet.so
./raul/libparquet.so
```
I get:
```
$ python
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyarrow
>>> import pyarrow.parquet
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/raulcd/code/arrow/python/pyarrow/parquet/__init__.py", line
20, in <module>
from .core import *
File "/home/raulcd/code/arrow/python/pyarrow/parquet/core.py", line 40, in
<module>
raise ImportError(
ImportError: The pyarrow installation is not built with support for the
Parquet file format (libparquet.so.1500: cannot open shared object file: No
such file or directory)
```
as expected. Without the change once I remove libparquet I can't import
`pyarrow`:
```
$ python
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyarrow
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/raulcd/code/arrow/python/pyarrow/__init__.py", line 65, in
<module>
import pyarrow.lib as _lib
ImportError: libparquet.so.1500: cannot open shared object file: No such
file or directory
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]