It looks like you’re trying to use numpy into an online study (the error window is from an online study). That won’t work, online studies use JavaScript, not Python. I suggest starting here: PsychoPy Python to Javascript crib sheet
If you actually just need to do a degree-to-radian conversion in javascript for your study, that’s not too hard to implement: JavaScript Math: Convert an angle from degrees to radians - w3resource