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

installation issue for sourmash #41

Open
mars188 opened this issue Nov 11, 2021 · 10 comments
Open

installation issue for sourmash #41

mars188 opened this issue Nov 11, 2021 · 10 comments

Comments

@mars188
Copy link

mars188 commented Nov 11, 2021

Hello,

I want to use MAGpy for my metagenomic data analysis but get the error at a very early stage. My command is here:
git clone https://github.com/WatsonLab/MAGpy.git
cd MAGpy
conda env create -f envs/install.yaml
This succesfully creates a conda environment.

I activated the environment
conda activate maypy_install

Then ran the following command:
nakemake -rp -s MAGpy --cores 24 --use-conda test
But get the following error:
`Building DAG of jobs...
Creating conda environment envs/prodigal.yaml...
Downloading and installing remote packages.
Environment for envs/prodigal.yaml created (location: .snakemake/conda/55c7ff22b092c19217e5f2ec3f9e4209)
Creating conda environment envs/bioperl.yaml...
Downloading and installing remote packages.
Environment for envs/bioperl.yaml created (location: .snakemake/conda/a38998cd23e9ca04e9db80dcbfc6e82c)
Creating conda environment envs/pfam_scan.yaml...
Downloading and installing remote packages.
Environment for envs/pfam_scan.yaml created (location: .snakemake/conda/31f109d7845f53d8b16f172a493949bd)
Creating conda environment envs/phylophlan.yaml...
Downloading and installing remote packages.
Environment for envs/phylophlan.yaml created (location: .snakemake/conda/d1d3c5ec64b4c2330ba4a92faf2e0eb3)
Creating conda environment envs/diamond.yaml...
Downloading and installing remote packages.
Environment for envs/diamond.yaml created (location: .snakemake/conda/8435cfd2ff926a9883cafbdc8d09837d)
Creating conda environment envs/sourmash.yaml...
Downloading and installing remote packages.
CreateCondaEnvironmentException:
Could not create conda environment from /scratch/gencore/ma5877/MAGs/MAGpy/envs/sourmash.yaml:
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
Encountered problems while solving:

  • package sourmash-4.1.1-hdfd78af_0 requires matplotlib-base, but none of the providers can be installed`

Please help in solving this issue. Many thanks in advance!

@mw55309
Copy link
Member

mw55309 commented Nov 11, 2021

Hello

Can you try just this:

conda env create -f envs/sourmash.yaml

It just worked for me

Collecting package metadata (repodata.json): done
Solving environment: done

Downloading and Extracting Packages
openssl-3.0.0        | 2.9 MB    | ######################################################################################################################################### | 100%
sourmash-4.1.1       | 6 KB      | ######################################################################################################################################### | 100%
libgfortran-ng-11.2. | 19 KB     | ######################################################################################################################################### | 100%
matplotlib-base-3.4. | 7.3 MB    | ######################################################################################################################################### | 100%
libcblas-3.9.0       | 12 KB     | ######################################################################################################################################### | 100%
sourmash-minimal-4.1 | 7.5 MB    | ######################################################################################################################################### | 100%
python-3.9.7         | 27.5 MB   | ######################################################################################################################################### | 100%
libffi-3.4.2         | 57 KB     | ######################################################################################################################################### | 100%
tzdata-2021e         | 121 KB    | ######################################################################################################################################### | 100%
liblapack-3.9.0      | 12 KB     | ######################################################################################################################################### | 100%
certifi-2021.10.8    | 145 KB    | ######################################################################################################################################### | 100%
numpy-1.21.4         | 6.2 MB    | ######################################################################################################################################### | 100%
libdeflate-1.8       | 67 KB     | ######################################################################################################################################### | 100%
pycparser-2.21       | 100 KB    | ######################################################################################################################################### | 100%
tornado-6.1          | 646 KB    | ######################################################################################################################################### | 100%
screed-1.0.5         | 85 KB     | ######################################################################################################################################### | 100%
lerc-3.0             | 216 KB    | ######################################################################################################################################### | 100%
libtiff-4.3.0        | 614 KB    | ######################################################################################################################################### | 100%
deprecation-2.1.0    | 14 KB     | ######################################################################################################################################### | 100%
pyparsing-3.0.5      | 78 KB     | ######################################################################################################################################### | 100%
cycler-0.11.0        | 10 KB     | ######################################################################################################################################### | 100%
bz2file-0.98         | 9 KB      | ######################################################################################################################################### | 100%
scipy-1.7.2          | 22.1 MB   | ######################################################################################################################################### | 100%
libblas-3.9.0        | 12 KB     | ######################################################################################################################################### | 100%
libopenblas-0.3.18   | 9.6 MB    | ######################################################################################################################################### | 100%
kiwisolver-1.3.2     | 80 KB     | ######################################################################################################################################### | 100%
setuptools-58.5.3    | 1011 KB   | ######################################################################################################################################### | 100%
libgfortran5-11.2.0  | 1.7 MB    | ######################################################################################################################################### | 100%
pip-21.3.1           | 1.2 MB    | ######################################################################################################################################### | 100%
cffi-1.15.0          | 227 KB    | ######################################################################################################################################### | 100%
cachetools-4.2.4     | 12 KB     | ######################################################################################################################################### | 100%
pillow-8.4.0         | 706 KB    | ######################################################################################################################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: \

@mars188
Copy link
Author

mars188 commented Nov 12, 2021

Thank you for pasting your results. It seems like installation goes well but I get few packages compared to what you have. My installing output is here:

Downloading and Extracting Packages botocore-1.23.4 | 5.0 MB | ################################################################################################################################################################################################## | 100% libxcb-1.13 | 391 KB | ################################################################################################################################################################################################## | 100% google-cloud-core-2. | 27 KB | ################################################################################################################################################################################################## | 100% boto3-1.20.3 | 71 KB | ################################################################################################################################################################################################## | 100% Preparing transaction: done Verifying transaction: done Executing transaction: /

And when I try to run the test i get another error:
`CreateCondaEnvironmentException:
Could not create conda environment from /scratch/gencore/ma5877/MAGs/MAGpy/envs/ete3.yaml:
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
Encountered problems while solving:

  • package ete3-3.1.2-pyh9f0ad1d_0 requires pyqt >=4.11.*, but none of the providers can be installed`

So can you please share the text of your "sourmash.yaml"? I think I may be missing something.

more envs/sourmash.yaml

Many thanks,

@mars188
Copy link
Author

mars188 commented Nov 12, 2021

My "sourmash.yaml" file looks like this:
`(base) [gencore@compute-15-1 MAGpy]$ :more envs/sourmash.yaml
name: sourmash
channels:

  • conda-forge
  • bioconda
  • defaults
    dependencies:
  • sourmash=4.1.1`

@mw55309
Copy link
Member

mw55309 commented Nov 16, 2021

Just to confirm that the magpy_install and test commands ran to completion for me yesterday with no problems

This may be a problem with your conda setup....

@mars188
Copy link
Author

mars188 commented Nov 16, 2021

Ok, thanks for letting me know. I am going to download a new miniconda, and start everything from scratch. Hope it would work this time. Will update you. Many thanks for your time.

@mw55309
Copy link
Member

mw55309 commented Nov 16, 2021 via email

@mars188
Copy link
Author

mars188 commented Nov 16, 2021

I'm running on HPC on commandline.

@mars188
Copy link
Author

mars188 commented Nov 16, 2021

So linux I guess...

@mars188
Copy link
Author

mars188 commented Nov 18, 2021

Ok, I downloaded the new miniconda, set up the new environment but get the same error again.

Not sure what's wrong with my conda set up :(

@mw55309
Copy link
Member

mw55309 commented Nov 18, 2021 via email

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

No branches or pull requests

2 participants