ERROR in OPENMC: No cross section libraries present in cross_sections.xml file!

i am trying to run openmc but i am getting this error (picture 1)

I have setup the environment variable in the .bashrc like this (picture 2)
What am I doing wrong???

1 Like

That is strange. Your .bashrc file looks like it should set the environment variable correctly. As a sanity check, you might want to try the following before running OpenMC:

echo $OPENMC_CROSS_SECTIONS
cat $OPENMC_CROSS_SECTIONS

When running OpenMC, the error that you are seeing should only occur if your cross_sections.xml file does not have any elements inside it. You should make sure you do see elements in your cross_sections.xml file as well.

Best regards,
Paul

Now Openmc is running successfully.

** Is there anything wrong with python 2??

** when openmc - 0.11 is going to be released??

Thanks for your help.

Hi Ariful,

OpenMC 0.10 is the last version on which Python 2 will be supported. The developmental branch and the next release, 0.11, will only work with Python 3. We are aiming to have a new release out by the end of the month.

Best regards,
PAul