I managed to solve the issue.
So I remembered that after I installed python3.10 the update command had this strange message.
In my browsing history I found the guide I followed to install python3.10.
Then I searched for the python version that does not show an error when I try to import openmediavault:
Then I followed the guide to make python3 call python3.7 instead of 3.10.