Metro M4 Airlift Lite issue

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
steve220
 
Posts: 36
Joined: Sat Sep 16, 2017 10:52 pm

Metro M4 Airlift Lite issue

Post by steve220 »

Updated the bootloader (3.13) and Circuitpython (7.0).
The default CP program throws an error when running the command:
"import adafruit_esp32spi.adafruit_esp32spi_requests as requests"
I get an incompatible .mpy error even though I'm running the latest libs.


By the way, ditto on the Metro M4 Express. Latest bootloader and libraries installed. The default CP program throws the following error:
Traceback (most recent call last):
File "code.py", line 15, in <module>
File "adafruit_hid/keyboard.py", line 17, in <module>
ImportError: no module named 'adafruit_hid.find_device'

User avatar
dastels
 
Posts: 15655
Joined: Tue Oct 20, 2015 3:22 pm

Re: Metro M4 Airlift Lite issue

Post by dastels »

The "ImportError: no module named 'adafruit_hid.find_device" error generally means something is missing from the lib directory. It could also be misspelled but that's unlikely since it's usually just copied from the bundle.

When you updated to 7.0 did you delete everything in the CIRCUITPY/lib directory (and empty trash) before copying new libs into CIRCUITPY/lib? Same thing may apply to the adafruit_hid issue.

Dave

User avatar
steve220
 
Posts: 36
Joined: Sat Sep 16, 2017 10:52 pm

Re: Metro M4 Airlift Lite issue

Post by steve220 »

I redid as you suggested and I still get the error.
Looking in the .py version, I don't see "adafruit_esp32spi.adafruit_esp32spi_requests" anywhere in the new library.
I'll keep troubleshooting...

User avatar
dastels
 
Posts: 15655
Joined: Tue Oct 20, 2015 3:22 pm

Re: Metro M4 Airlift Lite issue

Post by dastels »

What's on your CIRCUITPY drive? There may be something old somewhere that's being picked up.

Dave

User avatar
steve220
 
Posts: 36
Joined: Sat Sep 16, 2017 10:52 pm

Re: Metro M4 Airlift Lite issue

Post by steve220 »

Sorry for the confusion. I guess I made a couple of bad assumptions.
1. That updating the bootloader and installing CP 7 would wipe the old contents
2. That all CP installs would have a default program (code.py) that gets installed

It seems the code.py and libs were left over as factory fresh from when I purchased the board a long while back. I deleted all of the files and reinstalled CP7 and the Metro is now mostly blank, with nothing in the lib folder and no code.py file.

User avatar
dastels
 
Posts: 15655
Joined: Tue Oct 20, 2015 3:22 pm

Re: Metro M4 Airlift Lite issue

Post by dastels »

Ah. Now copy what you need onto it and you should be up and running.

Dave

Locked
Please be positive and constructive with your questions and comments.

Return to “Metro, Metro Express, and Grand Central Boards”