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'
Metro M4 Airlift Lite issue
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- dastels
- Posts: 15655
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Metro M4 Airlift Lite issue
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
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
- steve220
- Posts: 36
- Joined: Sat Sep 16, 2017 10:52 pm
Re: Metro M4 Airlift Lite issue
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...
Looking in the .py version, I don't see "adafruit_esp32spi.adafruit_esp32spi_requests" anywhere in the new library.
I'll keep troubleshooting...
- dastels
- Posts: 15655
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Metro M4 Airlift Lite issue
What's on your CIRCUITPY drive? There may be something old somewhere that's being picked up.
Dave
Dave
- steve220
- Posts: 36
- Joined: Sat Sep 16, 2017 10:52 pm
Re: Metro M4 Airlift Lite issue
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.
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.
- dastels
- Posts: 15655
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Metro M4 Airlift Lite issue
Ah. Now copy what you need onto it and you should be up and running.
Dave
Dave
Please be positive and constructive with your questions and comments.