bxlab / metaWRAP

MetaWRAP - a flexible pipeline for genome-resolved metagenomic data analysis
MIT License
391 stars 191 forks source link

Error: Could not find some dependencies for metawrap-mg #88

Open astrophys opened 5 years ago

astrophys commented 5 years ago

I tried following the instructions for the "Better Installation" and got the below errors. Below is complete output.

qmaster02: Scratch$ conda create --prefix /gpfs0/home/group/user/Scratch/new_conda_env python=2.7
Fetching package metadata: ....
Solving package specifications: .
Package plan for installation in environment /gpfs0/home/group/user/Scratch/new_conda_env:

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    openssl-1.0.2l             |                0         3.2 MB
    sqlite-3.13.0              |                0         4.0 MB
    zlib-1.2.11                |                0         109 KB
    certifi-2016.2.28          |           py27_0         211 KB
    python-2.7.13              |                0        11.5 MB
    setuptools-36.4.0          |           py27_1         557 KB
    wheel-0.29.0               |           py27_0          81 KB
    pip-9.0.1                  |           py27_1         1.6 MB
    ------------------------------------------------------------
                                           Total:        21.2 MB

The following NEW packages will be INSTALLED:

    certifi:    2016.2.28-py27_0
    openssl:    1.0.2l-0
    pip:        9.0.1-py27_1
    python:     2.7.13-0
    readline:   6.2-2            (soft-link)
    setuptools: 36.4.0-py27_1
    sqlite:     3.13.0-0
    tk:         8.5.18-0         (soft-link)
    wheel:      0.29.0-py27_0
    zlib:       1.2.11-0

Proceed ([y]/n)? y

Fetching packages ...
openssl-1.0.2l 100% |#################################################################| Time: 0:00:00  19.66 MB/s
sqlite-3.13.0- 100% |#################################################################| Time: 0:00:00  24.26 MB/s
zlib-1.2.11-0. 100% |#################################################################| Time: 0:00:00   3.88 MB/s
certifi-2016.2 100% |#################################################################| Time: 0:00:00   5.10 MB/s
python-2.7.13- 100% |#################################################################| Time: 0:00:00  27.58 MB/s
setuptools-36. 100% |#################################################################| Time: 0:00:00   8.58 MB/s
wheel-0.29.0-p 100% |#################################################################| Time: 0:00:00   3.37 MB/s
pip-9.0.1-py27 100% |#################################################################| Time: 0:00:00  15.63 MB/s
Extracting packages ...
[      COMPLETE      ]|####################################################################################| 100%
Linking packages ...
[      COMPLETE      ]|####################################################################################| 100%
#
# To activate this environment, use:
# $ source activate /gpfs0/home/group/user/Scratch/new_conda_env
#
# To deactivate this environment, use:
# $ source deactivate
#
qmaster02: Scratch$ source activate /gpfs0/home/group/user/Scratch/new_conda_env
discarding /gpfs0/export/opt/anaconda-2.3.0/bin from PATH
prepending /gpfs0/home/group/user/Scratch/new_conda_env/bin to PATH
(/gpfs0/home/group/user/Scratch/new_conda_env)qmaster02: Scratch$ conda config --add channels defaults
(/gpfs0/home/group/user/Scratch/new_conda_env)qmaster02: Scratch$ conda config --add channels conda-forge
(/gpfs0/home/group/user/Scratch/new_conda_env)qmaster02: Scratch$ conda config --add channels bioconda
(/gpfs0/home/group/user/Scratch/new_conda_env)qmaster02: Scratch$ conda config --add channels ursky
(/gpfs0/home/group/user/Scratch/new_conda_env)qmaster02: Scratch$ conda install -c ursky metawrap-mg
Fetching package metadata: ............
Solving package specifications:
Error: Could not find some dependencies for metawrap-mg: nettle 3.3.*, boost 1.64.0.*, bcftools 1.6.*

Did you mean one of these?

    bcftools

You can search for this package on Binstar with

    binstar search -t conda bcftools 1.6.*

 (and similarly for the other packages)

You may need to install the Binstar command line client with

    conda install binstar
(/gpfs0/home/group/user/Scratch/new_conda_env)qmaster02: Scratch$ which conda
~/Scratch/new_conda_env/bin/conda
(/gpfs0/home/group/user/Scratch/new_conda_env)qmaster02: Scratch$ conda --version
conda 3.14.1
(/gpfs0/home/group/user/Scratch/new_conda_env)qmaster02: Scratch$ python --version
Python 2.7.13 :: Continuum Analytics, Inc.
(/gpfs0/home/group/user/Scratch/new_conda_env)qmaster02: Scratch$

Question : How do I resolve this?

ursky commented 5 years ago

Looks like the dependency versions for nettle, boost, and bcftools are in the wrong nomenclature. For example, bcftools 1.6.* doesn't technically exist because the actual version is 1.6-0. Very annoying and confusing because metawrap does not actually require these dependency versions (and nettle isn't required at all). So I have no idea where these faulty dependencies are coming from. I cant replicate it on my system. Try to install again, but enforcing the version: conda install metawrap-mg=1.0.6

ursky commented 5 years ago

Actually, I see where this is coming from. When the conda builds a new recipe, it automatically adds a .* to any fixed dependency version. However, conda should be smart enough to not literally look for that last period, which makes me think that your conda is just outdated. Try updating to conda v4.5.11 (that's what I have now), and see if it works.

astrophys commented 5 years ago

Upgrading to a more recent version of conda seemed to work. The easiest thing was to install the most recent version of anaconda. Thank you for the help.

ursky commented 5 years ago

Great! Happy it worked out. I'll keep the issue open for visibility.