Safety errors when installing Qiime2.

Hello,

I'm trying to install qiime2-2023.5 using these instructions. I already have miniconda3 installed so that's the only part of the instructions I didn't follow. Otherwise, I updated my conda, wget'ed the yml file and ran conda env create -n qiime2-2023.5 --file qiime2-2023.5-py38-linux-conda.yml to install qiime2. But I am getting the following errors. Judging by what they say, I don't think it's a big deal but the installation is stuck at the Executing transaction: / step.

[ taruna@knot] ~
$ conda env create -n qiime2-2023.5 --file qiime2-2023.5-py38-linux-conda.yml
Collecting package metadata (repodata.json): done
Solving environment: done

Downloading and Extracting Packages

Preparing transaction: done
Verifying transaction: \
SafetyError: The package for platformdirs located at /home/taruna/miniconda3/pkgs/platformdirs-3.5.1-pyhd8ed1ab_0
appears to be corrupted. The path 'site-packages/platformdirs-3.5.1.dist-info/licenses/LICENSE'
has an incorrect size.
  reported size: 1089 bytes
  actual size: 0 bytes

SafetyError: The package for platformdirs located at /home/taruna/miniconda3/pkgs/platformdirs-3.5.1-pyhd8ed1ab_0
appears to be corrupted. The path 'site-packages/platformdirs/macos.py'
has an incorrect size.
  reported size: 3329 bytes
  actual size: 0 bytes

SafetyError: The package for platformdirs located at /home/taruna/miniconda3/pkgs/platformdirs-3.5.1-pyhd8ed1ab_0
appears to be corrupted. The path 'site-packages/platformdirs/windows.py'
has an incorrect size.
  reported size: 8612 bytes
  actual size: 0 bytes

done
Executing transaction: /

Please advise. Thank you very much for your help in advance!

Taruna

Hi @tschuelke,

Thanks for reaching out! These SafetyError messages typically pop up when you have existing packages on your machine that are competing with the package versions included in your installation of QIIME 2. It is interesting that the actual size for these packages are 0 bytes though.

Can you run the following commands and provide the output(s) in your response:

which conda
conda env list

Thanks! :lizard:

Hello @lizgehret - sorry for the delay in responding. I was working on a different project so I couldn't finish Qiime2 install. But here are the results from the commands you asked me to run.

which conda 
~/miniconda3/bin/conda
conda env list

# conda environments:
#
base                  *  /home/taruna/miniconda3
antismash                /home/taruna/miniconda3/envs/antismash
anvio                    /home/taruna/miniconda3/envs/anvio
anvio-7.1                /home/taruna/miniconda3/envs/anvio-7.1
autometa                 /home/taruna/miniconda3/envs/autometa
bbmap                    /home/taruna/miniconda3/envs/bbmap
bbtools                  /home/taruna/miniconda3/envs/bbtools
bioawk                   /home/taruna/miniconda3/envs/bioawk
bowtie2                  /home/taruna/miniconda3/envs/bowtie2
braulio                  /home/taruna/miniconda3/envs/braulio
checkm                   /home/taruna/miniconda3/envs/checkm
concoct                  /home/taruna/miniconda3/envs/concoct
coverm                   /home/taruna/miniconda3/envs/coverm
coverm-v0.6.1            /home/taruna/miniconda3/envs/coverm-v0.6.1
drep                     /home/taruna/miniconda3/envs/drep
fastani                  /home/taruna/miniconda3/envs/fastani
fastx_toolkit            /home/taruna/miniconda3/envs/fastx_toolkit
fegenie                  /home/taruna/miniconda3/envs/fegenie
graphbin                 /home/taruna/miniconda3/envs/graphbin
gtdbtk                   /home/taruna/miniconda3/envs/gtdbtk
gtdbtk-2.3.0             /home/taruna/miniconda3/envs/gtdbtk-2.3.0
hmmer-v3.3.2             /home/taruna/miniconda3/envs/hmmer-v3.3.2
idba-du                  /home/taruna/miniconda3/envs/idba-du
kaiju                    /home/taruna/miniconda3/envs/kaiju
maxbin2                  /home/taruna/miniconda3/envs/maxbin2
megahit                  /home/taruna/miniconda3/envs/megahit
metabat2                 /home/taruna/miniconda3/envs/metabat2
mosdepth                 /home/taruna/miniconda3/envs/mosdepth
mummer4                  /home/taruna/miniconda3/envs/mummer4
orthofinder-v2.5.4       /home/taruna/miniconda3/envs/orthofinder-v2.5.4
prokka-v1.14.5           /home/taruna/miniconda3/envs/prokka-v1.14.5
qiime2-2023.5            /home/taruna/miniconda3/envs/qiime2-2023.5
quast                    /home/taruna/miniconda3/envs/quast
samtools                 /home/taruna/miniconda3/envs/samtools
seqtk                    /home/taruna/miniconda3/envs/seqtk
sibeliaz                 /home/taruna/miniconda3/envs/sibeliaz
sourmash                 /home/taruna/miniconda3/envs/sourmash
spades                   /home/taruna/miniconda3/envs/spades
trimal                   /home/taruna/miniconda3/envs/trimal

Please let me know what you think.

Hello,

it looks like there were some issues downloading packages from conda, or the operation was interrupted. Now conda wants to use cache all the time, but it's corrupted. To fix it:

  • remove qiime2 env
  • run conda clean -a
  • install qiime2

Cheers
V

Hi @crusher083 - thank you for your suggestions. I tried those commands, however, now I'm getting a core dumped error.

$ qiime --help
QIIME is caching your current deployment for improved performance. This may take a few moments and should only happen once per deployment.
Illegal instruction (core dumped)

Any thoughts on how I can fix this? Thank you!

Hello,

Here @ebolyen summarized the problem, there is not much I can help with. QIIME is caching your current deployment.....Illegal instruction (core dumped) - #78 by ebolyen

Cheers
V

Thank you very much, @crusher083! Fortunately I have access to another cluster on which I was able to install Qiime2 without issues. I will read through the thread you shared. Thank you for sharing!

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.