Skip to content

AirSpace and ShimmerHall import on MicroPython - #14

Merged
bdbarnett merged 1 commit into
mainfrom
fix-13-relative-imports
Nov 10, 2026
Merged

bdbarnett merged 1 commit into
mainfrom
fix-13-relative-imports

Conversation

@bdbarnett

Copy link
Copy Markdown
Contributor

Fixes #13. Both effects took the Reverb module with from . import reverb. MicroPython sends that through the package's lazy __getattr__, which only knows class names, so it raised AttributeError: reverb and neither effect could be imported. They now import audioeffects.reverb by its full name. No other module in the package imports a sibling that way.

On the unix MicroPython build, both imports fail on main and succeed with this change. CPython's tests run in CI.

Both took the Reverb module with `from . import reverb`, which MicroPython
sends through the package's lazy `__getattr__`. That only knows class names,
so it raised `AttributeError: reverb` and neither effect could be imported.
They now import `audioeffects.reverb` by its full name.

On the unix MicroPython build, `import audioeffects.airspace` and
`import audioeffects.shimmerhall` fail on main and import with this change.
Fixes #13.
@bdbarnett
bdbarnett merged commit c4d8c09 into main Nov 10, 2026
8 checks passed
@bdbarnett
bdbarnett deleted the fix-13-relative-imports branch November 10, 2026 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

AirSpace and ShimmerHall fail to import on MicroPython (AttributeError: reverb)

1 participant