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

Problem to install NetCoMi #87

Open
Fla1487 opened this issue Apr 12, 2023 · 18 comments
Open

Problem to install NetCoMi #87

Fla1487 opened this issue Apr 12, 2023 · 18 comments

Comments

@Fla1487
Copy link

Fla1487 commented Apr 12, 2023

Dear all, I continued to have the following problem to install NetCoMi.

Error: Failed to install 'NetCoMi' from GitHub:
! System command 'Rcmd.exe' failed

I use windows with the last version of R package. How can fix the problem?

Thank you in advance

@stefpeschel
Copy link
Owner

Hey,
Can you please provide us with the full error message?
Thanks.

@Fla1487
Copy link
Author

Fla1487 commented Apr 13, 2023 via email

@stefpeschel
Copy link
Owner

Dear Flavio,

I cannot see the message as I have already emailed you. Please resend the error message.

Best,
Stefanie

@ep142
Copy link

ep142 commented Jun 8, 2023

Hi Stephanie, I have just installed R 4.3 and, apparently this causes problems with re-installation of NetCoMi (which worked fine with R 4.2.3). The error I am getting is:
Error: Failed to install 'NetCoMi' from GitHub:
Failed to install 'Biobase' from Bioc:
Command failed (69)
In addition: Warning messages:
1: packages ‘propr’, ‘metagMisc’ are not available for this version of R

Versions of these packages for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
2: In system(full, intern = TRUE, ignore.stderr = quiet) :
running command ''/usr/bin/git' ls-remote https://git.bioconductor.org/packages/Biobase RELEASE_3_17 2>/dev/null' had status 69

Do you think you will be able to fix this? I need to use NetCoMi in two weeks time for a course and I might need to remove R and reinstall version 4.2... :-O

@stefpeschel
Copy link
Owner

Dear Eugenio,

I have just updated my R version to 4.3 and successfully installed NetCoMi (I'm using Windows 10 with Intel i7).

Could you please try to install Biobase again using BiocManager::install("Biobase")? The missing Biobase package seems to prevent NetCoMi from being installed.

The packages propr and metagMisc do not seem to be available for R 4.3 yet, but they are not needed for NetCoMi to be installed.

A temporary workaround would also be to copy the missing packages from the old library to the new one. Then you should at least be able to install NetCoMi.

Best wishes,
Stefanie

@ep142
Copy link

ep142 commented Jun 13, 2023 via email

@stefpeschel
Copy link
Owner

Dear Eugenio,

Glad to hear that you were able to install NetCoMi.
No, I haven't tested the arm64 version. I only have an older MacOS version installed on a virtual machine. So, I don't know if I could install the arm64 version. I would appreciate it if you could test it.

Best regards,
Stefanie

@Fla1487
Copy link
Author

Fla1487 commented Jun 13, 2023 via email

@KhalidIbrahim80
Copy link

Hi Stefanie,
Thank you in advance
I am trying to run my data through the NetCoM package but firstly i can't install NetCoM and I get below error. Just let you know that I installed R 4.3 and, apparently this causes problems with re-installation of NetCoMi.

Downloading GitHub repo stefpeschel/NetCoMi@HEAD
'getOption("repos")' replaces Bioconductor standard repositories, see 'help("repositories", package =
"BiocManager")' for details.
Replacement repositories:
CRAN: https://cran.rstudio.com/
Error: Failed to install 'NetCoMi' from GitHub:
Git does not seem to be installed on your system.
Cheers

Kalid

@stefpeschel
Copy link
Owner

Hey Kalid,

Since the error says "Git does not seem to be installed on your system", you would need to install Git on your computer. You can download Git here: https://git-scm.com/download/win.

Once Git is installed, you should be able to install NetCoMi.

Best,
Stefanie

@Fla1487
Copy link
Author

Fla1487 commented Aug 3, 2023

Dear Stefanie,
I have shifted to MacBook Pro M2 and unfortunatly I am not able to re-install NetCoMi.

Here the error message:

****Error: Failed to install 'unknown package' from GitHub:
HTTP error 403.
API rate limit exceeded for 79.37.224.209. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)

Rate limit remaining: 0/60
Rate limit reset at: 2023-08-03 23:01:40 UTC**

Could you help me to know what is the problem?
A similar error occurs also for the dependencies

Thank you in advance
To increase your GitHub API rate limit

  • Use usethis::create_github_token() to create a Personal Access Token.
  • Use usethis::edit_r_environ() and add the token as GITHUB_PAT.**

@ep142
Copy link

ep142 commented Aug 4, 2023

Hi all,
I had promised Stephanie I would let her know if the installation worked on arm64 versions of R and bio conductor, and it does. I did not have the problems reported by Fla1487 (I have a MacBook Pro 14'' with M1 processor, year 2021). I have used these commands:
library(devtools)

need to install compilers

and xcode

devtools::install_github("irinagain/mixedCCA")
devtools::install_github("GraceYoon/SPRING")
devtools::install_github("stefpeschel/NetCoMi", dependencies = TRUE,
repos = c("https://cloud.r-project.org/",
BiocManager::repositories()))

@Fla1487
Copy link
Author

Fla1487 commented Aug 4, 2023

Thank you so much,
I tried as you have suggested without obtaining a good result.
I have also checked for git in the terminal, but it is installed. At the moment I do not have idea what it's the problem.
Of course, I will report the other error messages (the final report that it is shown at the endo of each sinle failure)

@Fla1487
Copy link
Author

Fla1487 commented Aug 4, 2023

Here the errors messages before that previously showed:

devtools::install_github("stefpeschel/NetCoMi",

  •                      dependencies = c("Depends", "Imports", "LinkingTo"),
    
  •                      repos = c("https://cloud.r-project.org/",
    
  •                                BiocManager::repositories()))
    

Downloading GitHub repo stefpeschel/NetCoMi@HEAD
'getOption("repos")' replaces Bioconductor standard repositories, see 'help("repositories", package =
"BiocManager")' for details.
Replacement repositories:
CRAN: https://cran.rstudio.com/
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?

1: All
2: CRAN packages only
3: None
4: Biobase (2.60.0 -> 8dc10d2d2...) [Bioc]
5: seriation (1.4.2 -> 1.5.1 ) [CRAN]

Enter one or more numbers, or an empty line to skip updates: 3
Downloading GitHub repo zdk123/SpiecEasi@HEAD
── R CMD build ─────────────────────────────────────────────────────────────────────────────────────────
✔ checking for file ‘/private/var/folders/fb/c6h3lgrs2_326ch93nn3x2fm0000gn/T/Rtmpu3seS4/remotes314755784ce/zdk123-SpiecEasi-bc33288/DESCRIPTION’ ...
─ preparing ‘SpiecEasi’:
✔ checking DESCRIPTION meta-information
─ cleaning src
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
Removed empty directory ‘SpiecEasi/inst’
─ looking to see if a ‘data/datalist’ file should be added
─ building ‘SpiecEasi_1.1.2.tar.gz’

  • installing source package ‘SpiecEasi’ ...
    ** using staged installation
    ** libs
    using C++ compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’
    using C++11
    using SDK: ‘MacOSX13.3.sdk’
    clang++ -arch arm64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/RcppArmadillo/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c ADMM.cpp -o ADMM.o
    clang++ -arch arm64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/RcppArmadillo/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o
    clang++ -arch arm64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/RcppArmadillo/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c matops.cpp -o matops.o
    clang++ -arch arm64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/RcppArmadillo/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c sqrtNewton.cpp -o sqrtNewton.o
    clang++ -arch arm64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/RcppArmadillo/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c svthresh.cpp -o svthresh.o
    clang++ -arch arm64 -std=gnu++11 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/arm64/lib -o SpiecEasi.so ADMM.o RcppExports.o matops.o sqrtNewton.o svthresh.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/opt/gfortran/lib/gcc/aarch64-apple-darwin20.0/12.2.0 -L/opt/gfortran/lib -lgfortran -lemutls_w -lquadmath -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
    ld: warning: directory not found for option '-L/opt/gfortran/lib/gcc/aarch64-apple-darwin20.0/12.2.0'
    ld: warning: directory not found for option '-L/opt/gfortran/lib'
    ld: library not found for -lgfortran
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make: *** [SpiecEasi.so] Error 1
    ERROR: compilation failed for package ‘SpiecEasi’
  • removing ‘/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/SpiecEasi’
    Downloading GitHub repo GraceYoon/SPRING@HEAD
    These packages have more recent versions available.
    It is recommended to update all of them.
    Which would you like to update?

1: All
2: CRAN packages only
3: None
4: mixedCCA (1.6.2 -> 4c2b63f75...) [GitHub]
5: seriation (1.4.2 -> 1.5.1 ) [CRAN]

Enter one or more numbers, or an empty line to skip updates: 3
Downloading GitHub repo zdk123/SpiecEasi@HEAD
Skipping SpiecEasi, it is already being installed
Downloading GitHub repo zdk123/SpiecEasi@HEAD
Skipping SpiecEasi, it is already being installed
── R CMD build ─────────────────────────────────────────────────────────────────────────────────────────
✔ checking for file ‘/private/var/folders/fb/c6h3lgrs2_326ch93nn3x2fm0000gn/T/Rtmpu3seS4/remotes3143f8ae93a/GraceYoon-SPRING-3d641a4/DESCRIPTION’ ...
─ preparing ‘SPRING’:
✔ checking DESCRIPTION meta-information ...
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building ‘SPRING_1.0.4.tar.gz’

ERROR: dependency ‘SpiecEasi’ is not available for package ‘SPRING’

  • removing ‘/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/SPRING’
    Downloading GitHub repo zdk123/SpiecEasi@HEAD
    Skipping SpiecEasi, it is already being installed
    Downloading GitHub repo GraceYoon/SPRING@HEAD
    Skipping SPRING, it is already being installed
    ── R CMD build ─────────────────────────────────────────────────────────────────────────────────────────
    ✔ checking for file ‘/private/var/folders/fb/c6h3lgrs2_326ch93nn3x2fm0000gn/T/Rtmpu3seS4/remotes31420d2cc24/stefpeschel-NetCoMi-921ee9d/DESCRIPTION’ ...
    ─ preparing ‘NetCoMi’:
    ✔ checking DESCRIPTION meta-information ...
    ─ installing the package to process help pages
    -----------------------------------
    ERROR: dependencies ‘SpiecEasi’, ‘SPRING’ are not available for package ‘NetCoMi’
    ─ removing ‘/private/var/folders/fb/c6h3lgrs2_326ch93nn3x2fm0000gn/T/RtmpQ5Zcat/Rinst4473561369a/NetCoMi’
    -----------------------------------
    ERROR: package installation failed
    Error: Failed to install 'NetCoMi' from GitHub:
    ! System command 'R' failed
    In addition: Warning messages:
    1: In i.p(...) :
    installation of package ‘/var/folders/fb/c6h3lgrs2_326ch93nn3x2fm0000gn/T//Rtmpu3seS4/file3143f1e06e2/SpiecEasi_1.1.2.tar.gz’ had non-zero exit status
    2: In i.p(...) :
    installation of package ‘/var/folders/fb/c6h3lgrs2_326ch93nn3x2fm0000gn/T//Rtmpu3seS4/file314360b79ba/SPRING_1.0.4.tar.gz’ had non-zero exit status

@Fla1487
Copy link
Author

Fla1487 commented Aug 4, 2023

Finally, I followed with success this issue: #11
NetCoMi is installed and loaded...now I will try its activity on MacBook

Thank for the support

@stefpeschel
Copy link
Owner

Hey @Fla1487,
Sorry I just read your comments. Great that it finally worked out.

So, the solutions given by @nicolereynolds1 and @CarlaCristinaUranga in issue #11 were as follows:

  • Install the GNU Fortran compiler (https://mac.r-project.org/tools/) and add it to the path export PATH=$PATH:/usr/local/gfortran/bin).
  • Use usethis::browse_github_pat() to create a personal access token.
  • Use usethis::edit_r_environ() and add the token as GITHUB_PAT.

And after following the instructions, it worked for you?

That's good to know, because someone else had the same error saying that the rate limit had exceeded, and for him the installation worked the next day after restarting the computer. It's good to have a workaround, though.

@stefpeschel
Copy link
Owner

@ep142 Thanks a lot for testing NetCoMi on the arm64 R version. It's great to know that it works ☺️

@Fla1487
Copy link
Author

Fla1487 commented Aug 4, 2023 via email

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

No branches or pull requests

4 participants