OpenMC installation problem

Hi Shurahbil,

I have figured it out why openmc-0.12-dev was running under [ not_base ] environment where you have installed openmc-0.11. Most probably you have followed following command for compiling

mkdir bld
cd bld
cmake …
make
sudo make install

This will create an executable named openmc in /usr/local/bin directory and library in /usr/local/lib. It will execute from root file.

It is possible to specify a different installation directory by adding -DCMAKE_INSTALL_PREFIX=/path/to/install/dir

cmake -DCMAKE_INSTALL_PREFIX=/path/to/install/dir …
make
make install

Then create a PATH variable for install dir in .bashrc.

export PATH=/path/to/install/openmc/bin:$PATH

export LD_LIBRARY_PATH=/path/to/install/openmc/lib:$LD_LIBRARY_PATH

-Pranto

Try a fresh install of openmc.
[ not_base ]
conda env remove -n not_base

[ base ]
conda uninstall openmc

Now create a new env and install openmc.

```conda create -n shurahbil openmc conda install notebook conda install vtk Hopefully you will not get any error.`

[ o.12-dev ]
In .bashrc
export PATH=/path/to/install/openmc/bin:$PATH

export LD_LIBRARY_PATH=/path/to/install/openmc/lib:$LD_LIBRARY_PATH

You have to careful under which virtual env you type pip install . command.

Hope It helps..

Glad to hear this. You can’t hide from me Shurahbil. :grinning:

-Pranto

Hello Shurahbil,

[ Not_base ]
You got import openmc error because of not installing notebook. Solution: conda install notebook.

I will recommend you to prevent opening base environment by default. Command: conda config --set auto_activate_base false

[ base ]
Your pip install command install python module in base environment. Did you set environment variable for your installation path [ 0.12-dev ]. In your [ not_base ], type: conda list openmc. It will tell you the which version of openmc you have.
``