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

Can't install pytorch3d using conda -> glibc error #1076

Closed
owlshrimp opened this issue Feb 15, 2022 · 14 comments
Closed

Can't install pytorch3d using conda -> glibc error #1076

owlshrimp opened this issue Feb 15, 2022 · 14 comments
Assignees
Labels
installation Installation questions or issues Stale

Comments

@owlshrimp
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

Trying to install pytorch3d via conda. Fails with the following error:

$ conda install -c pytorch3d pytorch3d
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 system:

  • feature:/linux-64::__glibc==2.31=0
  • feature:|@/linux-64::__glibc==2.31=0

Your installed version is: 2.31

Instructions To Reproduce the Issue:

conda create --name synthia_point_cloud_rendering python=3.8
conda activate synthia_point_cloud_rendering
conda install numpy pillow matplotlib
conda install -c conda-forge opencv
conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch
conda install -c pytorch3d pytorch3d

I sometimes also install the following first before pytorch3d, but it doesn't seem to have any effect:
conda install -c open3d-admin -c conda-forge open3d

@owlshrimp
Copy link
Author

I'm on Ubuntu MATE 20.04

@bottler
Copy link
Contributor

bottler commented Feb 15, 2022

It's best to paste your conda list output. But I can guess what might be wrong. Because you are not specifying a pytorch version, I think you are getting the latest version of pytorch, which is 1.10.2. PyTorch3D is built separately for each PyTorch version. The latest version which PyTorch3D has a package for is 1.10.0 (which was the latest at the time of our last release).
You could replace

conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch

with

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

@bottler bottler self-assigned this Feb 15, 2022
@bottler bottler added the installation Installation questions or issues label Feb 15, 2022
@owlshrimp
Copy link
Author

owlshrimp commented Feb 16, 2022

I gave the following a quick test:
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

Conflicts re-occured, though this time the error output is too long to include. (see error_message.txt )

my conda list is:

# packages in environment at /home/matt/anaconda3/envs/quick_test_env:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                      1_llvm    conda-forge
alsa-lib                  1.2.3                h516909a_0    conda-forge
aom                       3.2.0                h9c3ff4c_2    conda-forge
blas                      2.113                  openblas    conda-forge
blas-devel                3.9.0           13_linux64_openblas    conda-forge
brotli                    1.0.9                he6710b0_2  
bzip2                     1.0.8                h7f98852_4    conda-forge
c-ares                    1.18.1               h7f98852_0    conda-forge
ca-certificates           2021.10.8            ha878542_0    conda-forge
cairo                     1.16.0            ha00ac49_1009    conda-forge
certifi                   2021.10.8        py38h578d9bd_1    conda-forge
cycler                    0.11.0             pyhd3eb1b0_0  
dbus                      1.13.18              hb2f20db_0  
expat                     2.4.4                h295c915_0  
ffmpeg                    4.4.1                h6987444_1    conda-forge
font-ttf-dejavu-sans-mono 2.37                 hab24e00_0    conda-forge
font-ttf-inconsolata      3.000                h77eed37_0    conda-forge
font-ttf-source-code-pro  2.038                h77eed37_0    conda-forge
font-ttf-ubuntu           0.83                 hab24e00_0    conda-forge
fontconfig                2.13.1               h6c09931_0  
fonts-conda-ecosystem     1                             0    conda-forge
fonts-conda-forge         1                             0    conda-forge
fonttools                 4.25.0             pyhd3eb1b0_0  
freeglut                  3.2.2                h9c3ff4c_0    conda-forge
freetype                  2.11.0               h70c0345_0  
gettext                   0.19.8.1          h73d1719_1008    conda-forge
giflib                    5.2.1                h7b6447c_0  
glib                      2.70.2               h780b84a_4    conda-forge
glib-tools                2.70.2               h780b84a_4    conda-forge
gmp                       6.2.1                h58526e2_0    conda-forge
gnutls                    3.6.13               h85f3911_1    conda-forge
graphite2                 1.3.13            h58526e2_1001    conda-forge
gst-plugins-base          1.18.5               hf529b03_3    conda-forge
gstreamer                 1.18.5               h9f60fe5_3    conda-forge
harfbuzz                  3.4.0                hb4a5f5f_0    conda-forge
hdf5                      1.12.1          nompi_h2750804_103    conda-forge
icu                       69.1                 h9c3ff4c_0    conda-forge
intel-openmp              2021.4.0          h06a4308_3561  
jasper                    2.0.33               ha77e612_0    conda-forge
jbig                      2.1               h7f98852_2003    conda-forge
jpeg                      9e                   h7f98852_0    conda-forge
kiwisolver                1.3.2            py38h295c915_0  
krb5                      1.19.2               hcc1bbae_3    conda-forge
lame                      3.100             h7f98852_1001    conda-forge
lcms2                     2.12                 h3be6417_0  
ld_impl_linux-64          2.35.1               h7274673_9  
lerc                      3.0                  h9c3ff4c_0    conda-forge
libblas                   3.9.0           13_linux64_openblas    conda-forge
libcblas                  3.9.0           13_linux64_openblas    conda-forge
libclang                  13.0.1          default_hc23dcda_0    conda-forge
libcurl                   7.81.0               h2574ce0_0    conda-forge
libdeflate                1.10                 h7f98852_0    conda-forge
libdrm                    2.4.109              h7f98852_0    conda-forge
libedit                   3.1.20191231         he28a2e2_2    conda-forge
libev                     4.33                 h516909a_1    conda-forge
libevent                  2.1.10               h9b69904_4    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libgcc-ng                 11.2.0              h1d223b6_12    conda-forge
libgfortran-ng            11.2.0              h69a702a_12    conda-forge
libgfortran5              11.2.0              h5c6108e_12    conda-forge
libglib                   2.70.2               h174f98d_4    conda-forge
libglu                    9.0.0             he1b5a44_1001    conda-forge
libgomp                   11.2.0              h1d223b6_12    conda-forge
libiconv                  1.16                 h516909a_0    conda-forge
liblapack                 3.9.0           13_linux64_openblas    conda-forge
liblapacke                3.9.0           13_linux64_openblas    conda-forge
libllvm13                 13.0.1               hf817b99_0    conda-forge
libnghttp2                1.46.0               h812cca2_0    conda-forge
libnsl                    2.0.0                h7f98852_0    conda-forge
libogg                    1.3.4                h7f98852_1    conda-forge
libopenblas               0.3.18          pthreads_h8fe5266_0    conda-forge
libopencv                 4.5.5            py38hd60e7aa_2    conda-forge
libopus                   1.3.1                h7f98852_1    conda-forge
libpciaccess              0.16                 h516909a_0    conda-forge
libpng                    1.6.37               hbc83047_0  
libpq                     14.2                 hd57d9b9_0    conda-forge
libprotobuf               3.19.4               h780b84a_0    conda-forge
libssh2                   1.10.0               ha56f1ee_2    conda-forge
libstdcxx-ng              11.2.0              he4da1e4_12    conda-forge
libtiff                   4.3.0                h542a066_3    conda-forge
libuuid                   1.0.3                h7f8727e_2  
libva                     2.13.0               h7f98852_2    conda-forge
libvorbis                 1.3.7                h9c3ff4c_0    conda-forge
libvpx                    1.11.0               h9c3ff4c_3    conda-forge
libwebp                   1.2.2                h3452ae3_0    conda-forge
libwebp-base              1.2.2                h7f98852_1    conda-forge
libxcb                    1.13              h7f98852_1004    conda-forge
libxkbcommon              1.0.3                he3ba5ed_0    conda-forge
libxml2                   2.9.12               h885dcf4_1    conda-forge
libzlib                   1.2.11            h36c2ea0_1013    conda-forge
llvm-openmp               13.0.1               hf817b99_0    conda-forge
lz4-c                     1.9.3                h295c915_1  
matplotlib                3.5.0            py38h06a4308_0  
matplotlib-base           3.5.0            py38h3ed280b_0  
mkl                       2021.4.0           h06a4308_640  
mkl-service               2.4.0            py38h7f8727e_0  
mkl_fft                   1.3.1            py38h8666266_1    conda-forge
mkl_random                1.2.2            py38h1abd341_0    conda-forge
munkres                   1.1.4                      py_0  
mysql-common              8.0.28               ha770c72_0    conda-forge
mysql-libs                8.0.28               hfa10184_0    conda-forge
ncurses                   6.3                  h7f8727e_2  
nettle                    3.6                  he412f7d_0    conda-forge
nspr                      4.32                 h9c3ff4c_1    conda-forge
nss                       3.74                 hb5efdd6_0    conda-forge
numpy                     1.21.2           py38hd8d4704_0  
numpy-base                1.21.2           py38h2b8c604_0  
olefile                   0.46               pyhd3eb1b0_0  
openblas                  0.3.18          pthreads_h4748800_0    conda-forge
opencv                    4.5.5            py38h578d9bd_2    conda-forge
openh264                  2.1.1                h780b84a_0    conda-forge
openssl                   1.1.1l               h7f98852_0    conda-forge
packaging                 21.3               pyhd3eb1b0_0  
pcre                      8.45                 h295c915_0  
pillow                    8.4.0            py38h5aabda8_0  
pip                       21.2.4           py38h06a4308_0  
pixman                    0.40.0               h36c2ea0_0    conda-forge
pthread-stubs             0.4               h36c2ea0_1001    conda-forge
py-opencv                 4.5.5            py38he5a9106_2    conda-forge
pyparsing                 3.0.4              pyhd3eb1b0_0  
pyqt                      5.12.3           py38ha8c2ead_4    conda-forge
pyqt5-sip                 4.19.18                  pypi_0    pypi
pyqtchart                 5.12                     pypi_0    pypi
pyqtwebengine             5.12.1                   pypi_0    pypi
python                    3.8.12          ha38a3c6_3_cpython    conda-forge
python-dateutil           2.8.2              pyhd3eb1b0_0  
python_abi                3.8                      2_cp38    conda-forge
qt                        5.12.9               ha98a1a1_5    conda-forge
readline                  8.1.2                h7f8727e_1  
setuptools                58.0.4           py38h06a4308_0  
sip                       4.19.13          py38h295c915_0  
six                       1.16.0             pyhd3eb1b0_1  
sqlite                    3.37.2               hc218d9a_0  
svt-av1                   0.9.0                h9c3ff4c_0    conda-forge
tk                        8.6.11               h1ccaba5_0  
tornado                   6.1              py38h27cfd23_0  
wheel                     0.37.1             pyhd3eb1b0_0  
x264                      1!161.3030           h7f98852_1    conda-forge
x265                      3.5                  h4bd325d_1    conda-forge
xorg-fixesproto           5.0               h7f98852_1002    conda-forge
xorg-inputproto           2.3.2             h7f98852_1002    conda-forge
xorg-kbproto              1.0.7             h7f98852_1002    conda-forge
xorg-libice               1.0.10               h7f98852_0    conda-forge
xorg-libsm                1.2.2                h470a237_5    conda-forge
xorg-libx11               1.7.2                h7f98852_0    conda-forge
xorg-libxau               1.0.9                h7f98852_0    conda-forge
xorg-libxdmcp             1.1.3                h7f98852_0    conda-forge
xorg-libxext              1.3.4                h7f98852_1    conda-forge
xorg-libxfixes            5.0.3             h7f98852_1004    conda-forge
xorg-libxi                1.7.10               h7f98852_0    conda-forge
xorg-libxrender           0.9.10            h7f98852_1003    conda-forge
xorg-renderproto          0.11.1            h7f98852_1002    conda-forge
xorg-xextproto            7.3.0             h7f98852_1002    conda-forge
xorg-xproto               7.0.31            h7f98852_1007    conda-forge
xz                        5.2.5                h7b6447c_0  
zlib                      1.2.11            h36c2ea0_1013    conda-forge
zstd                      1.5.2                ha95c52a_0    conda-forge

@owlshrimp
Copy link
Author

Tried going up to python 3.10, but that doesn't seem to have solved it.
error_message2.txt

@bottler
Copy link
Contributor

bottler commented Feb 16, 2022

You also need, still with Python 3.8

conda install -c fvcore -c iopath -c conda-forge fvcore iopath

before pytorch3d.

Python 3.10 will make things harder. I don't think there are released PyTorch packages for Python 3.10 yet.

@owlshrimp
Copy link
Author

owlshrimp commented Feb 16, 2022

The failures occur at
conda install pytorch=1.10.0 torchvision torchaudio cudatoolkit=11.3 -c pytorch
(see first error_message.txt)

The following installs fine:
conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch

I have tried with latest pytorch and fvcore/iopath, but it fails to install pytorch3d, probably for the reasons you mention.

@bottler
Copy link
Contributor

bottler commented Feb 17, 2022

The following installs fine:
conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch

Sure. Maybe true - but right now you won't have an easy pytorch3d install after this.


I gave the following a quick test:
...
conda install pytorch=1.10.0 torchvision torchaudio cudatoolkit=11.3 -c pytorch
Conflicts re-occured, though this time the error output is too long to include. error_message.txt

Do you mean conflicts occurred on that line, or on a subsequent attempt to install pytorch3d. I assumed the latter. If you mean the former, maybe you need to add -c conda-forge to the end of the line too. (Certain PyTorch versions need -c conda-forge when installing.)

@owlshrimp
Copy link
Author

owlshrimp commented Feb 17, 2022

The top part of error_message.txt:

(quick_test_env) matt@hp-omen:~$ conda install pytorch=1.10.0 torchvision torchaudio cudatoolkit=11.3 -c pytorch
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.

I cannot install the version of pytorch you specified, only the latest. Is there a different version that may work?

@bottler
Copy link
Contributor

bottler commented Feb 17, 2022

The latest won't work with a conda build of pytorch3d. Did you try
conda install pytorch=1.10.0 torchvision torchaudio cudatoolkit=11.3 -c pytorch -c conda-forge?

@owlshrimp
Copy link
Author

Ok. I've never had to do that before, but it worked.

The winning combination was:

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

@owlshrimp
Copy link
Author

owlshrimp commented Feb 17, 2022

It might be good to add an explicit note about the versions of pytorch that are supported to the "Installing prebuilt binaries for PyTorch3D" section of the install readme, and maybe a note about possibly needing conda-forge. The fvcore/iopath dependencies also aren't mentioned there. It's the spot most people are going to jump to first.

Something like "After installing the above dependencies (including a supported version of pytorch and fvcore/iopath)..."

@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Mar 20, 2022
@github-actions
Copy link

This issue was closed because it has been stalled for 5 days with no activity.

@lvZic
Copy link

lvZic commented Apr 20, 2023

conda install -c pytorch3d pytorch3d

doesnot work for me.
the final solution is to degrade pytorch version.

@facebookresearch facebookresearch locked as resolved and limited conversation to collaborators Apr 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
installation Installation questions or issues Stale
Projects
None yet
Development

No branches or pull requests

3 participants