Adafruit_CircuitPython_CharLCD
Adafruit_CircuitPython_CharLCD copied to clipboard
ValueError: incompatible .mpy file
I tried using charlcd_i2c class in my circuitpython code, and all it says is just incompatible .mpy file. I tried all solutions, including rolling back to an older bundle from 6.x, and none of that seems to work.
https://circuitpython.org/libraries explains in detail about versions. You need the versions of the libraries to match up with the version of CircuitPython.
- Upgrade your CircuitPython to 8.2.9. See https://circuitpython.org/downloads to download.
- Record which libraries are in the
lib/
. Then remove them and install libraries that match your version of CircuitPython. - Make sure also that there aren't .mpy files in the top level of CIRCUITPY. They will be used before versions that are in
lib/
.
This is a support issue, so better places to ask are https://adafru.it/discord and https://forums.adafruit.com/viewforum.php?f=60 .