Ubuntu 18.04 - ImportError: cannot import name 'sub_forms_by_domain'

Let me answer my own question.

I have followed where does Python import the ufl package from and I have found another version of it located here:

/home/username/.local/lib/python3.6/site-packages

I have removed it and it seems to be working now.

4 Likes