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

Installation procedure issues  #243

Closed
udemegane opened this issue Jun 23, 2020 · 3 comments
Closed

Installation procedure issues  #243

udemegane opened this issue Jun 23, 2020 · 3 comments
Labels
installation Installation questions or issues

Comments

@udemegane
Copy link

If you do not know the root cause of the problem / bug, and wish someone to help you, please
post according to this template:

🐛 Bugs / Unexpected behaviors

Hello everyone. I tried to install pytorch3d according to the README but it fails.

NOTE: Please look at the existing list of Issues tagged with the label 'bug`. Only open a new issue if this bug has not already been reported. If an issue already exists, please comment there instead..

Instructions To Reproduce the Issue:

Please include the following (depending on what the issue is):

  1. Any changes you made (git diff) or code you wrote
None
  1. The exact command(s) you ran:
$ conda create -n pytorch3d python=3.8
$ conda activate pytorch3d
$ conda install -c pytorch pytorch torchvision cudatoolkit=10.2
$ conda install -c conda-forge -c fvcore fvcore
$ conda install jupyter
$ pip install scikit-image matplotlib imageio
$ pip install black isort flake8 flake8-bugbear flake8-comprehensions
$ conda install pytorch3d -c pytorch3d
  1. What you observed (including the full logs):
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): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: - 
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed                                                                                                                                            

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versionsThe following specifications were found to be incompatible with your CUDA driver:

  - feature:/linux-64::__cuda==10.2=0

Your installed CUDA driver is: 10.2

Then I ran the following command again according to the existing issue #235.

$ conda install -c conda-forge -c fvcore fvcore

And I got the below log.

Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/udemegane/anaconda3/envs/pytorch3d

  added / updated specs:
    - fvcore


The following packages will be UPDATED:

  ca-certificates     pkgs/main::ca-certificates-2020.1.1-0 --> conda-forge::ca-certificates-2020.6.20-hecda079_0

The following packages will be SUPERSEDED by a higher-priority channel:

  certifi               pkgs/main::certifi-2020.6.20-py38_0 --> conda-forge::certifi-2020.6.20-py38h32f6830_0
  openssl              pkgs/main::openssl-1.1.1g-h7b6447c_0 --> conda-forge::openssl-1.1.1g-h516909a_0


Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done

After that, I tried installing pytorch3d again.
But it fails. I got the bellow error log. This is different from the previous error log.

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): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: - 
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed                                                                                                                                            

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versionsThe following specifications were found to be incompatible with your CUDA driver:

  - feature:/linux-64::__cuda==10.2=0
  - feature:|@/linux-64::__cuda==10.2=0

Your installed CUDA driver is: 10.2

Night builds will fail as well.

$ conda install pytorch3d -c pytorch3d-nightly
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): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: | 
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed                                                                                                                                            

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versionsThe following specifications were found to be incompatible with your CUDA driver:

  - feature:/linux-64::__cuda==10.2=0

Your installed CUDA driver is: 10.2

Below is my environment.

  • conda list
$ conda list
# packages in environment at /home/udemegane/anaconda3/envs/pytorch3d:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main  
appdirs                   1.4.4                    pypi_0    pypi
attrs                     19.3.0                     py_0  
backcall                  0.2.0                      py_0  
black                     19.10b0                  pypi_0    pypi
blas                      1.0                         mkl  
bleach                    3.1.5                      py_0  
ca-certificates           2020.6.20            hecda079_0    conda-forge
certifi                   2020.6.20        py38h32f6830_0    conda-forge
click                     7.1.2                    pypi_0    pypi
cudatoolkit               10.2.89              hfd86e86_1  
cycler                    0.10.0                   pypi_0    pypi
dbus                      1.13.14              hb2f20db_0  
decorator                 4.4.2                      py_0  
defusedxml                0.6.0                      py_0  
entrypoints               0.3                      py38_0  
expat                     2.2.6                he6710b0_0  
flake8                    3.8.3                    pypi_0    pypi
flake8-bugbear            20.1.4                   pypi_0    pypi
flake8-comprehensions     3.2.3                    pypi_0    pypi
fontconfig                2.13.0               h9420a91_0  
freetype                  2.10.2               h5ab3b9f_0  
fvcore                    0.1.1.post20200622            py_0    conda-forge
glib                      2.63.1               h3eb4bd4_1  
gmp                       6.1.2                h6c8ec71_1  
gst-plugins-base          1.14.0               hbbd80ab_1  
gstreamer                 1.14.0               hb31296c_0  
icu                       58.2                 he6710b0_3  
imageio                   2.8.0                    pypi_0    pypi
importlib-metadata        1.6.1                    py38_0  
importlib_metadata        1.6.1                         0  
intel-openmp              2020.1                      217  
ipykernel                 5.3.0            py38h5ca1d4c_0  
ipython                   7.15.0                   py38_0  
ipython_genutils          0.2.0                    py38_0  
ipywidgets                7.5.1                      py_0  
isort                     4.3.21                   pypi_0    pypi
jedi                      0.17.1                   py38_0  
jinja2                    2.11.2                     py_0  
jpeg                      9b                   h024ee3a_2  
jsonschema                3.2.0                    py38_0  
jupyter                   1.0.0                    py38_7  
jupyter_client            6.1.3                      py_0  
jupyter_console           6.1.0                      py_0  
jupyter_core              4.6.3                    py38_0  
kiwisolver                1.2.0                    pypi_0    pypi
ld_impl_linux-64          2.33.1               h53a641e_7  
libedit                   3.1.20191231         h7b6447c_0  
libffi                    3.3                  he6710b0_1  
libgcc-ng                 9.1.0                hdf63c60_0  
libgfortran-ng            7.3.0                hdf63c60_0  
libpng                    1.6.37               hbc83047_0  
libsodium                 1.0.16               h1bed415_0  
libstdcxx-ng              9.1.0                hdf63c60_0  
libtiff                   4.1.0                h2733197_1  
libuuid                   1.0.3                h1bed415_2  
libxcb                    1.13                 h1bed415_1  
libxml2                   2.9.10               he19cac6_1  
lz4-c                     1.9.2                he6710b0_0  
markupsafe                1.1.1            py38h7b6447c_0  
matplotlib                3.2.2                    pypi_0    pypi
mccabe                    0.6.1                    pypi_0    pypi
mistune                   0.8.4           py38h7b6447c_1000  
mkl                       2020.1                      217  
mkl-service               2.3.0            py38he904b0f_0  
mkl_fft                   1.1.0            py38h23d657b_0  
mkl_random                1.1.1            py38h0573a6f_0  
nbconvert                 5.6.1                    py38_0  
nbformat                  5.0.7                      py_0  
ncurses                   6.2                  he6710b0_1  
networkx                  2.4                      pypi_0    pypi
ninja                     1.9.0            py38hfd86e86_0  
notebook                  6.0.3                    py38_0  
numpy                     1.18.5           py38ha1c710e_0  
numpy-base                1.18.5           py38hde5b4d6_0  
olefile                   0.46                       py_0  
openssl                   1.1.1g               h516909a_0    conda-forge
packaging                 20.4                       py_0  
pandoc                    2.2.3.2                       0  
pandocfilters             1.4.2                    py38_1  
parso                     0.7.0                      py_0  
pathspec                  0.8.0                    pypi_0    pypi
pcre                      8.43                 he6710b0_0  
pexpect                   4.8.0                    py38_0  
pickleshare               0.7.5                 py38_1000  
pillow                    7.1.2            py38hb39fc2d_0  
pip                       20.1.1                   py38_1  
portalocker               1.7.0            py38h32f6830_0    conda-forge
prometheus_client         0.8.0                      py_0  
prompt-toolkit            3.0.5                      py_0  
prompt_toolkit            3.0.5                         0  
ptyprocess                0.6.0                    py38_0  
pycodestyle               2.6.0                    pypi_0    pypi
pyflakes                  2.2.0                    pypi_0    pypi
pygments                  2.6.1                      py_0  
pyparsing                 2.4.7                      py_0  
pyqt                      5.9.2            py38h05f1152_4  
pyrsistent                0.16.0           py38h7b6447c_0  
python                    3.8.3                hcff3b4d_0  
python-dateutil           2.8.1                      py_0  
python_abi                3.8                      1_cp38    conda-forge
pytorch                   1.5.1           py3.8_cuda10.2.89_cudnn7.6.5_0    pytorch
pywavelets                1.1.1                    pypi_0    pypi
pyyaml                    5.3.1            py38h1e0a361_0    conda-forge
pyzmq                     18.1.1           py38he6710b0_0  
qt                        5.9.7                h5867ecd_1  
qtconsole                 4.7.5                      py_0  
qtpy                      1.9.0                      py_0  
readline                  8.0                  h7b6447c_0  
regex                     2020.6.8                 pypi_0    pypi
scikit-image              0.17.2                   pypi_0    pypi
scipy                     1.5.0                    pypi_0    pypi
send2trash                1.5.0                    py38_0  
setuptools                47.3.1                   py38_0  
sip                       4.19.13          py38he6710b0_0  
six                       1.15.0                     py_0  
sqlite                    3.32.3               h62c20be_0  
tabulate                  0.8.7              pyh9f0ad1d_0    conda-forge
termcolor                 1.1.0                      py_2    conda-forge
terminado                 0.8.3                    py38_0  
testpath                  0.4.4                      py_0  
tifffile                  2020.6.3                 pypi_0    pypi
tk                        8.6.10               hbc83047_0  
toml                      0.10.1                   pypi_0    pypi
torchvision               0.6.1                py38_cu102    pytorch
tornado                   6.0.4            py38h7b6447c_1  
tqdm                      4.46.1             pyh9f0ad1d_0    conda-forge
traitlets                 4.3.3                    py38_0  
typed-ast                 1.4.1                    pypi_0    pypi
wcwidth                   0.2.4                      py_0  
webencodings              0.5.1                    py38_1  
wheel                     0.34.2                   py38_0  
widgetsnbextension        3.5.1                    py38_0  
xz                        5.2.5                h7b6447c_0  
yacs                      0.1.6                      py_0    conda-forge
yaml                      0.2.5                h516909a_0    conda-forge
zeromq                    4.3.1                he6710b0_3  
zipp                      3.1.0                      py_0  
zlib                      1.2.11               h7b6447c_3  
zstd                      1.4.4                h0b5b093_3  

  • conda info
$ conda info

     active environment : pytorch3d
    active env location : /home/udemegane/anaconda3/envs/pytorch3d
            shell level : 2
       user config file : /home/udemegane/.condarc
 populated config files : /home/udemegane/.condarc
          conda version : 4.8.3
    conda-build version : 3.18.11
         python version : 3.7.6.final.0
       virtual packages : __cuda=10.2
                          __glibc=2.31
       base environment : /home/udemegane/anaconda3  (writable)
           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/udemegane/anaconda3/pkgs
                          /home/udemegane/.conda/pkgs
       envs directories : /home/udemegane/anaconda3/envs
                          /home/udemegane/.conda/envs
               platform : linux-64
             user-agent : conda/4.8.3 requests/2.22.0 CPython/3.7.6 Linux/5.4.0-37-generic ubuntu/20.04 glibc/2.31
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False

  • nvidia-smi
$ nvidia-smi 
Tue Jun 23 19:00:55 2020       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.64       Driver Version: 440.64       CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce RTX 2080    Off  | 00000000:09:00.0  On |                  N/A |
| 11%   55C    P0    50W / 225W |   2806MiB /  7979MiB |     34%      Default |
+-------------------------------+----------------------+----------------------+

  • OS
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

I tried it on another PC, but again I can't install due to a similar error. Please advise me.
Thank you.
Please also simplify the steps as much as possible so they do not require additional resources to
run, such as a private dataset.

@udemegane udemegane changed the title Installation procedure issues Installation procedure issues label:installation Jun 23, 2020
@udemegane udemegane changed the title Installation procedure issues label:installation Installation procedure issues  Jun 23, 2020
@nikhilaravi nikhilaravi added the installation Installation questions or issues label Jun 23, 2020
@bottler
Copy link
Contributor

bottler commented Jun 23, 2020

I can replicate a problem like this, slightly different error message. Several packages we depend on have been updated recently and it might take a while to get to the bottom of it.

When I downloaded the right package direct from the anaconda website it worked - https://anaconda.org/pytorch3d/pytorch3d/0.2.0/download/linux-64/pytorch3d-0.2.0-py38_cu102_pyt15.tar.bz2 is the one for your combination. As a quick fix for now, can you download it and then install it with conda install ./pytorch3d-0.2.0-py38_cu102_pyt15.tar.bz2?

@bottler
Copy link
Contributor

bottler commented Jun 24, 2020

The issue here is that it's slightly underspecified whether the released packages are compatible with the new release 1.5.1 of pytorch which came out a few days ago.

In the nightly channel, there are now separate packages for pytorch 1.5.0 and 1.5.1. I recommend you use
conda install pytorch3d -c pytorch3d-nightly.

@udemegane
Copy link
Author

The problem is resolved. Thank you for your quick response!

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

No branches or pull requests

3 participants