Luke Coopman
Luke Coopman

Reputation: 11

Copied this code from the official arcade site but i get this error: AttributeError: module 'arcade' has no attribute 'Scene'

When I run my code I get

Traceback (most recent call last):
  File "c:\Users\Luke Coopman\Python\game2.py", line 226, in <module>
    main()
  File "c:\Users\Luke Coopman\Python\game2.py", line 221, in main
    window.setup()
  File "c:\Users\Luke Coopman\Python\game2.py", line 66, in setup
    self.scene = arcade.Scene()
AttributeError: module 'arcade' has no attribute 'Scene'

I copied the code from here: https://arcade.academy/examples/platform_tutorial/step_08.html

Upvotes: 1

Views: 701

Answers (1)

Alderven
Alderven

Reputation: 8270

Most likely you're using Arcade 2.5.7 or older. Scene class was introduced on version 2.6.0. So you need to update your Arcade lib to the latest version.

Upvotes: 1

Related Questions