Thanks. I removed all errors using your method, but no avail. I re-uploaded a cleaned version of that book, just debugging purpose. And I'll delete it later.
It seems from the error code that the related codes locate here:
I don't know Python much though. Does anyone have any idea?