pimoroni / phat-beat

Python library for PHAT BEAT - A stereo DAC, AMP and VU for the Raspberry Pi
https://shop.pimoroni.com/products/phat-beat
MIT License
99 stars 28 forks source link

'Unary operator expected' when running phatbeat install script #40

Closed Mr-Chimp closed 1 year ago

Mr-Chimp commented 1 year ago

I recently tried to use the installation script to set up my phat beat once again but got three 'Unary operator expected' errors at various times during the scripts execution, it doesn't fail and continues with other bits it is doing but quite crucially things didn't work afterwards. I am using Raspbian OS Lite (32-bit)

I was able to get it to work properly again by executing the following commands at the terminal: extract OS_NAME="Raspbian" extract USER_HOME="/home/pi"

I also had to install git sudo apt install git and then the script ran perfectly.

I wasn't sure if this was the best way to post this as I have already solved the issue but I wanted to share my findings so I can hopefully save someone else many hours of debugging