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.
Asked
Active
Viewed 1.3k times
8

user3576467
- 424
- 1
- 7
- 10
-
have a look here http://stackoverflow.com/questions/1250103/attributeerror-module-object-has-no-attribute – Padraic Cunningham May 02 '14 at 00:36
-
Post the code to the program, along with the stacktrace. Use https://gist.github.com/ if it's a lot of code or stacktrace. – Adam F May 02 '14 at 00:36
-
The link is https://gist.github.com/anonymous/9a529b53909ef8148bd4 – user3576467 May 03 '14 at 15:04
1 Answers
23
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.

tao zhan
- 245
- 3
- 6
-
-
-
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! – isabella May 12 '20 at 01:52
-
Hey man, thank you soo much! I was trying to resolve that problem for couple of hours with no luck! – kapalkat Oct 07 '20 at 21:11