First time here? Check out the FAQ!
answered 2018-10-04 15:56:31 -0600
I found the solution! I tried running the script using the default terminal that comes with mac and it worked :) So it seems there was some weird issue with the third party terminal (iTerm) I was using