-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[R] Installing arrow R package on Linux with install-arrow.R fails #44824
Comments
Do you have normal bash installed? Or are you using an alternative shell that masquerades as bash and interprets the offending line differently? SOURCE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# snip
source ${SOURCE_DIR}/cpp/thirdparty/versions.txt
|
I do have normal bash. > bash --version
GNU bash, version 5.2.37(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> |
In case it is helpful, I just tried doing this all in a docker container running R and it failed at the
|
Hi @mark-andrews, running the same steps as the above works fine for me: $ docker run -it rocker/r-ver
> source("https://raw.githubusercontent.com/apache/arrow/main/r/R/install-arrow.R")
> create_package_with_all_dependencies("my_arrow_pkg.tar.gz")
Downloading Arrow source file
trying URL 'https://p3m.dev/cran/latest/src/contrib/arrow_18.1.0.tar.gz'
Content type 'binary/octet-stream' length 4548708 bytes (4.3 MB)
==================================================
downloaded 4.3 MB
Repacking tar.gz file to /tmp/RtmpwP4ypv/my_arrow_pkg.tar.gz A difference I see is the version of arrow it grabbed is newer for me. Can you try again and let us know if that works better? |
Hi @amoeba > docker run -it rocker/r-ver
R version 4.4.2 (2024-10-31) -- "Pile of Leaves"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> source("https://raw.githubusercontent.com/apache/arrow/main/r/R/install-arrow.R")
> create_package_with_all_dependencies("my_arrow_pkg.tar.gz")
Downloading Arrow source file
trying URL 'https://p3m.dev/cran/__linux__/noble/latest/src/contrib/arrow_18.1.0.tar.gz'
Content type 'binary/octet-stream' length 20598620 bytes (19.6 MB)
==================================================
downloaded 19.6 MB
Error in create_package_with_all_dependencies("my_arrow_pkg.tar.gz") :
Failed to parse versions.txt; view /tmp/RtmpZ1474S/file1316604c3.R for more information
In addition: Warning messages:
1: In dir.create(download_dir) :
cannot create dir '/tmp/RtmpZ1474S/file12f9c8c66/arrow/tools/thirdparty_dependencies', reason 'No such file or directory'
2: In system2("bash", c(download_dependencies_sh, download_dir), stdout = download_script, :
error in running command I even purged the r-ver image and pulled it down again, and tried again but that led to the same result. |
I switched to a real Linux machine and I can reproduce your issue. I'm looking at it now and will update here. |
Describe the bug, including details regarding any error messages, version, and platform.
I am trying to install the arrow R package on Linux by running the following script (as suggested here):
It fails with the following message:
I can't understand what the problem is because I ran the same script without errors on an seemingly identical Linux system.
My
sessionInfo()
is below.Component(s)
R
The text was updated successfully, but these errors were encountered: