DylanLukes commented on issue #38338:
URL: https://github.com/apache/arrow/issues/38338#issuecomment-1770169958
Ok, some reproduction steps. Starting from the `pyarrow-13.0.0.tar.gz`:
```sh
~/Downloads/pyarrow-13.0.0 ❯ PYARROW_WITH_PARQUET=1 PYARROW_WITH_FLIGHT=1
python -m build
...
Successfully built pyarrow-13.0.0.tar.gz and
pyarrow-13.0.0-cp312-cp312-macosx_14_0_arm64.whl
```
```sh
~/Downloads/pyarrow-13.0.0 ❯ python -m installer
dist/pyarrow-13.0.0-cp312-cp312-macosx_14_0_arm64.whl
```
At this point, it doesn't work:
```sh
~/Downloads/pyarrow-13.0.0 ❯ python -c "import pyarrow"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/dylan/Downloads/pyarrow-13.0.0/pyarrow/__init__.py", line 65,
in <module>
import pyarrow.lib as _lib
ModuleNotFoundError: No module named 'pyarrow.lib'
```
Now, I move into the `site-packages` directory and import locally:
```sh
.../lib/python3.12/site-packages ❯ python -c "import pyarrow;
print(pyarrow.__version__)"
13.0.0
```
It works! And now returning to an arbitrary directory, it also works.
```sh
~ ❯ python -c "import pyarrow; print(pyarrow.__version__)"
13.0.0
```
It seems like performing the import locally in `site-packages` "fixes"
something. It doesn't seem like anything has been updated anywhere (e.g. in
`__pycache__`) from the timestamps however. The timestamps all match the
original installation time.
--
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]