Hey, this is my first time on this board so I apologize if this is the wrong section (although I believe it is). I am new to python and I'm following a tutorial that is teaching me some basic stuff to get into 2D video game design. Currently I'm just putting an image into a window. This is the code/error.
Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Inte Type "help", "copyright", "credits" or "license" for more informat >>> import pygame, sys,os >>> from pygame.locals import * >>> pygame.init() (6, 0) >>> window = pygame.display.set_mode((468,60)) >>> window = pygame.display.set_mode((468,60)) >>> pygame.display.set_caption('Monkey Fever') >>> screen = pygame.display.get_surface() >>> monkey_head_file_name = os.path.join("data","chimp.bmp") >>> print monkey_head_file_name data\chimp.bmp >>> monkey_surface = pygame.image.load(monkey_head_file_name) Traceback (most recent call last): File "<stdin>", line 1, in ? pygame.error: Couldn't open data\chimp.bmp >>>
I am certain that I have the files and that they are in the proper directory.