Issue importing openmc.mgxs

Hello everyone,

I have been trying to run an multi-group input similar to the example multi-group pincell example. However when I try to import openmc.mgxs I receive the following error:

Traceback (most recent call last):

  File ~/anaconda3/envs/openmc-env/lib/python3.11/site-packages/spyder_kernels/py3compat.py:356 in compat_exec
    exec(code, globals, locals)

  File ~/OpenMC/Input/2gPin/openmc.py:2
    import openmc

  File ~/OpenMC/Input/2gPin/openmc.py:3
    import openmc.mgxs as mgxs

ModuleNotFoundError: No module named 'openmc.mgxs'; 'openmc' is not a package

I have tried this to import openmc.mgxs in versions 0.15.0, 0.14.0, and 0.13.3, but the I get the same error message. Does anyone know how to fix this issue?

Thank you,
Vidor

I have an update on this issue, I have tried running the file from within the Python API folder, and the module is found. So, the issue is with version of the API after pip installing. However, I am now running into another issue, when mgxs_library calls openmc.mgxs.MAX_DELAYED_GROUPS it tries get it from openmc.mgxs.mgxs instead of openmc.mgxs.mdgxs.