Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Luma Examples: Script: System_Info_Extended.py #182

Open
resmithn opened this issue Feb 22, 2025 · 0 comments
Open

Luma Examples: Script: System_Info_Extended.py #182

resmithn opened this issue Feb 22, 2025 · 0 comments

Comments

@resmithn
Copy link

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant