Closed mattjeffryes closed 6 years ago
Hi Matt !!
It looks like Numpy doesn't work in the EBI cluster after the update. This is the error I get:
import numpy Traceback (most recent call last): File "
", line 1, in File "/nfs/research2/software/prefix/usr/lib/python2.7/site-packages/numpy/init.py", line 142, in from . import add_newdocs File "/nfs/research2/software/prefix/usr/lib/python2.7/site-packages/numpy/add_newdocs.py", line 13, in from numpy.lib import add_newdoc File "/nfs/research2/software/prefix/usr/lib/python2.7/site-packages/numpy/lib/init.py", line 8, in from .type_check import * File "/nfs/research2/software/prefix/usr/lib/python2.7/site-packages/numpy/lib/type_check.py", line 11, in import numpy.core.numeric as _nx File "/nfs/research2/software/prefix/usr/lib/python2.7/site-packages/numpy/core/init.py", line 14, in from . import multiarray ImportError: librefblas.so.3: cannot open shared object file: No such file or directory
Could you please have a look at it?
Thanks !!
Dani
@demh err, that might have been my fault - fixed now
@mschubert It is working now. Thanks for the quick fix !!
The EBI cluster has been updated. Please post a new issue if you have any problems. I will update the Yoda cluster next weekend.
Hey guys !!
I have some issues again. I am trying to install an R package in the EBI cluster and get the following error:
install.packages('mclust') Installing package into ‘/homes/dem44/R’ (as ‘lib’ is unspecified) trying URL 'http://mirrors.ebi.ac.uk/CRAN/src/contrib/mclust_5.3.tar.gz' Content type 'application/x-gzip' length 2792962 bytes (2.7 MB)
downloaded 2.7 MB
The downloaded source packages are in ‘/tmp/RtmpXjpEL5/downloaded_packages’ Warning message: In install.packages("mclust") : installation of package ‘mclust’ had non-zero exit status
I think it may have something to do with the llapack / lblas libraries after the update. Any ideas?
Thanks !!
Dani
@demh This should be fixed now.
@mattjeffryes It is working now. Thanks Matt !!
Hi guys, I was trying to re-install all the necessary R packages and I keep getting this or similar errors:
> install.packages('plyr')
Installing package into ‘/homes/nvolkova/R’
(as ‘lib’ is unspecified)
also installing the dependency ‘Rcpp’
trying URL 'http://mirrors.ebi.ac.uk/CRAN/src/contrib/Rcpp_0.12.12.tar.gz'
Content type 'application/x-gzip' length 2421289 bytes (2.3 MB)
==================================================
downloaded 2.3 MB
trying URL 'http://mirrors.ebi.ac.uk/CRAN/src/contrib/plyr_1.8.4.tar.gz'
Content type 'application/x-gzip' length 392451 bytes (383 KB)
==================================================
downloaded 383 KB
* installing *source* package ‘Rcpp’ ...
** package ‘Rcpp’ successfully unpacked and MD5 sums checked
** libs
x86_64-pc-linux-gnu-g++ -I/nfs/research2/software/prefix/usr/lib/R/include -DNDEBUG -I../inst/include/ -fpic -O2 -pipe -O2 -pipe -c Date.cpp -o Date.o
x86_64-pc-linux-gnu-g++ -I/nfs/research2/software/prefix/usr/lib/R/include -DNDEBUG -I../inst/include/ -fpic -O2 -pipe -O2 -pipe -c Module.cpp -o Module.o
x86_64-pc-linux-gnu-g++ -I/nfs/research2/software/prefix/usr/lib/R/include -DNDEBUG -I../inst/include/ -fpic -O2 -pipe -O2 -pipe -c Rcpp_init.cpp -o Rcpp_init.o
x86_64-pc-linux-gnu-g++ -I/nfs/research2/software/prefix/usr/lib/R/include -DNDEBUG -I../inst/include/ -fpic -O2 -pipe -O2 -pipe -c api.cpp -o api.o
x86_64-pc-linux-gnu-g++ -I/nfs/research2/software/prefix/usr/lib/R/include -DNDEBUG -I../inst/include/ -fpic -O2 -pipe -O2 -pipe -c attributes.cpp -o attributes.o
x86_64-pc-linux-gnu-g++ -I/nfs/research2/software/prefix/usr/lib/R/include -DNDEBUG -I../inst/include/ -fpic -O2 -pipe -O2 -pipe -c barrier.cpp -o barrier.o
x86_64-pc-linux-gnu-g++ -shared -L/nfs/research2/software/prefix/usr/lib/R/lib -Wl,-O1 -Wl,-rpath=/nfs/research2/software/prefix/usr/lib/R/lib -o Rcpp.so Date.o Module.o Rcpp_init.o api.o attributes.o barrier.o -L/nfs/research2/software/prefix/usr/lib/R/lib -lR
installing to /homes/nvolkova/R/Rcpp/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (Rcpp)
* installing *source* package ‘plyr’ ...
** package ‘plyr’ successfully unpacked and MD5 sums checked
** libs
x86_64-pc-linux-gnu-g++ -I/nfs/research2/software/prefix/usr/lib/R/include -DNDEBUG -I"/homes/nvolkova/R/Rcpp/include" -fpic -O2 -pipe -O2 -pipe -c RcppExports.cpp -o RcppExports.o
x86_64-pc-linux-gnu-gcc -I/nfs/research2/software/prefix/usr/lib/R/include -DNDEBUG -I"/homes/nvolkova/R/Rcpp/include" -fpic -O2 -pipe -O2 -pipe -c loop_apply.c -o loop_apply.o
loop_apply.c: In function 'loop_apply_':
loop_apply.c:15:3: error: 'for' loop initial declarations are only allowed in C99 mode
for(int i = 0; i < n1; i++) {
^
loop_apply.c:15:3: note: use option -std=c99 or -std=gnu99 to compile your code
make: *** [/nfs/research2/software/prefix/usr/lib/R/etc/Makeconf:159: loop_apply.o] Error 1
ERROR: compilation failed for package ‘plyr’
* removing ‘/homes/nvolkova/R/plyr’
The downloaded source packages are in
‘/tmp/RtmpmcqI88/downloaded_packages’
Warning message:
In install.packages("plyr") :
installation of package ‘plyr’ had non-zero exit status
How do I get around that compilation flag? Thanks in advance for any advice!
@nvolkova Hi Nadia, I'm not seeing this issue myself, but I've found some discussion of this problem. I've added the -std=gnu99
flag to GCC in $PREFIX/usr/lib/R/etc/Makeconf
. Please try installing the package now. Maybe @mschubert can advise on how ill-advised my solution is.
Err, don't. That will add the flag to all R packages compiled by the prefix gcc, which will sooner or later break other packages - and then the error message will not be as helpful.
Likely something borked in your environment, have you tried starting R from the prefix shell?
Otherwise, much better to set CFLAGS
environment temporarily.
It's been a while since the last update (sorry). I'll be updating Yoda and then the EBI cluster over the bank holiday weekend. Here are the anticipated changes for Yoda:
And for the EBI cluster: