I just put the script on my machine and tried it and I got exactly the same error.