Skip to content

IndexError - index 254 out of bounds for axis 0 with size 6 #227

@distant-storm

Description

@distant-storm

I am running the spectra6 examples and expected to everything to just work out of the box.
I can run the stripes example with the default shipping image included with the examples, but it gives the below error.

Detected Spectra 6 7.3 800 x 480 (E673)
Traceback (most recent call last):
File "/home/web/inky/examples/spectra6/image.py", line 31, in
inky.set_image(resizedimage, saturation=saturation)
File "/home/web/.local/lib/python3.9/site-packages/inky/inky_e673.py", line 322, in set_image
self.buf = remap[numpy.array(image, dtype=numpy.uint8).reshape((self.rows, self.cols))]
IndexError: index 254 is out of bounds for axis 0 with size 6

The comic.py also gives this error.
I normally think it is something I have done, but would expect these to work out of the box. Maybe not the comic one if images are some permutation not known, but at least the example shipping one.

I saw some spectra branches on the repo but nothing indicating that I should switch to them.
Any ideas?

Metadata

Metadata

Assignees

No one assigned

    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