Adafruit_CircuitPython_CharLCD icon indicating copy to clipboard operation
Adafruit_CircuitPython_CharLCD copied to clipboard

ValueError: incompatible .mpy file

Open zeankundev opened this issue 1 year ago • 1 comments

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.

zeankundev avatar Jan 28 '24 02:01 zeankundev

https://circuitpython.org/libraries explains in detail about versions. You need the versions of the libraries to match up with the version of CircuitPython.

  1. Upgrade your CircuitPython to 8.2.9. See https://circuitpython.org/downloads to download.
  2. Record which libraries are in the lib/. Then remove them and install libraries that match your version of CircuitPython.
  3. 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 .

dhalbert avatar Jan 28 '24 14:01 dhalbert