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/depletion.py”, line 4, in
import openmc.deplete
File “/global/home/users/inhyungkim/.local/lib/python3.9/site-packages/openmc/deplete/init.py”, line 10, in
from .operator import *
File “/global/home/users/inhyungkim/.local/lib/python3.9/site-packages/openmc/deplete/operator.py”, line 22, in
import openmc.lib
File “/global/home/users/inhyungkim/.local/lib/python3.9/site-packages/openmc/lib/init.py”, line 32, in
_dll = CDLL(_filename)
File “/global/software/sl-7.x86_64/modules/langs/python/3.9/lib/python3.9/ctypes/init.py”, 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/…/…/…/libstdc++.so.6: version `GLIBCXX_3.4.29’ not found (required by /global/home/users/inhyungkim/.local/lib/python3.9/site-packages/openmc/lib/libopenmc.so)

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: