I'm having issues while trying to install Krona in Anaconda. When I run this line in Anaconda Prompt:
conda install -c bioconda krona
I get this error:
InvalidArchiveError('Error with archive C:\Users\COMPUTER\anaconda3\pkgs\krona-2.8.1.tar.bz2. You probably need to delete and re-download or re-create this file. Message was:\n\nfailed with error: seeking backwards is not allowed')
I've tried to clean tarballs and packages with conda clean -a but I keep getting the same errors when trying to install Krona.
I'm working in Windows 10 and with Conda version 25.9.1.
I don't know what to do. Any ideas?
EDIT: just in case anyone has the same problem, I've ended up installing Strawberry Perl and KronaTools, and running this in cmd or PowerShell:
cd PATH
perl PATH\ImportText.pl -o “krona_output/krona_output.html” “PATH/FILE_NAME.txt:FILE_NAME”
Or, if you have several files and want to create a single Krona plot, run this:
cd PATH
perl PATH\ImportText.pl -o “krona_output/krona_output.html” “PATH/FILE_NAME_1.txt:FILE_NAME_1” “PATH/FILE_NAME_2.txt:FILE_NAME_2” “PATH/FILE_NAME_3.txt:FILE_NAME_3”
For more info, run perl PATH\ImportText.pl.
I guess the krona-2.8.1.tar.bz2. is corrupt, to tackle this problem you could do many attempts:
delete the file manually and try again to install the package.
try this command:
conda clean --tarballs -y
to clean the compressed file that being downloaded with the packages, and then re-download the package.
use conda-forge channel to get the package
use pip instead of conda pip install korna
download the package from github https://github.com/marbl/Krona/releases