jessieren / DeepVirFinder

Identifying viruses from metagenomic data by deep learning
Other
116 stars 32 forks source link

issue installing using conda, python=2.7 required #35

Open dluecking opened 2 years ago

dluecking commented 2 years ago

Hi everyone,

I'm running into a problem when installing dvf on a server:

mamba install python=3.8 numpy theano=1.0.3 keras=2.2.4 scikit-learn Biopython h5py
...
Encountered problems while solving:
  - package theano-1.0.3-py27_0 requires python >=2.7,<2.8.0a0, but none of the providers can be installed

I've tried adjusting the versions of theano to 1.0.5, but then keras runs into an error

  - package keras-2.2.4-0 requires keras-base 2.2.4.*, but none of the providers can be installed

And when adding keras-base, we finally hit a dead end when keras-base requires python=2.7 which is (see https://stackoverflow.com/questions/67595045/how-can-i-install-two-versions-of-python-on-a-single-conda-environment) not possible to install when we need python=3.6 at the same time.

  - package keras-base-2.2.4-py27_0 requires python >=2.7,<2.8.0a0, but none of the providers can be installed

Am I missing something obvious? Thank you, any help is greatly appreciated! Cheers

dluecking commented 2 years ago

Update: Set keras to version 2.9.0, now I run into another error:

(dvf) [12:47:37] ~/.../results/11_SRF/contigs $ python ~/bin/DeepVirFinder/dvf.py -i virome.contigs.filtered.fasta -o dvf -l 2000 -c 8
Traceback (most recent call last):
  File "/home/dlueckin/bin/DeepVirFinder/dvf.py", line 52, in <module>
    import h5py, multiprocessing
ModuleNotFoundError: No module named 'h5py'

But I guess thats not on your side, since someone else has a similar issue unrelated to dvf (https://stackoverflow.com/questions/70856913/i-cannot-import-h5py-although-installed).

Still, the mamba/conda install is not working on my system, maybe someone can update the required dependencies.

Thanks and all the best!