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

Cannot create env with mamba #122

Closed
geemi725 opened this issue Sep 1, 2022 · 10 comments
Closed

Cannot create env with mamba #122

geemi725 opened this issue Sep 1, 2022 · 10 comments
Labels
help wanted Extra attention is needed

Comments

@geemi725
Copy link

geemi725 commented Sep 1, 2022

I have been trying to use torchmd-net and torchmd-cg. I first tried installing torchmd-net following the instructions given. Tried to create the env with mamba and I encountered the following error. Help?

Encountered problems while solving:
  - nothing provides requested nnpops 0.2
  - nothing provides requested pytorch_cluster 1.5.9
@raimis
Copy link
Collaborator

raimis commented Sep 1, 2022

Which command gives this? Looks like, you are missing a channel.

@geemi725
Copy link
Author

geemi725 commented Sep 1, 2022

This error occurs when I do mamba env create -f environment.yml

@raimis
Copy link
Collaborator

raimis commented Sep 1, 2022

I tried on the local machine -- works without a problem.
I tried with the CI -- works without a problem (https://github.com/torchmd/torchmd-net/runs/8138813540?check_suite_focus=true)

Make sure you have the latest mamba.

@raimis
Copy link
Collaborator

raimis commented Sep 1, 2022

Also, could you share the output of mamba info.

@raimis raimis added the help wanted Extra attention is needed label Sep 1, 2022
@geemi725
Copy link
Author

geemi725 commented Sep 1, 2022


                  __    __    __    __
                 /  \  /  \  /  \  /  \
                /    \/    \/    \/    \
███████████████/  /██/  /██/  /██/  /████████████████████████
              /  / \   / \   / \   / \  \____
             /  /   \_/   \_/   \_/   \    o \__,
            / _/                       \_____/  `
            |/
        ███╗   ███╗ █████╗ ███╗   ███╗██████╗  █████╗
        ████╗ ████║██╔══██╗████╗ ████║██╔══██╗██╔══██╗
        ██╔████╔██║███████║██╔████╔██║██████╔╝███████║
        ██║╚██╔╝██║██╔══██║██║╚██╔╝██║██╔══██╗██╔══██║
        ██║ ╚═╝ ██║██║  ██║██║ ╚═╝ ██║██████╔╝██║  ██║
        ╚═╝     ╚═╝╚═╝  ╚═╝╚═╝     ╚═╝╚═════╝ ╚═╝  ╚═╝

        mamba (0.25.0) supported by @QuantStack

        GitHub:  https://github.com/mamba-org/mamba
        Twitter: https://twitter.com/QuantStack

█████████████████████████████████████████████████████████████


     active environment : base
    active env location : /Users/geemi/mambaforge
            shell level : 1
       user config file : /Users/geemi/.condarc
 populated config files : /Users/geemi/mambaforge/.condarc
                          /Users/geemi/.condarc
          conda version : 4.14.0
    conda-build version : not installed
         python version : 3.10.6.final.0
       virtual packages : __osx=11.6.5=0
                          __unix=0=0
                          __archspec=1=arm64
       base environment : /Users/geemi/mambaforge  (writable)
      conda av data dir : /Users/geemi/mambaforge/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/osx-arm64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /Users/geemi/mambaforge/pkgs
                          /Users/geemi/.conda/pkgs
       envs directories : /Users/geemi/mambaforge/envs
                          /Users/geemi/.conda/envs
               platform : osx-arm64
             user-agent : conda/4.14.0 requests/2.28.1 CPython/3.10.6 Darwin/20.6.0 OSX/11.6.5
                UID:GID : 501:20
             netrc file : None
           offline mode : False

@geemi725
Copy link
Author

geemi725 commented Sep 1, 2022

Full output from mamba env create -f environment.yml

mamba env create -f environment.yml
conda-forge/osx-arm64                                       Using cache
conda-forge/noarch                                          Using cache


Looking for: ['h5py', 'matplotlib', 'nnpops==0.2', 'pip', 'pytorch==1.11.0', 'pytorch_cluster==1.5.9', 'pytorch_geometric==2.0.3', 'pytorch_scatter==2.0.8', 'pytorch_sparse==0.6.10', 'pytorch-lightning==1.6.3', 'torchmetrics==0.8.2', 'tqdm', 'flake8', 'pytest', 'psutil']


Encountered problems while solving:
  - nothing provides requested nnpops 0.2
  - nothing provides requested pytorch_cluster 1.5.9

(base) geemi@vpn-10-40-13-13 torchmd-net % 

@peastman
Copy link
Collaborator

peastman commented Sep 1, 2022

It looks like those packages aren't available for ARM Mac. https://anaconda.org/conda-forge/pytorch_cluster only lists Linux x86 and Mac x86.

@geemi725
Copy link
Author

geemi725 commented Sep 1, 2022

I've tried this in my linux machine too. After several failed attempts to install from the environment.yml file, I tried install one package at a time manually. I keep encountering following error with installation of nnpops==0.2 and pytorch_cluster==1.5.9. Other packages have no issue. It's these two which causes the errors.

ResolvePackageNotFound: 
  - python=3.1

@raimis
Copy link
Collaborator

raimis commented Sep 5, 2022

Can you share the exact command which gives that error?

@geemi725
Copy link
Author

geemi725 commented Sep 5, 2022

I was able to fix the issue. I was using an old cudnn version.

@geemi725 geemi725 closed this as completed Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants