I'm having the same problem. I created an environment for lefse using conda, and also tried to install r-survival in that environment. But the error is still there.
On Friday, October 27, 2017 at 9:00:02 AM UTC-4, Tobi wrote:Hi everyone,
i tried to install LEfSe using conda in a completely new conda environment.
conda create -n lefse lefse python=2.7
Using the run.sh script from the Bitbucket Repo I wanted to test the installation. Therefore I changed the script so that the installed commands can be found correctly.
Sadly, running the script gives me the following error:
./run.sh: line 24: 12622 Segmentation fault (core dumped) run_lefse.py hmp_aerobiosis_small.in hmp_aerobiosis_small.res
I tried installing rpy2 2.4.2 as suggested here using pip since conda does not provide the old version of rpy2. Running the script again now leads to the following error:
Traceback (most recent call last):
File "/working2/tuem/miniconda3/envs/lefse/bin/run_lefse.py", line 4, in <module>
from lefse import *
File "/working2/tuem/miniconda3/envs/lefse/share/lefse-1.0.8.post1-0/lefse.py", line 3, in <module>
import rpy2.robjects as robjects
File "/working2/tuem/miniconda3/envs/lefse/lib/python2.7/site-packages/rpy2/robjects/__init__.py", line 15, in <module>
import rpy2.rinterface as rinterface
File "/working2/tuem/miniconda3/envs/lefse/lib/python2.7/site-packages/rpy2/rinterface/__init__.py", line 101, in <module>
from rpy2.rinterface._rinterface import *
ImportError: libicui18n.so.58: cannot open shared object file: No such file or directory
This error seemed to be related to this, so I added a .condarc file with tho following content:
channels:
- bioconda
- r
- conda-forge
- defaults
Next, I updated the whole environment using conda update -all and tried running the script again.
Now I get the following error:
/working2/tuem/miniconda3/envs/lefse/lib/python2.7/site-packages/rpy2/robjects/functions.py:106: UserWarning: Error : Function found when exporting methods from the namespace ‘Matrix’ which is not S4 generic: ‘as.vector’
res = super(Function, self).__call__(*new_args, **new_kwargs)
/working2/tuem/miniconda3/envs/lefse/lib/python2.7/site-packages/rpy2/robjects/functions.py:106: UserWarning: In addition:
res = super(Function, self).__call__(*new_args, **new_kwargs)
/working2/tuem/miniconda3/envs/lefse/lib/python2.7/site-packages/rpy2/robjects/functions.py:106: UserWarning: Warning message:
res = super(Function, self).__call__(*new_args, **new_kwargs)
/working2/tuem/miniconda3/envs/lefse/lib/python2.7/site-packages/rpy2/robjects/functions.py:106: UserWarning: package ‘survival’ was built under R version 3.4.2
res = super(Function, self).__call__(*new_args, **new_kwargs)
/working2/tuem/miniconda3/envs/lefse/lib/python2.7/site-packages/rpy2/robjects/functions.py:106: UserWarning: Error: package or namespace load failed for ‘survival’
res = super(Function, self).__call__(*new_args, **new_kwargs)
Traceback (most recent call last):
File "/working2/tuem/miniconda3/envs/lefse/bin/run_lefse.py", line 56, in <module>
init()
File "/working2/tuem/miniconda3/envs/lefse/share/lefse-1.0.7-1/lefse.py", line 12, in init
robjects.r('library(survival)')
File "/working2/tuem/miniconda3/envs/lefse/lib/python2.7/site-packages/rpy2/robjects/__init__.py", line 321, in __call__
res = self.eval(p)
File "/working2/tuem/miniconda3/envs/lefse/lib/python2.7/site-packages/rpy2/robjects/functions.py", line 178, in __call__
return super(SignatureTranslatedFunction, self).__call__(*args, **kwargs)
File "/working2/tuem/miniconda3/envs/lefse/lib/python2.7/site-packages/rpy2/robjects/functions.py", line 106, in __call__
res = super(Function, self).__call__(*new_args, **new_kwargs)
rpy2.rinterface.RRuntimeError: Error: package or namespace load failed for ‘survival’
I could not find a way to solve this error.
Is there anything I need to change in my installation process to get LEfSe to work on my machine? Any help is appreciated!
Best wishes,
Tobi