Skip to content
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

Error in rethrow_call_with_cleanup during installation #179

Closed
nviraj opened this issue Aug 10, 2020 · 1 comment
Closed

Error in rethrow_call_with_cleanup during installation #179

nviraj opened this issue Aug 10, 2020 · 1 comment
Labels
windows Windows specific issues

Comments

@nviraj
Copy link

nviraj commented Aug 10, 2020

Hello,

Thank you for the package.

I am facing issues when trying to use pak to install packages.

Code:

pak_packages <- c("data.table")
pak::pak_setup(mode = "auto", quiet = T)
pak::pkg_install(pkg = pak_packages, ask = F)
library(package = pak_packages, character.only = T)

Using this in a WSL 2 Enabled Docker machine with the rocker tidyverse latest docker.

Docker

docker run -d -p 8788:8787 --name rstudio_latest -v D:/Projects:/home/rstudio/Projects -e DISABLE_AUTH=true rocker/tidyverse:latest

System Info

> Sys.info()
>                               sysname                               release                               
version 
>                               "Linux"         "4.19.104-microsoft-standard" "#1 SMP Wed Feb 19 06:37:35 UTC 2020" 
>                              nodename                               machine                                 login 
>                        "9fb82202b4d1"                              "x86_64"                             "unknown" 
>                                  user                        effective_user 
>                             "rstudio"                             "rstudio" 

Session Info

> sessionInfo()
> R version 4.0.2 (2020-06-22)
> Platform: x86_64-pc-linux-gnu (64-bit)
> Running under: Ubuntu 20.04 LTS
> 
> Matrix products: default
> BLAS/LAPACK: /usr/lib/x86_64-linux-gnu/openblas-openmp/libopenblasp-r0.3.8.so
> 
> locale:
>  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
>  [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=C              LC_PAPER=en_US.UTF-8       LC_NAME=C                 
>  [9] LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       
> 
> attached base packages:
> [1] stats     graphics  grDevices datasets  utils     methods   base     
> 
> other attached packages:
> [1] dplyr_1.0.1  pak_0.1.2    pacman_0.5.1 renv_0.11.0 

Traceback

> Error in rethrow_call_with_cleanup(c_processx_wait, private$status, as.integer(timeout),  : 
>   attempt to apply non-function
> Type .Last.error.trace to see where the error occured 
> 11.
> stop(cond) 
> 10.
> throw(e) 
> 9.
> h(simpleError(msg, call)) 
> 8.
> .handleSimpleError(function (e) 
> {
>     e$`_nframe` <- nframe
>     e$call <- call ... 
> 7.
> withCallingHandlers(package_env$call_with_cleanup(.NAME, ...), 
>     error = function(e) {
>         e$`_nframe` <- nframe
>         e$call <- call ... 
> 6.
> rethrow_call_with_cleanup(c_processx_wait, private$status, as.integer(timeout), 
>     private$get_short_name()) 
> 5.
> process_wait(self, private, timeout) 
> 4.
> rs$wait(100) 
> 3.
> restart_remote_if_needed() 
> 2.
> remote(function(...) get("pkg_install_make_plan", asNamespace("pak"))(...), 
>     list(pkg = pkg, lib = lib, upgrade = upgrade, ask = ask, 
>         start = start)) 
> 1.
> pak::pkg_install(pkg = pak_packages, ask = F) 

Stack trace

> > .Last.error.trace
> 
>  Stack trace:
> 
>  1. pak::pkg_install(pkg = pak_packages, ask = F)
>     ??:3:3
>  2. pak:::remote(function(...) get("pkg_install_make_plan", asNamespace("pak"))(...),  ...
>  3. pak:::restart_remote_if_needed()
>  4. rs$wait(100)
>  5. process_wait(self, private, timeout)
>  6. rethrow_call_with_cleanup(c_processx_wait, private$status, as.integer(timeout),  ...
> 
>  x attempt to apply non-function 
@jimhester jimhester added the windows Windows specific issues label Aug 18, 2020
@gaborcsardi
Copy link
Member

I think this was probably the same as #200, so it should be fixed now. (Well, from the next daily build.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
windows Windows specific issues
Projects
None yet
Development

No branches or pull requests

3 participants