modulepygamepython-2.5attributeerrortraceback

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


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.


Solution

  • 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.