Error when trying to run openmc codes with python

Hello everyone,

I’m using windows and I’m trying to run openmc code using python, I tried both methods using jupyter notbook and running a python file and I get the same error shown in the screenshots, that there’s no module as openmc, though I was leaving the container on docker running. Is it related to python API? how can I fix this?
Thank you so much for your help.

and this too:
image

Hi Dalia

From the path in the above screenshot it looks like you are running from native Windows. OpenMC can’t currently be installed in native windows and if you want to stick with Windows you would need to use Docker or WSL.

Alternatively OpenMC supports Linux and Mac OSx natively

Got it, thank you so much for your help! I got ubuntu on virtualbox and with miniconda I finally got jupyter note to run openmc code!

1 Like