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

Conflicts During Installation #1139

Closed
chekirou opened this issue Mar 25, 2022 · 4 comments
Closed

Conflicts During Installation #1139

chekirou opened this issue Mar 25, 2022 · 4 comments

Comments

@chekirou
Copy link

🐛 Bugs / Unexpected behaviors

Hi, I am trying to install pytorch3d on Linux but I get a conflict issue when following the steps described in the install.md file. I also tried the fix on this issue but it didn't fix it.
Thank you in advance for your help.

Instructions To Reproduce the Issue:

Please include the following (depending on what the issue is):
I ran the following commands (the ones form install.md file):

conda create -n pytorch3d python=3.9
conda activate pytorch3d
conda install -c pytorch pytorch=1.9.1 torchvision cudatoolkit=10.2
conda install -c fvcore -c iopath -c conda-forge fvcore iopath
conda install -c bottler nvidiacub
conda install jupyter
pip install scikit-image matplotlib imageio plotly opencv-python
pip install black 'isort<5' flake8 flake8-bugbear flake8-comprehensions
conda install pytorch3d -c pytorch3d

I also tried the following commands from this issue :

conda create --name quick_test_env python=3.8
conda activate quick_test_env
conda install numpy pillow matplotlib
conda install -c conda-forge opencv
conda install pytorch=1.10.0 torchvision torchaudio cudatoolkit=11.3 -c pytorch -c conda-forge
conda install -c fvcore -c iopath -c conda-forge fvcore iopath
conda install -c pytorch3d pytorch3d
  1. What you observed (including the full logs):
    When i run the commands in the installation tutorial i get this error at the command :
conda install pytorch3d -c pytorch3d
The following specifications were found to be incompatible with your system:

  - feature:/linux-64::__glibc==2.27=0
  - feature:|@/linux-64::__glibc==2.27=0
  - argon2-cffi -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - argon2-cffi-bindings -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - cffi -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - cudatoolkit=10.2 -> libgcc-ng[version='>=7.3.0'] -> __glibc[version='>=2.17']
  - dbus -> libgcc-ng[version='>=7.3.0'] -> __glibc[version='>=2.17']
  - debugpy -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - expat -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - fontconfig -> libgcc-ng[version='>=7.3.0'] -> __glibc[version='>=2.17']
  - freetype -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - giflib -> libgcc-ng[version='>=7.3.0'] -> __glibc[version='>=2.17']
  - glib -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - gst-plugins-base -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - gstreamer -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - icu -> libgcc-ng[version='>=7.3.0'] -> __glibc[version='>=2.17']
  - jpeg -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - lcms2 -> libgcc-ng[version='>=7.3.0'] -> __glibc[version='>=2.17']
  - libffi -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - libgcc-ng -> __glibc[version='>=2.17']
  - libpng -> libgcc-ng[version='>=7.3.0'] -> __glibc[version='>=2.17']
  - libsodium -> libgcc-ng[version='>=7.3.0'] -> __glibc[version='>=2.17']
  - libstdcxx-ng -> __glibc[version='>=2.17']
  - libtiff -> libgcc-ng[version='>=7.3.0'] -> __glibc[version='>=2.17']
  - libuuid -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - libuv -> libgcc-ng[version='>=7.3.0'] -> __glibc[version='>=2.17']
  - libwebp -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - libwebp-base -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - libxcb -> libgcc-ng[version='>=7.3.0'] -> __glibc[version='>=2.17']
  - libxml2 -> libgcc-ng[version='>=9.3.0'] -> __glibc[version='>=2.17']
  - lz4-c -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - markupsafe -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - mistune -> libgcc-ng[version='>=7.3.0'] -> __glibc[version='>=2.17']
  - mkl-service -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - mkl_fft -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - mkl_random -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - ncurses -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - ninja -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - numpy -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - numpy-base -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - openssl -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - pcre -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - pillow -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - pyqt -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - pyrsistent -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - python=3.9 -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - pyyaml -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - pyzmq -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - qt -> libgcc-ng[version='>=7.3.0'] -> __glibc[version='>=2.17']
  - readline -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - sip -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - sqlite -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - tk -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - torchvision -> libgcc-ng[version='>=7.3.0'] -> __glibc[version='>=2.17']
  - tornado -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - xz -> libgcc-ng[version='>=7.3.0'] -> __glibc[version='>=2.17']
  - yaml -> libgcc-ng[version='>=7.3.0'] -> __glibc[version='>=2.17']
  - zeromq -> libgcc-ng[version='>=7.3.0'] -> __glibc[version='>=2.17']
  - zlib -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']
  - zstd -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']

Your installed version is: 2.27

For the commands form the issue, when i run :

conda install pytorch=1.10.0 torchvision torchaudio cudatoolkit=11.3 -c pytorch -c conda-forge

I get the following :

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: done
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: / 

And it keeps running Solving environment for more than an hour before i stop manually.

@bottler
Copy link
Contributor

bottler commented Mar 25, 2022

Let's focus on the original. The commands should have worked, and in particular this subset should work

conda create -n pytorch3d python=3.9
conda activate pytorch3d
conda install -c pytorch pytorch=1.9.1 torchvision cudatoolkit=10.2
conda install -c fvcore -c iopath -c conda-forge fvcore iopath
conda install pytorch3d -c pytorch3d

You say the last command fails. Can you paste the output of conda info and conda list (in an environment with these commands, or in the first trial's environment)?

@chekirou
Copy link
Author

I ran those commands in a new environment.
The output of conda info :

     active environment : pytorch3d
    active env location : /home/chekirou/anaconda3/envs/pytorch3d
            shell level : 2
       user config file : /home/chekirou/.condarc
 populated config files : 
          conda version : 4.12.0
    conda-build version : 3.21.8
         python version : 3.9.7.final.0
       virtual packages : __cuda=11.6=0
                          __linux=5.4.0=0
                          __glibc=2.27=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /home/chekirou/anaconda3  (writable)
      conda av data dir : /home/chekirou/anaconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/chekirou/anaconda3/pkgs
                          /home/chekirou/.conda/pkgs
       envs directories : /home/chekirou/anaconda3/envs
                          /home/chekirou/.conda/envs
               platform : linux-64
             user-agent : conda/4.12.0 requests/2.26.0 CPython/3.9.7 Linux/5.4.0-105-generic ubuntu/18.04.6 glibc/2.27
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False

output of conda list :

# packages in environment at /home/chekirou/anaconda3/envs/pytorch3d:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main  
_openmp_mutex             4.5                       1_gnu  
blas                      1.0                         mkl  
ca-certificates           2021.10.8            ha878542_0    conda-forge
certifi                   2021.10.8        py39hf3d152e_1    conda-forge
colorama                  0.4.4              pyh9f0ad1d_0    conda-forge
cudatoolkit               10.2.89              hfd86e86_1  
freetype                  2.11.0               h70c0345_0  
fvcore                    0.1.5.post20220305    pyhd8ed1ab_0    conda-forge
giflib                    5.2.1                h7b6447c_0  
intel-openmp              2021.4.0          h06a4308_3561  
iopath                    0.1.9                      py39    iopath
jpeg                      9d                   h7f8727e_0  
lcms2                     2.12                 h3be6417_0  
ld_impl_linux-64          2.35.1               h7274673_9  
libffi                    3.3                  he6710b0_2  
libgcc-ng                 9.3.0               h5101ec6_17  
libgomp                   9.3.0               h5101ec6_17  
libpng                    1.6.37               hbc83047_0  
libstdcxx-ng              9.3.0               hd4cf53a_17  
libtiff                   4.2.0                h85742a9_0  
libuv                     1.40.0               h7b6447c_0  
libwebp                   1.2.2                h55f646e_0  
libwebp-base              1.2.2                h7f8727e_0  
lz4-c                     1.9.3                h295c915_1  
mkl                       2021.4.0           h06a4308_640  
mkl-service               2.4.0            py39h7f8727e_0  
mkl_fft                   1.3.1            py39hd3c417c_0  
mkl_random                1.2.2            py39h51133e4_0  
ncurses                   6.3                  h7f8727e_2  
ninja                     1.10.2           py39hd09550d_3  
numpy                     1.21.2           py39h20f2e39_0  
numpy-base                1.21.2           py39h79a1101_0  
openssl                   1.1.1n               h7f8727e_0  
pillow                    9.0.1            py39h22f2fdc_0  
pip                       21.2.4           py39h06a4308_0  
portalocker               2.4.0            py39hf3d152e_0    conda-forge
python                    3.9.7                h12debd9_1  
python_abi                3.9                      2_cp39    conda-forge
pytorch                   1.9.1           py3.9_cuda10.2_cudnn7.6.5_0    pytorch
pyyaml                    5.4.1            py39h3811e60_0    conda-forge
readline                  8.1.2                h7f8727e_1  
setuptools                58.0.4           py39h06a4308_0  
six                       1.16.0             pyhd3eb1b0_1  
sqlite                    3.38.0               hc218d9a_0  
tabulate                  0.8.9              pyhd8ed1ab_0    conda-forge
termcolor                 1.1.0                      py_2    conda-forge
tk                        8.6.11               h1ccaba5_0  
torchvision               0.2.2                      py_3    pytorch
tqdm                      4.63.1             pyhd8ed1ab_0    conda-forge
typing_extensions         4.1.1              pyh06a4308_0  
tzdata                    2021e                hda174b7_0  
wheel                     0.37.1             pyhd3eb1b0_0  
xz                        5.2.5                h7b6447c_0  
yacs                      0.1.8              pyhd8ed1ab_0    conda-forge
yaml                      0.2.5                h516909a_0    conda-forge
zlib                      1.2.11               h7f8727e_4  
zstd                      1.4.9                haebb681_0  

@bottler
Copy link
Contributor

bottler commented Mar 25, 2022

Something strange is happening with the pytorch/torchvision installation. You got torchvision version 0.2.2, which is really old, and I don't understand why. I can replicate it myself. Every pytorch3d package requires torchvision 0.5 or higher. Basically conda install -c pytorch pytorch=1.9.1 torchvision cudatoolkit=10.2 is not finding torchvision properly, but used to.

Using PyTorch 1.10.0 seems to work, after which a nightly build of pytorch3d works

conda install -c pytorch pytorch=1.10.0 torchvision cudatoolkit=10.2 -c conda-forge

@chekirou
Copy link
Author

Thank you very much for your help, it works now.

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

No branches or pull requests

2 participants