Python API with depletion library

I tried to carry out a depletion calculation, but I got an error related with a python API I guess such as

Traceback (most recent call last):
File “/global/home/users/inhyungkim/OPENMC/01_FA_PWR/02_burnup_single_mat/”, line 4, in
import openmc.deplete
File “/global/home/users/inhyungkim/.local/lib/python3.9/site-packages/openmc/deplete/”, line 10, in
from .operator import *
File “/global/home/users/inhyungkim/.local/lib/python3.9/site-packages/openmc/deplete/”, line 22, in
import openmc.lib
File “/global/home/users/inhyungkim/.local/lib/python3.9/site-packages/openmc/lib/”, line 32, in
_dll = CDLL(_filename)
File “/global/software/sl-7.x86_64/modules/langs/python/3.9/lib/python3.9/ctypes/”, line 382, in init
self._handle = _dlopen(self._name, mode)
OSError: /global/software/sl-7.x86_64/modules/langs/python/3.9/lib/python3.9/site-packages/numexpr/…/…/…/ version `GLIBCXX_3.4.29’ not found (required by /global/home/users/inhyungkim/.local/lib/python3.9/site-packages/openmc/lib/

Some details

  • OpenMC version 0.13
  • Built from the source
  • python version 3.9
  • installed the python API in my local directory
  • ~/.local/lib/python3.9

  • Working well without openmc.deplete, i.e. import openmc
  • Only problem when import openmc.deplete

@Inhyung You may want to look at this suggestion from a different project: