I have an issue with some code I have written, that runs perfectly on fenicsx 0.8 installed via conda. I brought that code to another PC which had 0.7.2 so I installed a new environment with fenicsx 0.8. I would like to keep the old environment so my old code still runs (its the idea behind environments afaik).
In the new environment I get cpp errors. I can’t generate the mesh. I suspect it is some kind of installation error. With:
from dolfinx import mesh
from mpi4py import MPI
mesh.create_unit_square(MPI.COMM_WORLD, 10, 10)
I get:
terminate called after throwing an instance of 'nanobind::python_error'
what(): AttributeError: type object 'dolfinx.cpp.mesh.CellType' has no attribute '__qualname__'
Is there a way to do this correctly so I can keep both installations? Am I right that this is actually stemming from having both installed simultaneously?