Python Forum
[PyGame] object has no attribute 'add_internal'
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] object has no attribute 'add_internal'
#2
(Feb-23-2021, 02:11 PM)djwilson0495 Wrote: Can someone help me with this error, I'm confused as I don't have 454 lines of code but that is where the error is reported.

Look and see how the error
Error:
ite-packages\pygame\sprite.py", line 454, in add sprite.add_internal(self)
is from "pygame\sprite.py" not your game. You try to add an object to a sprite group, which can only accept pygame sprite objects. Make sure your sprites are initialized:

class Star(pygame.sprite.Sprite):
    pygame.sprite.Sprite.__init__(self):
Reply


Messages In This Thread
RE: object has no attribute 'add_internal' - by michael1789 - Feb-23-2021, 04:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Attribute Error: object has no attribute djwilson0495 3 4,761 Jan-14-2021, 08:29 PM
Last Post: Larz60+
  beginner - object has no attribute gean 2 3,846 Nov-07-2019, 02:02 PM
Last Post: gean
  Tetris - AttributeError: 'list' object has no attribute 'y' abscorpy 6 6,788 Feb-28-2019, 05:20 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020