No module named 'openmc'

994 views
Skip to first unread message

Lababsa Djahid

unread,
Apr 27, 2018, 6:37:30 AM4/27/18
to OpenMC Users Group
dear openmc users

I installed openmc from source on ubuntu 16.04 as mentioned in the guide, and then install the version 3-5.1.0 of Anaconda. when I  "import openmc" module in jupyter notebook. I get a the error massage. ModuleNotFoundError Traceback (most recent call last)
<ipython-input-4-d1f3e06c5152> in <module>()
      1 get_ipython().run_line_magic('matplotlib', 'inline')
----> 2 import openmc

ModuleNotFoundError: No module named 'openmc'

best reguard
Screenshot from 2018-04-27 11-35-29.png
Screenshot from 2018-04-27 11-36-30.png

Anthony Scopatz

unread,
Apr 27, 2018, 6:44:24 AM4/27/18
to Lababsa Djahid, OpenMC Users Group
What is printed when you run

conda list openmc

There was a recent build of the conda package where the python package was broken on python <3.6 It should be fixed if you do

conda install openmc

--
You received this message because you are subscribed to the Google Groups "OpenMC Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openmc-users...@googlegroups.com.
To post to this group, send email to openmc...@googlegroups.com.
Visit this group at https://groups.google.com/group/openmc-users.
For more options, visit https://groups.google.com/d/optout.
--

Asst. Prof. Anthony Scopatz
Nuclear Engineering Program
Mechanical Engineering Dept.
University of South Carolina
sco...@cec.sc.edu
Office: (803) 777-9334
Cell: (512) 827-8239
Office: Horizon 1, #011 (ground floor, not first)
Book a meeting with me at https://scopatz.youcanbook.me/
Open up an issue: https://github.com/scopatz/me/issues
Check my calendar

Paul Romano

unread,
Apr 27, 2018, 7:31:05 AM4/27/18
to Anthony Scopatz, Lababsa Djahid, OpenMC Users Group
Lababsa,

Try going to the openmc source directory and running:

pip install .

This should install the OpenMC Python package into your Anaconda environment (See the latest installation instructions here for further explanation).

Best regards,
Paul

On Fri, Apr 27, 2018 at 5:44 AM, Anthony Scopatz <sco...@gmail.com> wrote:
What is printed when you run

conda list openmc

There was a recent build of the conda package where the python package was broken on python <3.6 It should be fixed if you do

conda install openmc
On Fri, Apr 27, 2018, 6:37 AM Lababsa Djahid <lababs...@gmail.com> wrote:
dear openmc users

I installed openmc from source on ubuntu 16.04 as mentioned in the guide, and then install the version 3-5.1.0 of Anaconda. when I  "import openmc" module in jupyter notebook. I get a the error massage. ModuleNotFoundError Traceback (most recent call last)
<ipython-input-4-d1f3e06c5152> in <module>()
      1 get_ipython().run_line_magic('matplotlib', 'inline')
----> 2 import openmc

ModuleNotFoundError: No module named 'openmc'

best reguard

--
You received this message because you are subscribed to the Google Groups "OpenMC Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openmc-users+unsubscribe@googlegroups.com.

To post to this group, send email to openmc...@googlegroups.com.
Visit this group at https://groups.google.com/group/openmc-users.
For more options, visit https://groups.google.com/d/optout.
--

Asst. Prof. Anthony Scopatz
Nuclear Engineering Program
Mechanical Engineering Dept.
University of South Carolina
sco...@cec.sc.edu
Office: (803) 777-9334
Cell: (512) 827-8239
Office: Horizon 1, #011 (ground floor, not first)
Book a meeting with me at https://scopatz.youcanbook.me/
Open up an issue: https://github.com/scopatz/me/issues
Check my calendar

--
You received this message because you are subscribed to the Google Groups "OpenMC Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openmc-users+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages