Again, read our guidelines on posting topics. If absolutely nothing else, you need to enclose long blocks of code and error messages in blockquotes.
How are you running this file? Are you calling it as a pure Python script, or something else?
Again, read our guidelines on posting topics. If absolutely nothing else, you need to enclose long blocks of code and error messages in blockquotes.
How are you running this file? Are you calling it as a pure Python script, or something else?