Could you execute the script in a terminal and check, if you get a valid error message (I assume you are using a Jupyter Notebook at the moment).
If you get an error message, could you post it here, please?