Pygame AttributeError: 'module' object has no attribute 'copy'

user3576467 picture user3576467 · May 2, 2014 · Viewed 8.3k times · Source

I encountered Error: 'module' object has no attribute 'copy' while running a pygame program. In my code, I never referred to a copy attribute, so I don't understand where the error is coming from.

Answer

tao zhan picture tao zhan · Jul 22, 2015

I think there is a python file named "copy" in your directory. I had the same problem, after I delete the "copy" file, the error has gone.