Problem importing mshr; no module named _mshr

Issue #13 resolved
Former user created an issue

I've compiled FEniCS via Dorsal (didn't work to install mshr there by the way). Anyhow, installing mshr manually works fine, however when I try to import mshr into my Python script I get the following error:

File "<string>", line 1, in <module>

File "/usr/local/lib/python2.7/dist-packages/mshr.py", line 32, in <module> _mshr = swig_import_helper()

File "/usr/local/lib/python2.7/dist-packages/mshr.py", line 24, in swig_import_helper import _mshr

ImportError: No module named _mshr

I'm sure there is an easy fix.

Comments (9)

  1. Former user Account Deleted reporter

    Running $ python -c "import mshr" yields

    ImportError: /usr/local/lib/libmshr.so.1.4: undefined symbol: _ZNK6dolfin12MeshTopology12ghost_offsetEm

  2. Benjamin Dam Kehlet

    Seems like mshr and dolfin are not compatible. Maybe there are changes in Dolfin that hasn't reached our testserver yet. What version of Dolfin is this?

  3. Former user Account Deleted reporter

    I recompiled and reinstalled mshr after switching back to stable build 1.4.0 and it worked fine. Seems like it's a conflict with the development version 1.4.0+ then.

  4. Benjamin Dam Kehlet

    I'm having trouble reproducing this. Joakim: Do you know exactly what version of Dolfin caused this? I have tried what both the tip of master and next (and with both cmake 2 and 3). What is with a recent checkout of the master branch of mshr?

  5. Log in to comment