stefpeschel / NetCoMi

Network construction, analysis, and comparison for microbial compositional data
GNU General Public License v3.0
143 stars 24 forks source link

Problem to install NetCoMi #87

Open Fla1487 opened 1 year ago

Fla1487 commented 1 year ago

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 commented 1 year ago

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

Fla1487 commented 1 year ago

Here the complete message @.***

Thank you in advance

Flavio De Maio PhD Istituto di Microbiologia e Virologia Microbiota analysis & Microbial WGS Research Core Facilty, GSTeP Fondazione Policlinico Universitario A. Gemelli IRCCS L.go Agostino Gemelli, 8 00168 Roma (Italy)

Da: Stefanie @.> Inviato: giovedì 13 aprile 2023 10:31 A: @.> Cc: De Maio @.>; @.> Oggetto: Re: [stefpeschel/NetCoMi] Problem to install NetCoMi (Issue #87)

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

— Reply to this email directly, view it on GitHubhttps://github.com/stefpeschel/NetCoMi/issues/87#issuecomment-1506565056, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANDJXTDBHUTAWGXLYRHH6ETXA62W7ANCNFSM6AAAAAAW4IDMAM. You are receiving this because you authored the thread.Message ID: @.***>

[http://static.unicatt.it/ext-portale/5xmille%20firma%20mail%202022.jpg]

stefpeschel commented 1 year ago

Dear Flavio,

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

Best, Stefanie

ep142 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Dear Stephanie, sorry for forgetting to include system info. I am using a MacBook 14” with Apple M1 Pro, 16 GB RAM and MacOS 13.4 Biobase was already in my system, but, after removing it and reinstalling (which also prompted a few package updates) I successfully installed NetCoMi and loaded it. As soon as I have time I will test it. By the way, do you now if if works with the arm64 version of R? If you are interested I can test it (after I am done giving the lectures). Regards Eugenio

Prof. Eugenio Parente Scuola di Scienze Agrarie, Forestali, Alimentari ed Ambientali Università degli Studi della Basilicata Viale dell’Ateneo Lucano, 10 85100 Potenza, Italy

@.*** http://web.unibas.it/parente

On 13 Jun 2023, at 00:11, Stefanie Peschel @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/stefpeschel/NetCoMi/issues/87#issuecomment-1588177986, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGWCW3HU2OGU43FERFBBPNTXK6HZZANCNFSM6AAAAAAW4IDMAM. You are receiving this because you commented.

stefpeschel commented 1 year ago

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 commented 1 year ago

Dear Stefanie,

I am sorry for delay. Now I have tried to re-install the package with success after the last update.

Thank you so much

Flavio De Maio PhD Istituto di Microbiologia e Virologia Microbiota analysis & Microbial WGS Research Core Facilty, GSTeP Fondazione Policlinico Universitario A. Gemelli IRCCS L.go Agostino Gemelli, 8 00168 Roma (Italy)

Da: Stefanie @.> Inviato: lunedì 17 aprile 2023 09:09 A: @.> Cc: De Maio @.>; @.> Oggetto: Re: [stefpeschel/NetCoMi] Problem to install NetCoMi (Issue #87)

Dear Flavio,

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

Best, Stefanie

— Reply to this email directly, view it on GitHubhttps://github.com/stefpeschel/NetCoMi/issues/87#issuecomment-1510819097, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANDJXTASASBP2Y2MKCF6IETXBTUBXANCNFSM6AAAAAAW4IDMAM. You are receiving this because you authored the thread.Message ID: @.***>

[http://static.unicatt.it/ext-portale/5xmille_firma_mail_2023.jpg] https://www.unicatt.it/uc/5xmille

KhalidIbrahim80 commented 1 year ago

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 commented 1 year ago

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 commented 12 months ago

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

ep142 commented 12 months ago

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 commented 12 months ago

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 commented 12 months ago

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’

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’

Fla1487 commented 12 months ago

Finally, I followed with success this issue: https://github.com/stefpeschel/NetCoMi/issues/11 NetCoMi is installed and loaded...now I will try its activity on MacBook

Thank for the support

stefpeschel commented 12 months ago

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:

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 commented 12 months ago

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

Fla1487 commented 12 months ago

Hi Stefanie, I did not use properly the proposed solution. I followed this solution by nicolereynolds1:

First, I had to install GNU Fortran compiler (https://mac.r-project.org/tools/) and add it to my path export PATH=$PATH:/usr/local/gfortran/bin

When I tried installing NetCoMi again, that's when I got the DESeq2 error. During the installation process I chose to update all dependent packages, so they all were updated before hitting that error. So then I installed DESeq2 separately

BiocManager::install("DESeq2")

That was successful, so then I tried NetCoMi again

devtools::install_github("stefpeschel/NetCoMi")

but skipped all the package updates, and the installation finally worked.

Da: Stefanie @.> Inviato: venerdì 4 agosto 2023 17:45 A: @.> Cc: De Maio @.>; @.> Oggetto: Re: [stefpeschel/NetCoMi] Problem to install NetCoMi (Issue #87)

Hey @Fla1487https://github.com/Fla1487, Sorry I just read your comments. Great that it finally worked out.

So, the solutions given by @nicolereynolds1https://github.com/nicolereynolds1 and @CarlaCristinaUrangahttps://github.com/CarlaCristinaUranga in issue #11https://github.com/stefpeschel/NetCoMi/issues/11 were as follows:

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.

— Reply to this email directly, view it on GitHubhttps://github.com/stefpeschel/NetCoMi/issues/87#issuecomment-1665813172, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANDJXTEUMEK7NW3OPYJVHLTXTUKILANCNFSM6AAAAAAW4IDMAM. You are receiving this because you were mentioned.Message ID: @.***>

[http://static.unicatt.it/ext-portale/5xmille_firma_mail_2023.jpg] https://www.unicatt.it/uc/5xmille