circuitpython: can't load adafruit_dotstar library on unexpectedmaker feather S2
CircuitPython version
Adafruit CircuitPython 8.2.3 on 2023-08-11; FeatherS2 with ESP32S2
Board ID:unexpectedmaker_feathers2
Code/REPL
import adafruit_dotstar
Behavior
Traceback (most recent call last): File “<stdin>”, line 1, in <module> File “adafruit_dotstar.py”, line 44, in <module> ImportError: no module named ‘adafruit_pypixelbuf’
Description
Complains about missing adafruit_pypixelbuf. Tried replacing adafruit_dotstar.mpy with the .py version, as the code does not have the “py” in pixelbuf, but that did not help. Module must be part of what has been flashed to the device in 8.2.3.
Additional information
Can’t figure a workaround. Board will not work with dotstars.
About this issue
- Original URL
- State: closed
- Created 10 months ago
- Comments: 18 (1 by maintainers)
I never looked in the top level. Duh. When I went to 8.2.2, I did an erase, which must have eliminated the unwanted .py file, correcting the issue.
Thank you for your assistance.
On Mon, Aug 21, 2023 at 12:22 AM Unexpected Maker @.***> wrote:
Key point here is “had it for a long time” and now just re-flashed it. The shipping code that was on there was a much older version of the files, and new shipping files are available (as always) from here… https://github.com/UnexpectedMaker/feathers2/tree/main/FeatherS2/CircuitPython
Or as @DJDevon3 stated, delete the version of the dotstar library I shipped and then it should use the version from the bundle.
tagging @UnexpectedMaker
Figured out you did nothing wrong. Unexpected Maker ships the board pre-installed with Circuit Python and an adafruit_dotstar.py in the root directory which will override any adafruit_dotstar.py or .mpy in the /lib folder. That’s the issue.
Delete that file and upload a newer version from the 8.x bundle to /lib and should be good to go. Was unaware of this issue… I’m sure we’ll definitely see it pop up again someday.