Good day everyone,
Please i am havingproblem installing mshr on Anaconda in ubuntu. After installing and importing mshr, i have the below errors:
ImportError Traceback (most recent call last)
----> 1 import mshr
init.py in ()
22 import dolfin
—> 24 from .cpp import Circle
25 from .cpp import Ellipse
26 from .cpp import Rectangle
ImportError: generic_type: type “CSGGeometry” referenced unknown base type “dolfin::Variable”
May 18, 2020, 11:14am
Hi dokken, thanks for ur reply.
i tried Huwans suggestion i received the below error: “failed with initial frozen”
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: |
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
May 18, 2020, 12:28pm
Did you try the solution from the later posts ? (
Anaconda Installation of Fenics and Mshr)
I had the same issue with anaconda in macOS I could solve it look here
Thank you for your suggestion but slepc is installed I just checked with conda list
slepc 3.11.2 h1ce4c84_1 conda-forge
slepc4py 3.11.0 py37hc459697_0 conda-forge
By noticing that the error message could not load libslepc.3.12 I I installed slepc 3.12and everything works now.
So the cure is simply to conda install -n fenicsproject -c conda-forge slepc=3.12
replacing fenicsproject by your fenics environement name
Thanks Dokken, i have resoled it using Huwans procedure