So! It turns out that the errors that stumped ChatGPT I could help resolve with another online tool: which gave helpful suggestions. Still not doing what I want I wasted 4-5 hours on a piece of code I might have been able to write on my own in 1-2 hours.