Skip to content

AttributeError: 'PyPortal' object has no attribute 'root_group' #139

@TheKitty

Description

@TheKitty

I was tracking down an error reported in the "Electronic History of the Day with PyPortal" guide. Issue #137 in this library had converted the PyPortal library from secrets.py to settings.toml but the guide had not been updated. I did update the guide.

Testing with a fresh copy of CircuitPython 9.2.8 with libraries, the code fails with

Traceback (most recent call last):
  File "code.py", line 39, in <module>
  File "adafruit_pyportal/__init__.py", line 181, in __init__
AttributeError: 'PyPortal' object has no attribute 'root_group'
]0;🐍181@adafruit_pyportal/__init__.py AttributeError | 9.2.8\

This library handles initialization of displayio for PyPortal objects. I see #138 changes things to use root_group. But the library when I try to use it says there is no root_group. In the examples, I cannot find any issue that differs from the code of the project at https://learn.adafruit.com/electronic-history-of-the-day-with-pyportal

Thank you for checking.

This issue is part of a project initiated by @ladyada to resolve feedback on the Adafruit Learning System.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions