Blender trying to load old libImath

I am having the same issue as the post “Wrong version libImath for Blender” which was closed 14 hours ago.

Unfortunately the tagged solution (rebooting) doesn’t make any change for my system.

~ >>> uptime                                                                   
15:48:04 up 0 min,  1 user,  load average: 1.20, 0.28, 0.09
~ >>> blender                                                                  
blender: error while loading shared libraries: libImath-3_0.so.28: cannot open shared object file: No such file or directory

Here is the requested output from the marked solution.

~ >>> pacman -Qi blender                                                        
Name            : blender
Version         : 17:2.93.1-4
Description     : A fully integrated 3D graphics creation suite
Architecture    : x86_64
URL             : https://www.blender.org
Licenses        : GPL
Groups          : None
Provides        : None
Depends On      : libpng  libtiff  openexr  python  desktop-file-utils
              python-requests  potrace  shared-mime-info
              hicolor-icon-theme  xdg-utils  glew  openjpeg2  python-numpy
              freetype2  openal  ffmpeg  fftw  boost-libs  opencollada
              alembic  openxr  openimageio  libsndfile  jack  opencolorio
              openshadinglanguage  openimagedenoise  jemalloc  libspnav
              ptex  opensubdiv  openvdb  log4cplus  sdl2  embree
Optional Deps   : cuda: cycles renderer cuda support [installed]
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 323.23 MiB
Packager        : Sven-Hendrik Haase <svenstaro@gmail.com>
Build Date      : Tue 20 Jul 2021 09:55:49 AM PDT
Install Date    : Sat 24 Jul 2021 03:41:10 PM PDT
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

~ >>> pacman -Qi imath                                                         
Name            : imath
Version         : 3.1.1-1
Description     : A C++ and python library of 2D and 3D vector, matrix, and math
              operations for computer graphics
Architecture    : x86_64
URL             : https://www.openexr.com/  
Licenses        : BSD
Groups          : None 
Provides        : None
Depends On      : gcc-libs
Optional Deps   : python: python bindings [installed] 
              boost-libs: python bindings [installed]
Required By     : opencolorio  opencolorio-qfix  openexr  openshadinglanguage
              openshadinglanguage-qfix  openvdb
Optional For    : None
Conflicts With  : None  
Replaces        : None
Installed Size  : 38.91 MiB 
Packager        : Antonio Rojas <arojas@archlinux.org>
Build Date      : Tue 20 Jul 2021 11:18:32 PM PDT
Install Date    : Fri 23 Jul 2021 09:45:45 AM PDT
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

~ >>> pacman -F /usr/lib/libImath*                                             
usr/lib/libImath-3_1.so is owned by extra/imath 3.1.1-1
usr/lib/libImath-3_1.so.29 is owned by extra/imath 3.1.1-1
usr/lib/libImath-3_1.so.29.1.0 is owned by extra/imath 3.1.1-1
usr/lib/libImath.so is owned by extra/imath 3.1.1-1

I am not quite sure what next steps to take.
I would comment on the previous issue but it is closed due to poor manners.

Like the other post OP (but we didn’t get to this point as was not confirmed the reboot) either have something overriding in /usr/local/, or your LIBRARY_PATH are incorrect.

Another possibility is that in your /opt there is something that blender uses and you installed from elsewhere.

To catch all the information you want about, run blender from terminal with this command:
LD_DEBUG=files blender

1 Like

I truncated the output, it looks like libAlembic is the root cause.

 17567:	
 17567:	file=libImath-3_0.so.28 [0];  needed by /usr/lib/libAlembic.so.1.8 [0]
blender: error while loading shared libraries: libImath-3_0.so.28: cannot open shared object file: No such file or directory

There seem to be two versions, with the community version being a higher version number (and not the one installed on my system)

~ >>> pamac search alembic                                                                                                                                                                                                                                                               
python-alembic                                                                1.6.5-1  community 
    Lightweight database migration tool for usage with SQLAlchemy
alembic-qfix                                                       [Installed] 1.8.0-3   
    An open framework for storing and sharing scene data
alembic                                            1.8.2-2  community 
    An open framework for storing and sharing scene data
~ >>> pacman -Qi alembic-qfix                                                                                                                                                                                                                                                            
Name            : alembic-qfix
Version         : 1.8.0-3
Description     : An open framework for storing and sharing scene data
Architecture    : x86_64
URL             : http://www.alembic.io/
Licenses        : BSD
Groups          : None
Provides        : alembic=1.8.0
Depends On      : openexr  boost-libs  hdf5
Optional Deps   : None
Required By     : blender
Optional For    : None
Conflicts With  : alembic
Replaces        : None
Installed Size  : 4.19 MiB
Packager        : Unknown Packager
Build Date      : Sun 13 Jun 2021 01:52:22 PM PDT
Install Date    : Sun 13 Jun 2021 01:53:17 PM PDT
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : None

Checking LIBRARY_PATH, I don’t seem to have anything set in my env.
I searched /usr, /usr/local and /opt for other versions of libAlembic, libImath, and blender itself.

It looks like meshroom-bin (AUR) brings in its own version of libAlembic which is version 1.7, but that doesn’t seem to be the version blender is trying to use. Similarly meshroom vendors its own libImath v2.5, but that doesn’t seem relevant either.

Blender was rebuilt in Arch on the 23rd, but for another reason though. So it didn’t make it into this update batch.

It appears the issue is with the version of libAlembic provided by the Alembic-qfix package.
I downloaded the Alembic package from the mirrors and extracted libAlembic.so.1.8.2 (to a temp directory) and ldd properly reports the use of libImath-3_1.so.

I removed blender and Alembic-qfix, and then installed Alembic (Community) and reinstalled Blender and now it is functional.

Thanks Strit and bogdancovaciu. I appreciate the help getting me pointed in the right direction.

1 Like