-
Notifications
You must be signed in to change notification settings - Fork 330
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
Segfault with r-arrow=12
#1470
Comments
Does this error occur outside of conda? If you create a virtual environment, does the error go away? |
It also occurs in a virtual environment:
|
Hi, I tried but am unable to reproduce the error. |
I encounter this issue with |
Can you please provide code/instructions I can copy-paste into R console for creating a venv and installing the necessary packages so that I can reproduce the error? |
I think the easiest is the following:
Can you reproduce the error with these commands? |
Is R originating from conda as well? If not, then binary incompatibilities are inevitable when mixing conda and non-conda binaries. You can easily install a pre-built whl from pip that should work w/ your R installation, like this: library(reticulate)
if (is.null(virtualenv_starter(">=3.9")))
install_python("3.9:latest")
reticulate::virtualenv_create("r-pyarrow", "3.10", packages = "pyarrow") Then in a fresh R session, this should just work: library(reticulate)
pq <- import("pyarrow.parquet") If you're initializing python some other way (not with the |
Yes, in my example, everything originates from conda. I also tried your approach with a standalone R installation. Now, I only get a segfault warning, but not a segfault:
|
Thanks, I can reproduce in reticulate, and also don't see the same warning when running under python directly. Looking at upstream, it seems that there was a similar issue (same warning) emitted by arrow for java: apache/arrow#36934. We'll probably need a similar PR upstream to fix this. The warning is being emitted from here: https://github.com/apache/arrow/blob/02de3c1789460304e958936b78d60f824921c250/cpp/src/arrow/filesystem/s3fs.cc#L2993, likely being called in python here: https://github.com/apache/arrow/blob/02de3c1789460304e958936b78d60f824921c250/python/pyarrow/_s3fs.pyx#L70 |
@euklid321 Can you check whether conda-forge/arrow-cpp-feedstock#1211 helps with your problem? You would need to upgrade to |
I don't get the error any longer with the latest |
Importing
pyarrow.parquet
with reticulate results in a segfault. The error below disappears if I downgrade tor-arrow=11
.Rscript -e "reticulate::py_run_string('import pyarrow.parquet')"
The text was updated successfully, but these errors were encountered: