Open nickp60 opened 1 year ago
Thanks for this, I just encountered the problem as well.
I'm running into this issue as well. I tried downgrading scikit-learn to 1.1 but this gives a warning:
OpenBLAS Warning : Detect OpenMP Loop and this application may hang. Please rebuild the library with USE_OPENMP=1 option.
I haven't tested it fully but I think I resolved this? The dockerfile is here, the key I think is installing libopenblas with conda for a specific build created using OpenMP: https://github.com/vdblab/dockerfiles/blob/main/metawrap/Dockerfile
same
I tried both of these fixes (downgrading sklearn + using the libopenblas openmp build) and they worked. Perhaps it would be worth it to pin the version of scikit-learn as scikit-learn<=1.1,>=0.14.1
on the requirements file?
https://github.com/BinPro/CONCOCT/blob/823dcd670bc42f6ea4622881c2484cda6c253a76/requirements.txt#L11
I tried both of these fixes (downgrading sklearn + using the libopenblas openmp build) and they worked. Perhaps it would be worth it to pin the version of scikit-learn as
scikit-learn<=1.1,>=0.14.1
on the requirements file?https://github.com/BinPro/CONCOCT/blob/823dcd670bc42f6ea4622881c2484cda6c253a76/requirements.txt#L11
Hi Vini @vinisalazar , may I ask how to use the libopenblas openmp build ? anticipating your reply
Hi @fallinwind, I'm installing concoct by creating a conda environment from a yaml file, here's how it looks like:
channels:
- conda-forge
- bioconda
dependencies:
- concoct=1.1.0
- libopenblas=*=openmp*
- mkl
- python>=3
- samtools>=1.9
- scikit-learn=1.1.*
variables:
USE_OPENMP: 1
You can create the environment from such a file with the conda env create
command.
Best, V
I solved it by installing scikit-learn inside concoct_env conda install -c intel scikit-learn
我也遇到了这个问题。我尝试将 scikit-learn 降级到 1.1,但会发出警告:
OpenBLAS Warning : Detect OpenMP Loop and this application may hang. Please rebuild the library with USE_OPENMP=1 option.
Hello, I have encountered the same issue. Have you managed to resolve this problem?
Not sure if this has been noted before, but I tried to install CONCOCT and it pulled scikit-learn 1.2. When running, i got the following error:
This appears to be changed from a warning in version 1.2.
Replacing scikit-learn 1.2 with scikit-learn 1.1 resolved the issue for me.