I think the issue is Python version. I was having the same error while using Python 3.15 version so I downgraded to 3.8 and it works.
Python 3.15
3.8
Also, as per the Astra DB documentation Python 3.4, 3.5, 3.6, 3.7, and 3.8 are supported