yatisht / usher

Ultrafast Sample Placement on Existing Trees
MIT License
123 stars 42 forks source link

Several attempts at installation fail #374

Open terrycojones opened 6 months ago

terrycojones commented 6 months ago

I just tried to follow the installation instructions at https://usher-wiki.readthedocs.io/en/latest/QuickStart.html I tried three things, none of which worked.

  1. Following the Quick install commands, conda install usher fails:
$ conda install usher
Channels:
 - conda-forge
 - bioconda
 - defaults
Platform: osx-arm64
Collecting package metadata (repodata.json): done
Solving environment: failed

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

  - usher

Current channels:

  - https://conda.anaconda.org/conda-forge
  - https://conda.anaconda.org/bioconda
  - defaults

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.
  1. I then tried the conda local build / git clone approach, and three required packages are not found:
$ conda env create -f environment.yml
                                   conda activate usher
Channels:
 - conda-forge
 - bioconda
 - anaconda
 - defaults
Platform: osx-arm64
Collecting package metadata (repodata.json): done
Solving environment: failed

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

  - isa-l
  - mafft
  - protobuf=3.12.3*

Current channels:

  - https://conda.anaconda.org/conda-forge/osx-arm64
  - https://conda.anaconda.org/bioconda/osx-arm64
  - https://conda.anaconda.org/anaconda/osx-arm64
  - https://repo.anaconda.com/pkgs/main/osx-arm64
  - https://repo.anaconda.com/pkgs/r/osx-arm64

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.
  1. After that I used brew install docker (I'm on OS X) to install docker, and got this when following the install instructions
$ docker pull pathogengenomics/usher:latest
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

in this final case I guess I need to start a daemon somehow (it would be good if your instructions mentioned this).

  1. I didn't try the other "Installation scripts" approach, because https://github.com/yatisht/usher/issues/369 leads me to think that it won't work, either.
liamxg commented 6 months ago

Dear @terrycojones,

Me too.

conda install usher Retrieving notices: ...working... done Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source. Collecting package metadata (repodata.json): failed

NotWritableError: The current user does not have write permissions to a required path. path: /Users/liam/opt/miniconda3/pkgs/cache/3e39a7aa.json uid: 501 gid: 20

yatisht commented 6 months ago

Did you run all commands listed in the instructions:

# Create a new environment for UShER
conda create -n usher-env
# Activate the newly created environment
conda activate usher-env
# Set up channels
conda config --add channels defaults
conda config --add channels bioconda
conda config --add channels conda-forge
# Install the UShER package
conda install usher

I tried it just now and it works fine.

liamxg commented 6 months ago

I have tried, but does't works for me.

terrycojones commented 5 months ago

Yes, I followed the commands exactly.