saketkc / pysradb

Package for fetching metadata and downloading data from SRA/ENA/GEO
https://saketkc.github.io/pysradb
BSD 3-Clause "New" or "Revised" License
303 stars 49 forks source link

[BUG] linux-64 Conda version out of date #184

Closed half-adder closed 1 year ago

half-adder commented 1 year ago

Describe the bug The linux-64 version of pysradb is 0.9.0 whereas the other versions are 2.0.0

saketkc commented 1 year ago

Thanks for the bug report. When you install it on linux-64, does it not install 2.0.0?

half-adder commented 1 year ago

Correct. If I don't specify, it installs as 0.9.0. If I specify noarch via mamba install bioconda/noarch::pysradb it installs as 0.9.7

half-adder commented 1 year ago

This is the output of cat /etc/os-release:

NAME="Red Hat Enterprise Linux"
VERSION="8.7 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.7"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.7 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/8/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.7
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.7"
saketkc commented 1 year ago

You are right about the files on conda being out of sync, but I think it should prefer the noarch builds over other builds.

Could it be the way your channel preferences are set? I just tried it on a linux-64 machine and it seems to install 2.0.0:

$ mamba create -n pysradb_bio pysradb
Looking for: ['pysradb']

bioconda/noarch                                               No change
bioconda/linux-64                                             No change
pkgs/r/linux-64                                               No change
pkgs/main/noarch                                              No change
pkgs/r/noarch                                                 No change
pkgs/main/linux-64                                   5.4MB @   4.5MB/s  1.3s
conda-forge/noarch                                  11.6MB @   3.9MB/s  3.1s
conda-forge/linux-64                                30.3MB @   5.1MB/s  6.5s

....

pysradb                 2.0.0  pyhdfd78af_0         bioconda/noarch           156kB

Here are the bioconda recommendations for setting the channel priority (not sure that is the issue though):

conda config --add channels defaults
conda config --add channels bioconda
conda config --add channels conda-forge
conda config --set channel_priority strict
saketkc commented 1 year ago

I would also recommend installing it in a new environment to rule out conflicts with other packages (forcing a previous version), unless you have already tried that.

half-adder commented 1 year ago

Installing from a fresh install worked, using mamba create -n pysradb_bio -c bioconda pysradb

saketkc commented 1 year ago

Thanks, I guess that's resolved then.