[SOLVED] Unicorn Hat not working

Hi,

On a fresh up-to-date PI OS install on a Raspberry PI 3 A+.
Raspbian GNU/Linux 10 (buster)

I have installed unicorn hat as in the github:

curl https://get.pimoroni.com/unicornhat | bash

But when i try an example i have this error message:

# sudo python demo.py
Traceback (most recent call last):
File "demo.py", line 7, in <module>
import unicornhat as unicorn
ImportError: No module named unicornhat

Any ideas ?

I solve this problem:

sudo python3 demo.py

works perfectly

1 Like