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

10,596

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.

Share:
10,596
user3576467
Author by

user3576467

Updated on June 27, 2022

Comments

  • user3576467
    user3576467 almost 2 years

    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.

  • Jiri Kriz
    Jiri Kriz almost 8 years
    Thank you for this very helpful tip!
  • Cassio
    Cassio about 6 years
    Okay, this is genius finding. Thanks a lot!
  • isabella
    isabella almost 4 years
    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!
  • kapalkat
    kapalkat over 3 years
    Hey man, thank you soo much! I was trying to resolve that problem for couple of hours with no luck!