Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pygame
#11
(Apr-26-2018, 10:02 AM)Dobrasz Wrote: I also ran the code in Terminal and I get a syntaxError.
Go on...
Reply
#12
Go on... well unfortunately the story ends there...

Terminal says the following:
File "<stdin>", line 14
run_game()
^
SyntaxError: invalid syntax

Back to SubLime, the error says 'AttributeError: module 'pygame' has no attribute 'init' - can you share some light what this means?
Reply
#13
They're either two different files, or you're using two different versions of python. The same file will not give different errors depending on how you run it.

Any better comments would probably need whatever code you're running, along with whatever the full traceback is.
Reply
#14
Hey Nilamo
I figured it out... finally. You are on the money.
Cheers
Reply


Forum Jump:

User Panel Messages

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