You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Laurent (Jira)" <ji...@apache.org> on 2021/09/26 18:41:00 UTC

[jira] [Commented] (ARROW-14136) [R] Cannot call allocate_arrow_schema()

    [ https://issues.apache.org/jira/browse/ARROW-14136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17420362#comment-17420362 ] 

Laurent commented on ARROW-14136:
---------------------------------

When installing the dev version by setting 

{code:bash}
export ARROW_R_DEV=true
{code}

prior to starting R and calling

{code:r}
install.packages("arrow")
{code}

the issue disappears.


> [R] Cannot call allocate_arrow_schema()
> ---------------------------------------
>
>                 Key: ARROW-14136
>                 URL: https://issues.apache.org/jira/browse/ARROW-14136
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: R
>    Affects Versions: 5.0.0
>         Environment: Linux, g++-9.3.0, R-4.1.1
>            Reporter: Laurent
>            Priority: Blocker
>
> Calling the (private) function `arrow:::allocate_arrow_schema()` ends with an error:
> {code:r}
> > library(arrow)
> > arrow:::allocate_arrow_schema()
> Error in arrow:::allocate_arrow_schema() : 
>   Cannot call allocate_arrow_schema(). See https://arrow.apache.org/docs/r/articles/install.html for help installing Arrow C++ libraries.
> {code}
> This used to work on the same machine with an earlier version (arrow v4). I also noticed that during the installation of the package there is error message in the logs:
>  
> {noformat}
> trying URL 'https://stat.ethz.ch/CRAN/src/contrib/arrow_5.0.0.2.tar.gz'
> Content type 'application/x-gzip' length 483642 bytes (472 KB)
> ==================================================
> downloaded 472 KB
> * installing *source* package ‘arrow’ ...
> ** package ‘arrow’ successfully unpacked and MD5 sums checked
> ** using staged installation
> *** Successfully retrieved C++ source
> *** Building C++ libraries
> **** cmake
> gzip: stdin: unexpected end of file
> /usr/bin/tar: Unexpected EOF in archive
> /usr/bin/tar: Unexpected EOF in archive
> /usr/bin/tar: Error is not recoverable: exiting now
> **** arrow  
> **** Error building Arrow C++. Re-run with ARROW_R_DEV=true for debug information.
> Warning message:
> In untar(cmake_tar, exdir = cmake_dir) :
>   ‘/usr/bin/tar -xf '/tmp/RtmpQM4Z5j/file3f157fe5ee31' -C '/tmp/RtmpQM4Z5j/file3f15457f6d01'’ returned error code 2
> ------------------------- NOTE ---------------------------
> See https://arrow.apache.org/docs/r/articles/install.html
> for help installing Arrow C++ libraries
> ---------------------------------------------------------
> ** libs
> g++ -std=gnu++11 -I"/usr/local/packages/R/4.1/lib/R/include" -DNDEBUG -I../inst/include/  -I/usr/local/include   -fpic  -g -O2  -c RTasks.cpp -o RTasks.o
> (...) keeps compiling and reports a successful installation in the end.
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)