New to raspberry

i get this message when i run a script on python 3.5. i was using this pi zero as an ok to wake for our special needs child and it all of a sudden quit so i put this canned code in and get the same message.

Traceback (most recent call last):
File “/home/pi/Pimoroni/unicornhat/examples/”, line 12, in
import unicornhat as unicorn
File “/usr/local/lib/python3.5/dist-packages/”, line 35, in
File “/usr/local/lib/python3.5/dist-packages/rpi_ws281x/”, line 117, in begin
raise RuntimeError(‘ws2811_init failed with code {0} ({1})’.format(resp, str_resp))
RuntimeError: ws2811_init failed with code -5 (mmap() failed)