Hello,
I am using the default script from https://github.com/friendlyarm/NanoHatOLED with my nanopi neo2. Running the bakebit script:
Everything works fine until I try to get to the second page. Once I press K2, the output is:
Has anyone run into this? Thanks
I am using the default script from https://github.com/friendlyarm/NanoHatOLED with my nanopi neo2. Running the bakebit script:
Code: Select all
~/NanoHatOLED/BakeBit/Software/Python$ python bakebit_nanohat_oled.py
Everything works fine until I try to get to the second page. Once I press K2, the output is:
Code: Select all
K2 pressed
Traceback (most recent call last):
File "bakebit_nanohat_oled.py", line 286, in <module>
time.sleep(1)
File "bakebit_nanohat_oled.py", line 240, in receive_signal
draw_page()
File "bakebit_nanohat_oled.py", line 156, in draw_page
draw.text((x, top+5), "IP: " + str(IP), font=smartFont, fill=255)
File "/usr/local/lib/python2.7/dist-packages/PIL/ImageDraw.py", line 209, in text
*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/PIL/ImageDraw.py", line 233, in multiline_text
line_width, line_height = self.textsize(line, font)
File "/usr/local/lib/python2.7/dist-packages/PIL/ImageDraw.py", line 260, in textsize
return font.getsize(text, direction, features)
File "/usr/local/lib/python2.7/dist-packages/PIL/ImageFont.py", line 156, in getsize
size, offset = self.font.getsize(text, direction, features)
SystemError: error return without exception set
Has anyone run into this? Thanks