You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Raspberry PI 4 Bullseye. with SSD1306 OLED. Getting error below when running script in IDLE. Tried several other scripts, [terminal, histogram, runner, et.al.] and they all work fine. Appreciate any help in resolving this error.
Thank You.
Traceback (most recent call last):
File "/home/pi/SSD1306/luma.examples-main/examples/sys_info_extended.py", line 166, in
stats(device)
File "/home/pi/SSD1306/luma.examples-main/examples/sys_info_extended.py", line 140, in stats
draw_text(draw, 0, 4, get_ip(network_interface_name))
File "/home/pi/SSD1306/luma.examples-main/examples/sys_info_extended.py", line 84, in get_ip
return "IP: %s" % (get_ipv4_address(network_interface_name))
File "/home/pi/SSD1306/luma.examples-main/examples/sys_info_extended.py", line 68, in get_ipv4_address
if_stats_filtered = {key: if_stats[key] for key, stat in if_stats.items() if "loopback" not in stat.flags}
File "/home/pi/SSD1306/luma.examples-main/examples/sys_info_extended.py", line 68, in
if_stats_filtered = {key: if_stats[key] for key, stat in if_stats.items() if "loopback" not in stat.flags}
AttributeError: 'snicstats' object has no attribute 'flags'
The text was updated successfully, but these errors were encountered:
Hi,
Raspberry PI 4 Bullseye. with SSD1306 OLED. Getting error below when running script in IDLE. Tried several other scripts, [terminal, histogram, runner, et.al.] and they all work fine. Appreciate any help in resolving this error.
Thank You.
Traceback (most recent call last):
File "/home/pi/SSD1306/luma.examples-main/examples/sys_info_extended.py", line 166, in
stats(device)
File "/home/pi/SSD1306/luma.examples-main/examples/sys_info_extended.py", line 140, in stats
draw_text(draw, 0, 4, get_ip(network_interface_name))
File "/home/pi/SSD1306/luma.examples-main/examples/sys_info_extended.py", line 84, in get_ip
return "IP: %s" % (get_ipv4_address(network_interface_name))
File "/home/pi/SSD1306/luma.examples-main/examples/sys_info_extended.py", line 68, in get_ipv4_address
if_stats_filtered = {key: if_stats[key] for key, stat in if_stats.items() if "loopback" not in stat.flags}
File "/home/pi/SSD1306/luma.examples-main/examples/sys_info_extended.py", line 68, in
if_stats_filtered = {key: if_stats[key] for key, stat in if_stats.items() if "loopback" not in stat.flags}
AttributeError: 'snicstats' object has no attribute 'flags'
The text was updated successfully, but these errors were encountered: