Error when installing picrust2 plugin

I’m trying to install the plugin for picrust2. I already ahve qiime2-2019.7 installed. I try running the command and I run into issues:

conda install q2-picrust2=2019.7 -c conda-forge -c bioconda -c gavinmdouglas 

I get an error that says:
LinkError: post-link script failed for package bioconda::picrust2-2.2.0_b-py_0
location of failed script: /home/crharris/miniconda3/envs/qiime2-2019.7/bin/.picrust2-post-link.sh
==> script messages <==
ERROR: post-link.sh was unable to download /home/crharris/miniconda3/envs/qiime2-2019.7/staging/v2.2.0-b.tar.gz with the sha256 c41e1f487b33179f4aecede50cfd8b652aa3cef2ea1ae5fd022f531c7d549097 from https://github.com/picrust/picrust2/archive/v2.2.0-b.tar.gz.

==> script output <==
stdout: /home/crharris/miniconda3/envs/qiime2-2019.7/staging/v2.2.0-b.tar.gz: FAILED

stderr: QIIME is caching your current deployment for improved performance. This may take a few moments and should only happen once per deployment.
–2020-01-06 08:45:59-- https://github.com/picrust/picrust2/archive/v2.2.0-b.tar.gz
Resolving github.com (github.com)… 192.30.253.113
Connecting to github.com (github.com)|192.30.253.113|:443… connected.
ERROR: cannot verify github.com’s certificate, issued by ‘[email protected],CN=A10_DEN1_SSLi_Cert,OU=ESN,O=Department of the Interior,L=Denver,ST=Co,C=US’:
Unable to locally verify the issuer’s authority.
To connect to github.com insecurely, use `–no-check-certificate’.
sha256sum: WARNING: 1 of 1 computed checksum did NOT match

I have no idea what to do. I tried downloading the file straight from the link. When I do that, the file is a different name than what the error says: picrust2-2.2.0-b.tar.gz instead of v2.2.0-b.tar.gz. When I look at my file location within the conda environment, the v2.2.0-b.tar.gz file is there. I truly have no idea what’s going on or how to fix it.

Sorry for all the text, but I wanted to make sure I included all the details. I hope this isn’t too confusing!

Welcome to the forum @crharris!

I am just pinging the picrust2 developer to take a look @gmdouglas

Thanks!

1 Like

Hey @crharris,

I haven’t been able to reproduce this problem and I’m hoping it was just a transient problem with GitHub - you could try re-installing the tool to see if that error occurs again.

For some reason it’s starting to download the required file for PICRUSt2 but then stopping, possibly due to these warnings:

ERROR: cannot verify github.com’s certificate, issued by ‘[email protected],CN=A10_DEN1_SSLi_Cert,OU=ESN,O=Department of the Interior,L=Denver,ST=Co,C=US’:
Unable to locally verify the issuer’s authority.
To connect to github.com insecurely, use `–no-check-certificate’.

One solution might be to install PICRUSt2 from source, which you can do here: https://github.com/picrust/picrust2/wiki/Installation#install-from-source

Note that rather than the conda env create command you can run conda env update to update the environment you’re working in with that .yml file (rather than creating a totally new environment as described there). After installing PICRUSt2 into this environment you should be able to install the plugin using the original command.

Best,

Gavin