girke-lab / signatureSearch

R/Bioconductor package including the Gene Expression Signature Search (GESS), Function Enrichment Analysis (FEA) methods and supporting drug-target network construction for visualization
17 stars 4 forks source link

hard-coded installation path #17

Closed GerardTromp closed 10 months ago

GerardTromp commented 10 months ago

Greetings!

Just tried to install the package (version 1.14.0) on Ubuntu 22.04 and R 4.3.1.

I received the error message:

** testing if installed package keeps a record of temporary installation path
ERROR: hard-coded installation path: please report to the package maintainer and use ‘--no-staged-install’

Herewith the report as suggested by the R install check

tgirke commented 10 months ago

I have never seen this on our systems or from users. Could you sent the commands you use for the install and the output of sessionInfo() after your run into this error.

GerardTromp commented 10 months ago

Oddly enough, the error disappeared when re-installing it now (for test purposes).

I originally installed it from the command line, and it then installed with the flag "-no-staged-install".

Today, the error did not occur.

R CMD INSTALL signatureSearch_1.14.0.tar.gz

  • installing to library '/usr/local/lib/R/site-library'
  • installing source package 'signatureSearch' ... using staged installation libs using C compiler: 'gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0' using C++ compiler: 'g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0' using C++11 g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/local/lib/R/site-library/Rcpp/include' -fpic -g -O2 -ffile-prefix-map=/build/r-base-MHXHhT/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c RcppExports.cpp -o RcppExports.o g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/local/lib/R/site-library/Rcpp/include' -fpic -g -O2 -ffile-prefix-map=/build/r-base-MHXHhT/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c fastGSEA.cpp -o fastGSEA.o gcc -I"/usr/share/R/include" -DNDEBUG -I'/usr/local/lib/R/site-library/Rcpp/include' -fpic -g -O2 -ffile-prefix-map=/build/r-base-MHXHhT/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c fgsea_init.c -o fgsea_init.o g++ -std=gnu++11 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -o signatureSearch.so RcppExports.o fastGSEA.o fgsea_init.o -L/usr/lib/R/lib -lR installing to /usr/local/lib/R/site-library/00LOCK-signatureSearch/00new/signatureSearch/libs R data * moving datasets to lazyload DB inst byte-compile and prepare package for lazy loading * help installing help indices building package indices installing vignettes testing if installed package can be loaded from temporary location checking absolute paths in shared objects and dynamic libraries testing if installed package can be loaded from final location testing if installed package keeps a record of temporary installation path
  • DONE (signatureSearch)

If relevant, sessionInfo reports the following as the first thing (only base packages loaded).

sessionInfo() R version 4.3.1 (2023-06-16) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 22.04.3 LTS

Matrix products: default BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3 LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.20.so; LAPACK version 3.10.0

locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 [7] LC_PAPER=en_US.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

time zone: Africa/Johannesburg tzcode source: system (glibc)

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

loaded via a namespace (and not attached): [1] compiler_4.3.1

Gerard

From: Thomas Girke @.> Sent: 2023-10-05 Thursday 16:50 To: girke-lab/signatureSearch @.> Cc: Tromp, Gerard, Prof @. @.>; Author @.***> Subject: Re: [girke-lab/signatureSearch] hard-coded installation path (Issue #17)

CAUTION: This email originated from outside the Stellenbosch University network. Do not click links or open attachments unless you recognize the sender and know the content is safe.

I have never seen this on our systems or from users. Could you sent the output of sessionInfo() after your run into this error.

- Reply to this email directly, view it on GitHubhttps://github.com/girke-lab/signatureSearch/issues/17#issuecomment-1749064886, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGCBWDKQAPFSGS473S2LXYLX53CKDAVCNFSM6AAAAAA5TZZVNCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBZGA3DIOBYGY. You are receiving this because you authored the thread.Message ID: @.**@.>>

The integrity and confidentiality of this email are governed by these terms. Disclaimerhttps://www.sun.ac.za/emaildisclaimer/default.aspx Die integriteit en vertroulikheid van hierdie e-pos word deur die volgende bepalings bere?l. Vrywaringsklousulehttps://www.sun.ac.za/emaildisclaimer/default.aspx

GerardTromp commented 10 months ago

I tried the install in an R session on another server:

This time it seems the error was propagating from a dependency. Yesterday's error was not nearly as "verbose" and only seemed to be about signatureSearch. It thus appears that one of the dependencies might be throwing the error, and depending on what is already installed, it is emitted only in the signatureSearch portion.

Here it seemed like it was affyio or R.methodsS3, or both.

trying URL 'https://cloud.r-project.org/src/contrib/R.oo_1.25.0.tar.gz' Content type 'application/x-gzip' length 384384 bytes (375 KB)

downloaded 375 KB

trying URL 'https://cloud.r-project.org/src/contrib/R.methodsS3_1.8.2.tar.gz' Content type 'application/x-gzip' length 24131 bytes (23 KB)

downloaded 23 KB

trying URL 'https://bioconductor.org/packages/3.17/bioc/src/contrib/affy_1.78.2.tar.gz' Content type 'application/x-gzip' length 1222237 bytes (1.2 MB)

downloaded 1.2 MB

trying URL 'https://cloud.r-project.org/src/contrib/R.utils_2.12.2.tar.gz' Content type 'application/x-gzip' length 365876 bytes (357 KB)

downloaded 357 KB

trying URL 'https://bioconductor.org/packages/3.17/data/experiment/src/contrib/signatureSearchData_1.14.0.tar.gz' Content type 'application/x-gzip' length 659258 bytes (643 KB)

downloaded 643 KB

The downloaded source packages are in '/tmp/RtmppsjGPK/downloaded_packages' trying URL 'https://bioconductor.org/packages/3.17/bioc/src/contrib/affyio_1.70.0.tar.gz' Content type 'application/x-gzip' length 110373 bytes (107 KB)

downloaded 107 KB

trying URL 'https://cloud.r-project.org/src/contrib/R.oo_1.25.0.tar.gz' Content type 'application/x-gzip' length 384384 bytes (375 KB)

downloaded 375 KB

trying URL 'https://cloud.r-project.org/src/contrib/R.methodsS3_1.8.2.tar.gz' Content type 'application/x-gzip' length 24131 bytes (23 KB)

downloaded 23 KB

trying URL 'https://bioconductor.org/packages/3.17/bioc/src/contrib/affy_1.78.2.tar.gz' Content type 'application/x-gzip' length 1222237 bytes (1.2 MB)

downloaded 1.2 MB

trying URL 'https://cloud.r-project.org/src/contrib/R.utils_2.12.2.tar.gz' Content type 'application/x-gzip' length 365876 bytes (357 KB)

downloaded 357 KB

trying URL 'https://bioconductor.org/packages/3.17/data/experiment/src/contrib/signatureSearchData_1.14.0.tar.gz' Content type 'application/x-gzip' length 659258 bytes (643 KB)

downloaded 643 KB

The downloaded source packages are in '/tmp/RtmppsjGPK/downloaded_packages' ** help * installing help indices building package indices installing vignettes testing if installed package can be loaded from temporary location checking absolute paths in shared objects and dynamic libraries testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path

The downloaded source packages are in '/tmp/RtmpTQSdAI/downloaded_packages'

sessionInfo() R version 4.3.1 (2023-06-16) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 22.04.3 LTS

Matrix products: default BLAS: /usr/lib/x86_64-linux-gnu/atlas/libblas.so.3.10.3 LAPACK: /usr/lib/x86_64-linux-gnu/atlas/liblapack.so.3.10.3; LAPACK version 3.10.0

locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 [7] LC_PAPER=en_US.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

time zone: Africa/Johannesburg tzcode source: system (glibc)

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

loaded via a namespace (and not attached): [1] BiocManager_1.30.22 compiler_4.3.1 tools_4.3.1

From: Thomas Girke @.> Sent: 2023-10-05 Thursday 16:50 To: girke-lab/signatureSearch @.> Cc: Tromp, Gerard, Prof @. @.>; Author @.***> Subject: Re: [girke-lab/signatureSearch] hard-coded installation path (Issue #17)

CAUTION: This email originated from outside the Stellenbosch University network. Do not click links or open attachments unless you recognize the sender and know the content is safe.

I have never seen this on our systems or from users. Could you sent the output of sessionInfo() after your run into this error.

- Reply to this email directly, view it on GitHubhttps://github.com/girke-lab/signatureSearch/issues/17#issuecomment-1749064886, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGCBWDKQAPFSGS473S2LXYLX53CKDAVCNFSM6AAAAAA5TZZVNCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBZGA3DIOBYGY. You are receiving this because you authored the thread.Message ID: @.**@.>>

The integrity and confidentiality of this email are governed by these terms. Disclaimerhttps://www.sun.ac.za/emaildisclaimer/default.aspx Die integriteit en vertroulikheid van hierdie e-pos word deur die volgende bepalings bere?l. Vrywaringsklousulehttps://www.sun.ac.za/emaildisclaimer/default.aspx

tgirke commented 10 months ago

I see. Since signatureSearch is a Bioconductor package, you want (need) to install it with BiocManager::install(...) as shown here. This applies to all Bioconductor packages.

tgirke commented 10 months ago

,,,

GerardTromp commented 10 months ago

Final note.

The packages that had installation errors when signatureSearch tries to install them as sub-processes, install without error when installed directly [install.packages()/BiocManager::install()].

ERROR: hard-coded installation path: please report to the package maintainer and use '--no-staged-install'

Note the 00new/affyio as a subdirectory. It seems the error stems from that.

Installing affyio and the other missing packages e.g., BiocManager::install(c("affyio","affy", "R.oo", "R.utils", "signatureSearchData" ))

works correctly without error.

Limited log output

It therefore is not signatureSearch per se, but rather installing dependencies as child processes that seems to trigger the error.

Gerard

From: Thomas Girke @.> Sent: 2023-10-05 Thursday 16:50 To: girke-lab/signatureSearch @.> Cc: Tromp, Gerard, Prof @. @.>; Author @.***> Subject: Re: [girke-lab/signatureSearch] hard-coded installation path (Issue #17)

CAUTION: This email originated from outside the Stellenbosch University network. Do not click links or open attachments unless you recognize the sender and know the content is safe.

I have never seen this on our systems or from users. Could you sent the output of sessionInfo() after your run into this error.

- Reply to this email directly, view it on GitHubhttps://github.com/girke-lab/signatureSearch/issues/17#issuecomment-1749064886, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGCBWDKQAPFSGS473S2LXYLX53CKDAVCNFSM6AAAAAA5TZZVNCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBZGA3DIOBYGY. You are receiving this because you authored the thread.Message ID: @.**@.>>

The integrity and confidentiality of this email are governed by these terms. Disclaimerhttps://www.sun.ac.za/emaildisclaimer/default.aspx Die integriteit en vertroulikheid van hierdie e-pos word deur die volgende bepalings bere?l. Vrywaringsklousulehttps://www.sun.ac.za/emaildisclaimer/default.aspx

GerardTromp commented 10 months ago

I just sent a bunch of messages and logs from BiocManager::install.

The upshot is that the error is from the installation of dependencies as child processes from signatureSearch.

Gerard

From: Thomas Girke @.> Sent: 2023-10-05 Thursday 18:54 To: girke-lab/signatureSearch @.> Cc: Tromp, Gerard, Prof @. @.>; Author @.***> Subject: Re: [girke-lab/signatureSearch] hard-coded installation path (Issue #17)

CAUTION: This email originated from outside the Stellenbosch University network. Do not click links or open attachments unless you recognize the sender and know the content is safe.

I see. Since signatureSearch is a Bioconductor package, you want (need) to install it with BiocManager::install(...) as shown herehttps://bioconductor.org/packages/release/bioc/html/signatureSearch.html. This applies to all Bioconductor packages.

- Reply to this email directly, view it on GitHubhttps://github.com/girke-lab/signatureSearch/issues/17#issuecomment-1749308052, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGCBWDI5NAEBUP5IOR3MJD3X53Q3XAVCNFSM6AAAAAA5TZZVNCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBZGMYDQMBVGI. You are receiving this because you authored the thread.Message ID: @.**@.>>

The integrity and confidentiality of this email are governed by these terms. Disclaimerhttps://www.sun.ac.za/emaildisclaimer/default.aspx Die integriteit en vertroulikheid van hierdie e-pos word deur die volgende bepalings bere?l. Vrywaringsklousulehttps://www.sun.ac.za/emaildisclaimer/default.aspx