You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "pitrou (via GitHub)" <gi...@apache.org> on 2026/03/09 09:13:53 UTC
[I] [Python] test_cython fails on editable install [arrow]
pitrou opened a new issue, #49473:
URL: https://github.com/apache/arrow/issues/49473
### Describe the bug, including details regarding any error messages, version, and platform.
I now get this error:
```
$ python -m pytest -vs --tb=native pyarrow/tests/test_cython.py
============================================================================== test session starts ===============================================================================
platform linux -- Python 3.10.19, pytest-9.0.2, pluggy-1.6.0 -- /home/antoine/mambaforge/envs/pyarrow/bin/python
cachedir: .pytest_cache
hypothesis profile 'dev' -> max_examples=50
rootdir: /home/antoine/arrow/dev/python
configfile: setup.cfg
plugins: forked-1.6.0, hypothesis-6.150.2, xdist-2.5.0, pyfakefs-4.5.6
collected 2 items
pyarrow/tests/test_cython.py::test_cython_api Compiling pyarrow_cython_example.pyx because it changed.
[1/1] Cythonizing pyarrow_cython_example.pyx
Extension module: <setuptools.extension.Extension('pyarrow_cython_example') at 0x7e775fa09c30> ['/home/antoine/mambaforge/envs/pyarrow/lib/python3.10/site-packages/numpy/_core/include', '/home/antoine/arrow/dev/python/pyarrow/include'] ['arrow_python', 'arrow'] ['/home/antoine/arrow/dev/python/pyarrow', '/home/antoine/mambaforge/envs/pyarrow/lib']
running build_ext
building 'pyarrow_cython_example' extension
creating build/temp.linux-x86_64-cpython-310
/home/antoine/mambaforge/envs/pyarrow/bin/g++ -fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/antoine/mambaforge/envs/pyarrow/include -I/home/antoine/mambaforge/envs/pyarrow/targets/x86_64-linux/include -I/home/antoine/mambaforge/envs/pyarrow/targets/x86_64-linux/include/cccl -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/antoine/mambaforge/envs/pyarrow/include -I/home/antoine/mambaforge/envs/pyarrow/targets/x86_64-linux/include -I/home/antoine/mambaforge/envs/pyarrow/targets/x86_64-linux/include/cccl -fPIC -I/home/antoine/mambaforge/envs/pyarrow/lib/python3.10/site-packages/numpy/_core/include -I/home/antoine/arrow/dev/python/pyarrow/include -I/home/antoine/mambaforge/envs/pyarrow/include/python3.10 -c pyarrow_cython_example.cpp -o build/temp.linux-x86_64-cpython-310/pyarrow_cython_example.o -std=c++20
pyarrow_cython_example.cpp:1357:10: fatal error: arrow/python/platform.h: No such file or directory
1357 | #include "arrow/python/platform.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command '/home/antoine/mambaforge/envs/pyarrow/bin/g++' failed with exit code 1
FAILED
```
Here is the build command:
```
export CMAKE_GENERATOR=Ninja
export PYARROW_BUNDLE_ARROW_CPP=1
export PYARROW_BUNDLE_CYTHON_CPP=1
python -m pip install \
-C cmake.build-type=Debug \
-C build.verbose=true \
--no-deps --no-build-isolation -vv -e .
```
The PyArrow include files use to be copied in the editable install (here `/home/antoine/arrow/dev/python/pyarrow/include`), they are not anymore.
### Component(s)
Python
--
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: issues-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Python] test_cython fails on editable install [arrow]
Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on issue #49473:
URL: https://github.com/apache/arrow/issues/49473#issuecomment-4022272194
@raulcd
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Python] test_cython fails on editable install [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on issue #49473:
URL: https://github.com/apache/arrow/issues/49473#issuecomment-4073598473
Issue resolved by pull request 49476
https://github.com/apache/arrow/pull/49476
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Python] test_cython fails on editable install [arrow]
Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on issue #49473:
URL: https://github.com/apache/arrow/issues/49473#issuecomment-4022274164
Note that this used to work even without `PYARROW_BUNDLE_ARROW_CPP`.
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Python] test_cython fails on editable install [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd closed issue #49473: [Python] test_cython fails on editable install
URL: https://github.com/apache/arrow/issues/49473
--
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: issues-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org