This was actually really simple. I was using python 3.13 previously. I downgraded to 3.12, created a new virtualenv, and the migrations ran smoothly.