BradleyA / pi-display

Displays are Pimoroni Blinkt, Scroll-pHAT, and Scroll-pHAT-HD connected to Raspberry Pi 3 using Triple GPIO Multiplexing Expansion Board
MIT License
3 stars 0 forks source link

display-led.py correct run error #38

Closed BradleyA closed 6 years ago

BradleyA commented 6 years ago

display-led.py check-markit 134 [INFO]: /usr/local/bin/display-led.py release 3.141.283, commit date 2018-09-22_13:30:59_CDT

Traceback (most recent call last): File "/usr/local/bin/display-led.py", line 89, in FILE_NAME = DATA_DIR + CLUSTER + FILE_NAME TypeError: Can't convert 'bytes' object to str implicitly

BradleyA commented 6 years ago
import socket
FILE_NAME = socket.getfqdn()
FILE_NAME = DATA_DIR + "/" + CLUSTER + "/" + FILE_NAME
if DEBUG == 1 : print (">{} DEBUG{} {}  FILE_NAME >{}< FILE_NAME >{}<".format(color.BOLD, color.END, get_line_no(), FILE_NAME, FILE_NAME))