Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError #14

Closed
Ahmed-Shibl opened this issue Mar 3, 2021 · 3 comments · Fixed by #17
Closed

ModuleNotFoundError #14

Ahmed-Shibl opened this issue Mar 3, 2021 · 3 comments · Fixed by #17
Labels

Comments

@Ahmed-Shibl
Copy link

Hi EukRep developers,
Thanks for this useful tool! I've been trying to use EukRep on a metagenomic assembly but I keep running into an error.

Here's the command I used:

EukRep -i ~/miniconda3/envs/spades/M6-coral_assembly/scaffolds.fasta -o ~/miniconda3/envs/eukrep/M6-coral/Eukrep_output_spades_M6.fa --prokarya ~/miniconda3/envs/eukrep/M6-coral/Prok_output_spades_M6.fa

And this is the error I keep getting:

Traceback (most recent call last):
  File "~/miniconda3/bin/EukRep", line 17, in <module>
    EukRep.main(args)
  File "~/miniconda3/lib/python3.8/site-packages/EukRep/EukRep.py", line 37, in main
    model = pickle.load(args.model)
ModuleNotFoundError: No module named 'sklearn.svm.classes'

Running pip install scikit-learn gives me this:

Requirement already satisfied: scikit-learn in ~/miniconda3/lib/python3.8/site-packages (0.24.1)
Requirement already satisfied: numpy>=1.13.3 in ~/miniconda3/lib/python3.8/site-packages (from scikit-learn) (1.20.1)
Requirement already satisfied: threadpoolctl>=2.0.0 in ~/miniconda3/lib/python3.8/site-packages (from scikit-learn) (2.1.0)
Requirement already satisfied: joblib>=0.11 in ~/miniconda3/lib/python3.8/site-packages (from scikit-learn) (1.0.1)
Requirement already satisfied: scipy>=0.19.1 in ~/miniconda3/lib/python3.8/site-packages (from scikit-learn) (1.6.1)
Requirement already satisfied: numpy>=1.13.3 in ~/miniconda3/lib/python3.8/site-packages (from scikit-learn) (1.20.1)

Any ideas on how to get around this, @patrickwest?

Thanks in advance

@carolinasuarez
Copy link

I had the same issue. Downgrading scikit-learn seems to work
pip install scikit-learn==0.19.2

@fulaibaowang
Copy link

I also had the ModuleNotFoundError issue and it occurred an error when I downgraded the scikit-learn. Now I installed Eukrep in a conda environment and it worked.
conda install Eukrep

@rotoscan
Copy link

rotoscan commented Oct 1, 2021

I suggest the use of a conda environment like so:

conda create -y -n eukrep-env -c bioconda scikit-learn==0.19.2 eukrep

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants