Atharex commented on issue #10222:
URL: https://github.com/apache/arrow/issues/10222#issuecomment-832492786
Also the wheel that is built in the end seems to have some troubles during
import.
```
bash-4.2# pip3 install $ARROW_HOME/python/dist/pyarrow*.whl
Processing
./dist/pyarrow-1.0.1.dev0+g886d87bde.d20210505-cp38-cp38-linux_x86_64.whl
Requirement already satisfied: numpy>=1.14 in
/usr/local/lib/python3.8/site-packages (from
pyarrow==1.0.1.dev0+g886d87bde.d20210505) (1.19.5)
Installing collected packages: pyarrow
Successfully installed pyarrow-1.0.1.dev0+g886d87bde.d20210505
WARNING: You are using pip version 20.2.4; however, version 21.1.1 is
available.
You should consider upgrading via the '/usr/local/bin/python3.8 -m pip
install --upgrade pip' command.
bash-4.2# python3
Python 3.8.9 (default, May 3 2021, 14:20:19)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] 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 "/root/home/arrow/python/pyarrow/__init__.py", line 62, in <module>
import pyarrow.lib as _lib
ModuleNotFoundError: No module named 'pyarrow.lib'
```
Though the package itself seems correctly installed, as the `lib.pyx` file
is present
```
bash-4.2# ls /root/home/arrow/python/pyarrow/
__init__.pxd _csv.pxd _flight.pyx _json.pyx _plasma.pyx
builder.pxi config.pxi feather.pxi gandiva.pyx ipc.pxi lib.pyx
parquet.py serialization.py types.pxi
__init__.py _csv.pyx _fs.pxd _orc.pxd _s3fs.pyx
cffi.py csv.py feather.py hdfs.py ipc.py memory.pxi
plasma.py table.pxi types.py
__pycache__ _cuda.pxd _fs.pyx _orc.pyx array.pxi
compat.pxi cuda.py filesystem.py includes json.py orc.py
public-api.pxi tensor.pxi util.py
_compute.pxd _cuda.pyx _generated_version.py _parquet.pxd
benchmark.pxi compat.py dataset.py flight.py io-hdfs.pxi jvm.py
pandas-shim.pxi scalar.pxi tensorflow
_compute.pyx _dataset.pyx _hdfs.pyx _parquet.pyx
benchmark.py compute.py error.pxi fs.py io.pxi lib.pxd
pandas_compat.py serialization.pxi tests
```
Am I missing something in the build steps for the python wheel here?
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]