Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

Python package error

Hello! I keep getting this error when I try to run Chat; Github Repo

 [WARNING           ] [Config      ] Older configuration version detected (0 instead of 14)
    [WARNING           ] [Config      ] Upgrading configuration in progress.
    [INFO              ] [Logger      ] Record log in /Users/Basse/.kivy/logs/kivy_16-04-19_0.txt
    [INFO              ] [Kivy        ] v1.9.1
    [INFO              ] [Python      ] v2.7.11 |Anaconda 2.5.0 (x86_64)| (default, Dec  6 2015, 18:57:58) 
    [GCC 4.2.1 (Apple Inc. build 5577)]
    [INFO              ] [Factory     ] 179 symbols loaded
    [INFO              ] [Image       ] Providers: img_tex, img_imageio, img_dds, img_gif, img_pil (img_pygame, img_ffpyplayer ignored)
    [CRITICAL          ] [Window      ] Unable to find any valuable Window provider at all!
    pygame - ImportError: No module named pygame
      File "//anaconda/lib/python2.7/site-packages/kivy/core/__init__.py", line 59, in core_select_lib
        fromlist=[modulename], level=0)
      File "//anaconda/lib/python2.7/site-packages/kivy/core/window/window_pygame.py", line 8, in <module>
        import pygame

    [CRITICAL          ] [App         ] Unable to get a Window, abort.`enter code here`

I have downloaded Kivy and Twisted, and I'm not sure how to fix this problem. Help?

1 Answer

You need to install the pygame module. See this link on how to install: https://inventwithpython.com/pygame/chapter1.html