I had the same ERROR message and i fix it by creating a new python virtual environment with python 3.12.4, this might not be the right answer to the problem but hope it will be helpful somehow!