'openmc' returned non-zero exit status 255

Dear All,
I am new to OpenMC and just trying to repeat the example model of criticality search on my own laptop. But it showed the error with Command ‘openmc’ returned non-zero exit status 255. I downloaded OpenMC using Anaconda. Does anyone knows how to solve it?

thx
Yibo
image

Here is a more clear picture of the error dercription.

@Yibo Welcome to the forum.

Did you try restarting the Jupiter kernel? I would say to restart your kernel and run the notebook again.

Yes I tried “restart and run all” in the command but it still shows the error.

@Yibo, Can you share your Notebook script?

It said that new users can not attached file so i can only share you the picture. It’s actually the example of Criticality research on this page:https://docs.openmc.org/en/stable/examples/search.html

And here is the left part.

@Yibo I didn’t face any error and I am not sure why are you seeing ‘openmc’ returned non-zero exit status 255 error? Did you try installing OpenMC again on a new conda environment?

Yeah I have tried several times. I download OpenMC using the “conda create -n openmc-env openmc” code and the version of my OpenMC is 0.12.0 with Python 3.7.1.

And i just delete my original environment and install it again with now python 3.9 but it still shows the same error.

@Yibo, Still now didn’t see any error with python 3.7 and 3.9.

Other’s can give a better answer.

I tried re-download all the thing form anaconda but it still do not work. Still thank you for your help Pranto!

@Yibo When you run openmc.run, under the hood the openmc executable is called. You should see output from the executable on the terminal associated with your Jupyter notebook. If you don’t see it, I would go to the directory with the .xml files that were generated using a terminal and run openmc. This should give you more information about what is going wrong.

Thank you for your help! When I run openmc.run it shows an error that “HDF5 data format uses version 1.0 whereas my installation of OpenMC expects version 3.x data.” How could I get that version of data?

Pregenerated HDF5 libraries can be found at https://openmc.org/

Thank you Paul! It works finally.