Unknown ufl object type VectorElement error

You have a mixture of system wide installation in /usr/lib/, and an installation that you obtained in some other way in /usr/local/lib.

Make a backup of /usr/local/lib/python3.10/dist-packages and the proceed with uninstalling ffc and ufl from there. After you have done that, they will be importing from /usr/lib/, not /usr/local/lib.

Once you are at it, look at Announcement: ufl_legacy and legacy dolfin just in case (summary: from now on you should import ufl_legacy, and not ufl, if you have any such import in your own code.)

1 Like