This program runs OK on a Pi b+ under Wheezie but on transfering it to a Pi2 running Jessie it gives the error 'No video mode has been set'. It calls a gif file in the same directory called spritesheet.gif. I have not so far found any help in my reading; can anyone advise. The ##### is to indicate the faulty line.
Malcolm
#!/usr/bin/env python #animation.py
import pygame,sys from pygame.locals import*
pygame.init()
pygame.display.set_caption( 'Malcs Game2')
RED=(255,0,0) clock=pygame.time.Clock()
counter=0 sprites=[]
sheet=pygame.image.load('spritesheet.gif').convert_alpha()######## width=sheet.get_width() for event in pygame.event.get(): if event.type==QUIT: pygame.quit() sys.exit()
for i in range(int(width/128)): sprites.append(sheet.subsurface(i*128,0,128,128))
ZONE.fill(RED) ZONE.blit(sprites[counter],(10,10))
counter=(counter+1)%8
clock.tick(16)