I believe it is a new error from the current dev version of dolfinx (i.e. 0.8.0dev) as I wished to update to nanobind. I can’t be certain of which git commit I used but I believe it was somewhere around this commit of dolfinx. Doflinx was installed in a conda environment via building the c++ core and pip installing (rather than conda-forge).
From the error message it may suggests a wrong shape for the marker.
I must admit I don’t really understand the lambda x: np.isclose(0,0) as this only returns True.
Those both seem to run but not producing what I would like. Which is to return the dof that corresponds to the point (0,0). This seems to be the output of lambda x: np.isclose(0,0) in previous versions as far as I understand. Although, now that I think about what np.isclose is doing, that’s probably incorrect. I’ve probably been using it incorrectly but somehow gotten the correct result.