Pygame AttributeError: 'module' object has no attribute 'copy'
Asked Answered
G

1

8

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.

Ganges answered 2/5, 2014 at 0:33 Comment(3)
have a look here #1250603Padus
Post the code to the program, along with the stacktrace. Use gist.github.com if it's a lot of code or stacktrace.Cask
The link is gist.github.com/anonymous/9a529b53909ef8148bd4Ganges
K
24

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.

Kaykaya answered 22/7, 2015 at 0:39 Comment(3)
Okay, this is genius finding. Thanks a lot!Guv
I had the same problem and I deleted the file named wrongly as copy.py. But the error still persists, do you have any idea? Thanks!Basildon
Hey man, thank you soo much! I was trying to resolve that problem for couple of hours with no luck!Construct

© 2022 - 2024 — McMap. All rights reserved.