smittytone / HT16K33-Python

Combination Micropython and Circuitpython drivers for various HT16K33-based LEDs
https://smittytone.net/docs/ht16k33.html
MIT License
31 stars 7 forks source link

incompatible .mpy file error #13

Closed jkozniewski closed 9 months ago

jkozniewski commented 10 months ago

Hi,

Trying to use your library on pico pi micropython: MicroPython v1.21.0, picow v1.21.0 on 2023-10-06; Raspberry Pi Pico W with RP2040 via .mpy files (the installation via mip failed - OSError -6) but upon running example code I'm getting the error:

Traceback (most recent call last): File "<stdin>", line 4, in <module> ValueError: incompatible .mpy file

The .mpy files are where they should be I guess (using MicroPico VS Code extension): Screenshot 2024-01-03 at 15 02 17

Any clues of what might be the problem here ? Thanks !

smittytone commented 10 months ago

You could try using the latest version of mpy-cross. I suspect the version used to compile my .mpy files is out of date and there's a breaking change between 1.18 (which I have) and the latest (1.22.1).

smittytone commented 9 months ago

Yes, pretty sure this is caused by the .mpy files being out of date. However, I'm going to remove these from the next release and instead provide instructions for those folks who need .mpy files. That way they will always have up-to-date files.

jkozniewski commented 9 months ago

ok, thanks - for now I've switched to use .py files, cross compilation to .mpy is something I need to investigate in the future I guess :)