Closed mdancho84 closed 2 years ago
User is trying to install via github. Getting:
Downloading GitHub repo business-science/modeltime.gluonts@HEAD ✓ checking for file '/tmp/Rtmpa0GAzo/remotes8a532cc795f/business-science-modeltime.gluonts-37fb88d/DESCRIPTION' ... ─ preparing 'modeltime.gluonts': ✓ checking DESCRIPTION meta-information ... ─ checking for LF line-endings in source and make files and shell scripts ─ checking for empty or unneeded directories Omitted 'LazyData' from DESCRIPTION ─ building 'modeltime.gluonts_0.2.2.tar.gz' Installing package into '/home/als/R/x86_64-pc-linux-gnu-library/4.1' (as 'lib' is unspecified) * installing *source* package 'modeltime.gluonts' ... ** using staged installation ** R ** byte-compile and prepare package for lazy loading ** help *** installing help indices *** copying figures ** building package indices ** installing vignettes ** testing if installed package can be loaded from temporary location *** caught illegal operation *** address 0x7fe261240c9c, cause 'illegal operand' Traceback: 1: py_module_import(module, convert = convert) 2: import(module) 3: doTryCatch(return(expr), name, parentenv, handler) 4: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5: tryCatchList(expr, classes, parentenv, handlers) 6: tryCatch({ import(module) TRUE}, error = clear_error_handler(FALSE)) 7: reticulate::py_module_available("mxnet") 8: doTryCatch(return(expr), name, parentenv, handler) 9: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 10: tryCatchList(expr, classes, parentenv, handlers) 11: tryCatch(expr, error = function(e) { call <- conditionCall(e) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L) dcall <- deparse(call)[1L] prefix <- paste("Error in", dcall, ": ") LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (is.na(w)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") if (w > LONG) prefix <- paste0(prefix, "\n ") } else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))}) 12: try({ dependencies_ok <- all(reticulate::py_module_available("numpy"), reticulate::py_module_available("pandas"), reticulate::py_module_available("gluonts"), reticulate::py_module_available("mxnet"), reticulate::py_module_available("pathlib"))}, silent = TRUE) 13: check_gluonts_dependencies() 14: fun(libname, pkgname) 15: doTryCatch(return(expr), name, parentenv, handler) 16: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 17: tryCatchList(expr, classes, parentenv, handlers) 18: tryCatch(fun(libname, pkgname), error = identity) 19: runHook(".onLoad", env, package.lib, package) 20: loadNamespace(package, lib.loc) 21: doTryCatch(return(expr), name, parentenv, handler) 22: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 23: tryCatchList(expr, classes, parentenv, handlers) 24: tryCatch({ attr(package, "LibPath") <- which.lib.loc ns <- loadNamespace(package, lib.loc) env <- attachNamespace(ns, pos = pos, deps, exclude, include.only)}, error = function(e) { P <- if (!is.null(cc <- conditionCall(e))) paste(" in", deparse(cc)[1L]) else "" msg <- gettextf("package or namespace load failed for %s%s:\n %s", sQuote(package), P, conditionMessage(e)) if (logical.return) message(paste("Error:", msg), domain = NA) else stop(msg, call. = FALSE, domain = NA)}) 25: library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE) 26: withCallingHandlers(expr, packageStartupMessage = function(c) tryInvokeRestart("muffleMessage")) 27: suppressPackageStartupMessages(library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE)) 28: doTryCatch(return(expr), name, parentenv, handler) 29: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 30: tryCatchList(expr, classes, parentenv, handlers) 31: tryCatch(expr, error = function(e) { call <- conditionCall(e) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L) dcall <- deparse(call)[1L] prefix <- paste("Error in", dcall, ": ") LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (is.na(w)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") if (w > LONG) prefix <- paste0(prefix, "\n ") } else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))}) 32: try(suppressPackageStartupMessages(library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE))) 33: tools:::.test_load_package("modeltime.gluonts", "/home/als/R/x86_64-pc-linux-gnu-library/4.1/00LOCK-modeltime.gluonts/00new") An irrecoverable exception occurred. R is aborting now ... Illegal instruction ERROR: loading failed * removing '/home/als/R/x86_64-pc-linux-gnu-library/4.1/modeltime.gluonts' Warning message: In i.p(...) : installation of package '/tmp/Rtmpa0GAzo/file8a54fd860af/modeltime.gluonts_0.2.2.tar.gz' had non-zero exit status
Recommended strategy: Start with C++ Build Essentials
sudo apt update
sudo apt install build-essential
gcc --version
Closing issue. User indicated it was due to the GPU CUDA software. Updating CUDA fixed.
User is trying to install via github. Getting: