sudo python PiPhi.py
If that doesn’t fix it, check for any solder bridges or cold joints on the LCD plate, and make sure the headers between the plate and Raspberry Pi are aligned.
Or the code may be having difficulty accessing the I2C bus. We can override this manually if the need arises. Edit PiPhi.py, looking for this line:
lcd = Adafruit_CharLCDPlate()
And simply add this parameter:
lcd = Adafruit_CharLCDPlate(busnum=1)
Run the code again and see if that helps.
“Hidden” WiFi networks are particularly fussy, and even with the extra directions provided might not connect. We very strongly recommend using a broadcast network name. If using a hidden network…when creating the file wpa_supplicant.conf, did you remember to change the SSID and password to the values used by your network?
It might also be an incompatible USB wireless adapter. The one in the Adafruit shop is known to work with the Raspberry Pi.
If in doubt, run pianobar directly from the command line first. Once that’s working, then move on to the PiPhi script.
sudo amixer cset numid=3 1
fingerprint=`openssl s_client -connect tuner.pandora.com:443 < /dev/null 2> /dev/null | openssl x509 -noout -fingerprint | tr -d ':' | cut -d'=' -f2` && echo tls_fingerprint = $fingerprint >> ~/.config/pianobar/config
Then try pianobar (or PiPhi) again.
(from Jacob Roeland's “pidora” tutorial)