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.
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.