Looking for Feedback on (in-progress) GUI for OpenMC

Link here:

Please give a detailed installation guide.
after running main.py it couldnt import das_core_components module,
i have installed it with pip install dash_core_components

Greetings @Sachin Shet!!

Thank you so much for taking a look at the project. Just to confirm a few things, what version of pip are you running, what is the output of pip show dash-core-components. Installing from the conda requirements file and the requirements file should install all required dependencies. Also if you could provide some details regarding your environment that would probably help as well.

  • Sterling

Also clone the dev branch as I haven’t merged some of the later commits yet

Hello Sterling,

Am using Ubuntu 16.04 LTS

Installed OpenMC from source and also copied openmc module to the current main.py directory
As i am new to conda. i have installed all dependancy with pip install package-name

pip version is 18.1

shet@shet-HP-Pavilion-Notebook:~/Downloads/OpenMC-Dash-InterFace-dev$ pip -V
pip 18.1 from /home/shet/miniconda3/lib/python3.7/site-packages/pip (python 3.7)

pip show dash-core-components

shet@shet-HP-Pavilion-Notebook:~/Downloads/OpenMC-Dash-InterFace-dev$ pip show dash-core-components
Name: dash-core-components
Version: 0.44.0
Summary: Dash UI core component suite
Home-page: UNKNOWN
Author: Chris Parmer
Author-email: chris@plot.ly
License: MIT
Location: /home/shet/miniconda3/lib/python3.7/site-packages
Requires:
Required-by: dash

On running MAin.py i get

shet@shet-HP-Pavilion-Notebook:~/Downloads/OpenMC-Dash-InterFace-dev$ python3 main.py
Running on http://127.0.0.1:8050/
Debugger PIN: 211-293-735
* Serving Flask app “app” (lazy loading)
* Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead.
* Debug mode: on
Traceback (most recent call last):
File “main.py”, line 84, in
app.run_server(debug=True)
File “/home/shet/miniconda3/lib/python3.7/site-packages/dash/dash.py”, line 1411, in run_server
**flask_run_options)
File “/home/shet/miniconda3/lib/python3.7/site-packages/flask/app.py”, line 943, in run
run_simple(host, port, self, **options)
File “/home/shet/miniconda3/lib/python3.7/site-packages/werkzeug/serving.py”, line 988, in run_simple
run_with_reloader(inner, extra_files, reloader_interval, reloader_type)
File “/home/shet/miniconda3/lib/python3.7/site-packages/werkzeug/_reloader.py”, line 332, in run_with_reloader
sys.exit(reloader.restart_with_reloader())
File “/home/shet/miniconda3/lib/python3.7/site-packages/werkzeug/_reloader.py”, line 176, in restart_with_reloader
exit_code = subprocess.call(args, env=new_environ, close_fds=False)
File “/home/shet/miniconda3/lib/python3.7/subprocess.py”, line 317, in call
with Popen(*popenargs, **kwargs) as p:
File “/home/shet/miniconda3/lib/python3.7/subprocess.py”, line 769, in init
restore_signals, start_new_session)
File “/home/shet/miniconda3/lib/python3.7/subprocess.py”, line 1516, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: ‘/home/shet/Downloads/OpenMC-Dash-InterFace-dev/main.py’

i tried both master and dev branch. this is from latest dev branch*…*

Let me know if you want any other information.

Since it appears you are running main.py as a standalone executable, you will need to add a shebang. See: https://stackoverflow.com/questions/6908143/should-i-put-shebang-in-python-scripts-and-what-form-should-it-take

If you have an IDE, I'd recommend running with the IDE first and see if you get the same error. Otherwise add a shebang that works for you and let me know if you have any problems. Also your pip version isn't up to date but that's not the problem.

Thank you sterling … i will try

Great! Let me know if it works out

Hye Sterling,

I downloaded the plotter from openmc-dev. I tried to plot a simple model but got the error "no Module named ‘openmc.capi.plot’, I am running openmc 0.10.0 on Ubuntu 18.04.2.

I guess plotter only works with develop branch. Right? or i am missing something else.

Thanks for the effort, by the way…

Hey @Khurrum, thank you for your interest!

Can you walk me through your steps for “plotting a simple model”. You could be referring to two different things here - the GUI is capable up setting up simulations in which “plots” are created to represent geometry as your progress through the simulation setup. Additionally, the GUI can read statepoint files in the project directory (I haven’t linked the ability to read uploaded statepoint files) - the data read from the statepoint file is then “plotted”.

To which “plot” are you referring?

As for your error, I think it might help if I knew your method for installing openmc as it doesn’t sound like a problem with the GUI (since no openmc plotting libraries are used in the GUI [however, creating the xml files is supposed to generate an openmc geometry plot]) - did you build from source, install from conda-forge, or something else?

Hye @Sterling.

I installed openmc from source. Went through the routine of cmake then make then make install. python api is also in place when used make install.

As mentioned on github readme.md of plotter, i am using python3 /path/to/plot_explorer.py inside the directory where i have place my model. Basically trying to plot the distribmat test file present in OpenMC tests.

You can see the screen shot here.


@Khurrum,

I’m quite confused now as I have no association with plotter and I am not a contributor to the OpenMC repo. Is this another GitHub project? My project is located here: https://github.com/SterlingButters/OpenMC-Dash-InterFace which only creates a (separate “3rd Party”) GUI for OpenMC

@Sterling

Aaaahhh. sorry for this confusion. I was talking about https://github.com/openmc-dev/plotter. extremely sorry. I will give your GUI a try to give you some REAL feedback (not like this mixup) :slight_smile:

Keep up the good work

Hye again @Sterling

I installed the correct thing this time. I have gone through your and Sachin’s posts.

I tried both the dev and master branches. I tried both the conda and normal UBUNTU environment. I also tried running using IDE. I also added the shabang.

Everything seems normal until it isn’t. I am trying to run the main.py file on standalone basis. See the screenshot below.

There is no error message but there is no progress also. In Conda my ipython version is 7.2.0 but in normal ubuntu use even this is not the problem. in both cases the end result is the same.

Can you help.

So turns out that all was OK. I just needed to open the http://127.0.0.1:8050 (as shown in figure above) in my browser and it loaded.

Thanks @Sterling.

Thank you Sterling. Now i can run it successfully

Nice!! Lemme know what you think