Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: incompatible .mpy file #78

Open
zeankundev opened this issue Jan 28, 2024 · 1 comment
Open

ValueError: incompatible .mpy file #78

zeankundev opened this issue Jan 28, 2024 · 1 comment

Comments

@zeankundev
Copy link

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.

@dhalbert
Copy link
Contributor

dhalbert commented Jan 28, 2024

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants