miraymen / pix2surf

Learning to Transfer Texture from Clothing Images to 3D Humans, CVPR 2020
Other
343 stars 63 forks source link

libXi.so.6: cannot open shared object file: No such file or directory #22

Closed AmitSharma1127 closed 3 years ago

AmitSharma1127 commented 3 years ago

Specifications:

OS = Ubuntu 16.04 Blender = 2.79

Stack Trace

(pix2surf) aaplgpu@aaplgpu:/home/local/AAPL/mgawali/pix2surf$ sudo /home/local/AAPL/mgawali/anaconda3/envs/pix2surf/bin/python3.6 demo.py
/home/local/AAPL/mgawali/anaconda3/envs/pix2surf/lib/python3.6/site-packages/torch/nn/functional.py:3385: UserWarning: Default grid_sample and affine_grid behavior has changed to align_corners=False since 1.3.0. Please specify align_corners=True if the old behavior is desired. See the documentation of grid_sample for details.
  warnings.warn("Default grid_sample and affine_grid behavior has changed "
/home/local/AAPL/mgawali/pix2surf/blender-2.79-linux-glibc219-i686/blender: error while loading shared libraries: libXi.so.6: cannot open shared object file: No such file or directory 

conda env list:

_pytorch_select    =       0.2                       
blas                    =  1.0                         
bzip2                   =  1.0.8                
ca-certificates   =        2021.1.19            
cairo                     =1.14.12              
certifi                 =  2020.12.5        
cffi                   =   1.14.5           
chumpy        =            0.70                     
cudatoolkit=               10.0.130                      
cudnn                   =  7.6.5                
cycler                 =   0.10.0                   
cython             =       0.29.22                 
ffmpeg          =          4.0                  
fontconfig  =              2.13.1             
freeglut                  =3.0.0              
freetype               =   2.10.4         
glib                    =  2.67.4               
graphite2            =     1.3.14               
harfbuzz            =      1.8.8                
hdf5                    =  1.10.2               
icu                     =  58.2                 
intel-openmp    =          2020.2                      
jasper              =      2.0.14               
jpeg                      =9b                   
kiwisolver               = 1.3.1                 
lcms2                   =  2.11                 
ld_impl_linux-64=          2.33.1               
libedit             =      3.1.20191231         
libffi              =      3.3                  
libgcc-ng             =    9.1.0                
libgfortran-ng   =         7.3.0                
libglu              =      9.0.0                
libopencv            =     3.4.2                
libopus             =      1.3.1                
libpng            =        1.6.37               
libstdcxx-ng=              9.1.0                
libtiff         =          4.1.0                
libuuid    =               1.0.3                
libvpx               =     1.7.0                
libxcb             =       1.14                 
libxml2        =           2.9.10               
lz4-c               =      1.9.3                
matplotlib      =          3.3.4                    
mkl               =        2020.2                      
mkl-service       =        2.3.0            
mkl_fft             =      1.3.0            
mkl_random       =         1.1.1            
ncurses            =       6.2                  
ninja              =       1.10.2           
numpy        =             1.19.2           
numpy-base     =           1.19.2           
olefile             =      0.46                     
opencv         =           3.4.2            
openssl          =         1.1.1j               
pcre           =           8.44                 
pillow      =              8.1.0            
pip        =               21.0.1           
pixman               =     0.40.0               
py-opencv       =          3.4.2            
pycparser      =           2.20                       
pyparsing   =              2.4.7                    
python                  =  3.6.13               
python-dateutil  =         2.8.1                    
pytorch            =       1.3.1           
readline         =         8.1                  
scipy           =          1.5.4                    
setuptools        =        52.0.0           
six                     =  1.15.0           
sqlite              =      3.33.0               
tk                 =       8.6.10               
torchvision       =        0.4.2           
wheel             =        0.36.2             
xz                 =       5.2.5                
zlib            =          1.2.11               
zstd        =              1.4.5            

Reproduction of error:

sudo /home/local/AAPL/mgawali/anaconda3/envs/pix2surf/bin/python3.6 demo.py

Additional info:

Searching for the same library gives out the following output:

(pix2surf) aaplgpu@aaplgpu:/var/lib/dpkg$ apt-file search libXi.so.6
libxi6: /usr/lib/x86_64-linux-gnu/libXi.so.6
libxi6: /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
AmitSharma1127 commented 3 years ago

The issue gets resolved when I manually copy the libXi.so.6 and libXrender.so.1 in the Ubuntu's default shared library location /usr/lib/ and /usr/local/lib.

By default when these libraries are installed through pip, they get installed in the location /usr/lib/x86_64-linux-gnu/ or /usr/lib/i368-linux-gnu/, depending on if your system is 64-bit or 32-bit.

Make sure the libraries that are getting installed are compatible with your system to avoid another error: wrong ELF class: ELFCLASS64