On Saturday, August 13, 2022 we will be working on the Adafruit Customer Support Forums. If you visit over the weekend and things are not complete yet, please check back later, https://adafruit.com/forumupdates
0

METRO M4 AIRLIFT NOT DOWNLOADING CIRCUITPYTHON BUNDLE
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

METRO M4 AIRLIFT NOT DOWNLOADING CIRCUITPYTHON BUNDLE

by ecburns33 on Thu Jun 23, 2022 10:10 am

I'm sort've new to the game, so my apologies for the lack of knowledge. I've got a new Metro M4 Airlift right out of the box and am only trying to get the code.py that's it's default shipped with to run. When I try to do so, I get an error that the board module is not installed. I redownload the bootloader, redownloaded circuitpython (tried with versions 7 and 8) and even redownloaded the default code.py file but still get the error. What's the best way to resolve this? Related, where can I see what circuitpython files are download (why aren't they showing up in the lib folder)? Thanks for the help!

ecburns33
 
Posts: 4
Joined: Thu Jun 23, 2022 10:05 am

Re: METRO M4 AIRLIFT NOT DOWNLOADING CIRCUITPYTHON BUNDLE

by dastels on Thu Jun 23, 2022 1:07 pm

Please post the exact REPL output you get.

Dave

dastels
 
Posts: 10584
Joined: Tue Oct 20, 2015 3:22 pm

Re: METRO M4 AIRLIFT NOT DOWNLOADING CIRCUITPYTHON BUNDLE

by ecburns33 on Thu Jun 23, 2022 2:32 pm

ModuleNotFoundError: No module named 'board'

Thanks!

Ethan

ecburns33
 
Posts: 4
Joined: Thu Jun 23, 2022 10:05 am

Re: METRO M4 AIRLIFT NOT DOWNLOADING CIRCUITPYTHON BUNDLE

by ecburns33 on Thu Jun 23, 2022 2:33 pm

Sorry, here's the complete REPL output:

>>> import code
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "d:\code.py", line 5, in <module>
import board
ModuleNotFoundError: No module named 'board'

ecburns33
 
Posts: 4
Joined: Thu Jun 23, 2022 10:05 am

Re: METRO M4 AIRLIFT NOT DOWNLOADING CIRCUITPYTHON BUNDLE

by dastels on Thu Jun 23, 2022 3:24 pm

Can you post the stuff output in the REPL before that? It should identify the version and such.

code.py is loaded and run automatically by the CircuitPython runtime, you shouldn't really need to import it.

Dave

dastels
 
Posts: 10584
Joined: Tue Oct 20, 2015 3:22 pm

Re: METRO M4 AIRLIFT NOT DOWNLOADING CIRCUITPYTHON BUNDLE

by ecburns33 on Fri Jun 24, 2022 8:28 am

Jupyter QtConsole 4.7.7
Python 3.8.11 (default, Jul 24 2021, 23:33:17) [MSC v.1929 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.0.1 -- An enhanced Interactive Python. Type '?' for help.

I agree it should run automatically. It does not, so I am pressing the run button in the Mu console.

ecburns33
 
Posts: 4
Joined: Thu Jun 23, 2022 10:05 am

Re: METRO M4 AIRLIFT NOT DOWNLOADING CIRCUITPYTHON BUNDLE

by dastels on Fri Jun 24, 2022 12:01 pm

OK. You're not running the code with CircuitPython. You need to run the code on the Metro. See https://learn.adafruit.com/welcome-to-circuitpython.

Dave

dastels
 
Posts: 10584
Joined: Tue Oct 20, 2015 3:22 pm

Please be positive and constructive with your questions and comments.