Why am I getting this AttributeError ? (python3 , pygame)

前端 未结 1 1055
无人共我
无人共我 2021-01-28 06:01

Below is the error I am receiving and the code I have written. I know similar questions have been asked , but the solutions they are given do not relate to this case. And I can\

1条回答
  •  借酒劲吻你
    2021-01-28 06:55

    You are shadowing the pygame library with another pygame.py file, probably in the same location as gamephysics.py.

    Print out the file path of the offending module:

    import pygame
    
    print('Path to pygame module:', pygame.__file__)
    

    This will you show you where the 'rogue' module is located. Once you find it, rename it to something else.

    0 讨论(0)
提交回复
热议问题