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

Incompatible .mpy file error with CircuitPython code #1

Closed
alakazam1977 opened this issue Aug 4, 2024 · 1 comment
Closed

Incompatible .mpy file error with CircuitPython code #1

alakazam1977 opened this issue Aug 4, 2024 · 1 comment

Comments

@alakazam1977
Copy link

I'm experiencing an issue with the CircuitPython code I'm trying to run on my Raspberry Pi Pico W (BocoBot). The code is for a simple light searching robot using an LDR sensor and DC motors. When I run the code, I get a ValueError: incompatible .mpy file error.

The error occurs on line 9 of my code, which is where I import the motor module from adafruit_motor. I've checked that I have the latest version of CircuitPython installed on my board, and I've also tried updating the adafruit_motor library to the latest version.

I've tried to troubleshoot the issue, but I'm not sure what's causing the compatibility problem. Could you please help me resolve this issue? I'd appreciate any guidance on how to fix the compatibility problem or provide an updated mpy file that's compatible with my board's CircuitPython version.

Thank you for your assistance.

@SalamCytron
Copy link
Collaborator

Thanks for reporting this issue! The incompatible .mpy error can be fixed by using the .py version of the library instead of .mpy version. We have updated our repository to make it compatible with CircuitPython 9.

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