Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

MXNet-R installation is broken for R v3.6 #14967

Open
ashutosh-dwivedi-e3502 opened this issue May 16, 2019 · 8 comments
Open

MXNet-R installation is broken for R v3.6 #14967

ashutosh-dwivedi-e3502 opened this issue May 16, 2019 · 8 comments

Comments

@ashutosh-dwivedi-e3502
Copy link
Contributor

ashutosh-dwivedi-e3502 commented May 16, 2019

Note: Providing complete information in the most concise form is the best way to get help. This issue template serves as the checklist for essential information to most of the technical issues and bug reports. For non-technical issues and feature requests, feel free to present the information in what you believe is the best form.

For Q & A and discussion, please start a discussion thread at https://discuss.mxnet.io

Description

(Brief description of the problem in no more than 2 sentences.)

Environment info (Required)

What to do:
1. Download the diagnosis script from https://raw.githubusercontent.com/apache/incubator-mxnet/master/tools/diagnose.py
2. Run the script using `python diagnose.py` and paste its output here.

Package used (Python/R/Scala/Julia):
(I'm using ...)

For Scala user, please provide:

  1. Java version: (java -version)
  2. Maven version: (mvn -version)
  3. Scala runtime if applicable: (scala -version)

For R user, please provide R sessionInfo():

R version 3.5.2 (2018-12-20)
Platform: x86_64-apple-darwin17.7.0 (64-bit)
Running under: macOS High Sierra 10.13.6

Matrix products: default
BLAS/LAPACK: /usr/local/Cellar/openblas/0.3.4/lib/libopenblasp-r0.3.4.dylib

locale:
[1] C/UTF-8/C/C/C/C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] compiler_3.5.2 tools_3.5.2    tcltk_3.5.2

Build info (Required if built from source)

Compiler (gcc/clang/mingw/visual studio):

MXNet commit hash:
(Paste the output of git rev-parse HEAD here.)

Build config:
(Paste the content of config.mk, or the build command.)

Error Message:

(Paste the complete error message, including stack trace.)

Installing package into ‘/usr/local/lib/R/3.5/site-library’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
trying URL 'https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/src/contrib/mxnet_1.3.0.tar.gz'
Error in download.file(url, destfile, method, mode = "wb", ...) :
  cannot open URL 'https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/src/contrib/mxnet_1.3.0.tar.gz'
In addition: Warning message:
In download.file(url, destfile, method, mode = "wb", ...) :
  cannot open URL 'https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/src/contrib/mxnet_1.3.0.tar.gz': HTTP status was '404 Not Found'
Warning in download.packages(pkgs, destdir = tmpd, available = available,  :
  download of package ‘mxnet’ failed

Minimum reproducible example

(If you are using your own code, please provide a short script that reproduces the error. Otherwise, please provide link to the existing example.)

Steps to reproduce

(Paste the commands you ran that produced the error.)

cran <- getOption("repos")
cran["dmlc"] <- "https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/"
options(repos = cran)
install.packages("mxnet")

This results in in the following error :

Installing package into ‘/usr/local/lib/R/3.5/site-library’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
trying URL 'https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/src/contrib/mxnet_1.3.0.tar.gz'
Error in download.file(url, destfile, method, mode = "wb", ...) :
  cannot open URL 'https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/src/contrib/mxnet_1.3.0.tar.gz'
In addition: Warning message:
In download.file(url, destfile, method, mode = "wb", ...) :
  cannot open URL 'https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/src/contrib/mxnet_1.3.0.tar.gz': HTTP status was '404 Not Found'
Warning in download.packages(pkgs, destdir = tmpd, available = available,  :
  download of package ‘mxnet’ failed
@mxnet-label-bot
Copy link
Contributor

Hey, this is the MXNet Label Bot.
Thank you for submitting the issue! I will try and suggest some labels so that the appropriate MXNet community members can help resolve it.
Here are my recommended labels: Test

@vdantu
Copy link
Contributor

vdantu commented May 16, 2019

@mxnet-label-bot add [installation, R, Question]
@anirudhacharya : Would you be able to help here?

@aaronmarkham aaronmarkham changed the title R installaation is broken R installation is broken May 24, 2019
@aaronmarkham
Copy link
Contributor

Confirming that R installation is broken. Curious why is it fetching an older version (mxnet_1.3.0.tar.gz). Not that newer ones are there. I tried 1.3.1 and 1.4.0 and 1.4.1 and they're not there.

@aaronmarkham aaronmarkham added Bug and removed Question labels May 24, 2019
@aaronmarkham
Copy link
Contributor

Duplicate of #14922

@aaronmarkham
Copy link
Contributor

Hi @aashudwivedi - please try it again. I was able to get it to work after downgrading to R v3.5.3, and choosing the USA (IA) mirror... (60).

@piyushghai
Copy link
Contributor

@aashudwivedi Were you able to try it out ?

@ashutosh-dwivedi-e3502
Copy link
Contributor Author

My apologies for not being able to look at it earlier.
I can confirm that installation completes without any error on this version (3.5.3). Doesn't work for 3.5.2 or 3.6.

Although on trying it out after installation I run into the following error. It's possible that it might have to do something with my own setup. Also this is a fresh installation of R.

> require(mxnet)
Loading required package: mxnet
[1] "Loading local: inst/libs/libmxnet.so"
Error: package or namespace load failed for ‘mxnet’:
 .onLoad failed in loadNamespace() for 'mxnet', details:
  call: dyn.load("R-package/inst/libs/libmxnet.so", local = FALSE)
  error: unable to load shared object '/Users/user1/R-package/inst/libs/libmxnet.so':
  dlopen(/Users/user1/R-package/inst/libs/libmxnet.so, 10): image not found

@aaronmarkham aaronmarkham changed the title R installation is broken MXNet-R installation is broken for R v3.6 Jun 24, 2019
@aaronmarkham
Copy link
Contributor

Updated the headline to be specific...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants