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

Unable to install through anaconda #120

Open
Angelos-Gk opened this issue Mar 20, 2024 · 8 comments
Open

Unable to install through anaconda #120

Angelos-Gk opened this issue Mar 20, 2024 · 8 comments
Labels
documentation Improvements or additions to documentation

Comments

@Angelos-Gk
Copy link

Hi everyone, first of all I am on MacOS (Sonoma Version 14.4). I am trying to install cellsnp-lite through anaconda by using the suggested command:

conda install -c bioconda cellsnp-lite

However the output that I get is this:

Channels:

  • bioconda
  • conda-forge
  • defaults
    Platform: osx-arm64
    Collecting package metadata (repodata.json): done
    Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  • cellsnp-lite

Current channels:

To search for alternate channels that may provide the conda package you're
looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

I have tried updating anaconda or creating new environments but it still produces the same error.
Also when I try to search for the package:
conda search cellsnp-lite
Loading channels: done
No match found for: cellsnp-lite. Search: cellsnp-lite

My question is, has the package been retracted from anaconda/bioconda?

@Sharm8
Copy link

Sharm8 commented Mar 20, 2024

I'm having the same issue on a linux HPC.

@hxj5
Copy link
Collaborator

hxj5 commented Mar 20, 2024

Hi, searching and installing cellsnp-lite work well on my Linux HPC. Can you try installing again? or you may report the issue to bioconda.

FYI, my conda version is 4.12.0 (with anaconda3). The conda channels are (conda config --show channels):

channels:
  - conda-forge
  - bioconda
  - defaults

@Sharm8
Copy link

Sharm8 commented Mar 21, 2024

Hi! It worked for me when I set "conda config --set channel_priority flexible" as I had it set to "strict" before. Thank you for your help!

@Angelos-Gk
Copy link
Author

Update:
I completely uninstalled anaconda and installed miniconda instead. I still get the package not found error. When i run the "conda search" command, in order to get a list of all the installable packages (installable not installed) cellsnp-lite does not appear on the list. For some reason, other bioconda/conda-forge packages appear, but not this specific one. Does anybody have any solutions to this? I tried compiling from source but I get an error during the compiling, which I think it has to do with the architecture of my system os-arm64. Any ideas? (ideally i would like to manage to install through conda)

@hxj5
Copy link
Collaborator

hxj5 commented Mar 26, 2024

Hi, it seems bioconda does not compile packages for osx-arm64 platform, according to this conda issue (Feb, 2022). You may try setting up an osx-64 (intel) conda env and then installing cellsnp-lite on your ARM Mac, as suggested in the stackoverflow threads conda package not found ... and How to set up a conda osx-64 environment on ARM mac?.

@Angelos-Gk
Copy link
Author

Thank you very much!! As it seems, the different architecture was the issue. As soon as I tried creating a new environment and specifying a different architecture, the issue was resolved and I was able to install cellsnp-lite.

@hxj5 hxj5 added the documentation Improvements or additions to documentation label Mar 26, 2024
@kevinrue
Copy link

kevinrue commented Apr 9, 2024

Hi, searching and installing cellsnp-lite work well on my Linux HPC. Can you try installing again? or you may report the issue to bioconda.

FYI, my conda version is 4.12.0 (with anaconda3). The conda channels are (conda config --show channels):

channels:
  - conda-forge
  - bioconda
  - defaults

Had the same issue, and listing conda-forge before bioconda did the trick for me!

My conda yaml:

name: cellsnp_lite
channels:
  - conda-forge # note the importance listing conda-forge first
  - bioconda
  - defaults
dependencies:
  - cellsnp-lite

@roshni-b
Copy link

Also had the architecture issue, am on osx-arm, configured the conda env for os-x with conda config --env --set subdir osx-64 and it then worked fine.

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

No branches or pull requests

5 participants