This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

no module named mshr (Ubuntu 16.04)

0 votes

i just installed fenics on Ubuntu 16.04, and i'm able to import dolfin just fine. when i try:

import mshr

i get the following error:

ImportError Traceback (most recent call last)
ipython-input-1-8a0830bf6ff0> in module>()
----> 1 import mshr

ImportError: No module named mshr

any help figuring this out would be greatly appreciated.

thank you.

asked May 2, 2016 by sophia_wright FEniCS Novice (230 points)

1 Answer

+1 vote
 
Best answer

There was a problem building mshr 1.6.0 on Ubuntu 16.04 because it included an old version of CGAL. This version of CGAL had some issues with the CMake version in the latest Ubuntu release. This has been fixed now with a patch in mshr and the FEniCS PPA now includes mshr also on Ubuntu 16.04.

answered May 2, 2016 by johannr FEniCS Expert (17,350 points)
selected May 6, 2016 by sophia_wright

It works now! Thank you for the quick reply.

...