My problem was related to the fact that I used python 3.13 on MacOS, the problem is partially described here.
Downgrading the version solved the problem:
brew unlink [email protected]
brew unlink [email protected]
brew link --force [email protected]