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)

Most upvoted comments

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:

This was an otherwise new S2 I had in a drawer for a long time. I flashed to 8.2.3 and it no longer ran the sample code that flashes the dotstar. At this point /lib was empty, so I loaded the entire bundle into /lib. Still broken at that point. You now have the entire history. … <#m_-6995811300477154901_>

Key point here is “had it for a long time” and now just re-flashed it. The shipping code that was on there was for 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

— Reply to this email directly, view it on GitHub https://github.com/adafruit/circuitpython/issues/8302#issuecomment-1685618706, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF37LILZ4PX3GLKLTLZIR33XWLPABANCNFSM6AAAAAA3XHYXD4 . You are receiving this because you authored the thread.Message ID: @.***>

This was an otherwise new S2 I had in a drawer for a long time. I flashed to 8.2.3 and it no longer ran the sample code that flashes the dotstar. At this point /lib was empty, so I loaded the entire bundle into /lib. Still broken at that point. You now have the entire history.

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.

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.

Capture

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.