METRO M4 AIRLIFT NOT DOWNLOADING CIRCUITPYTHON BUNDLE

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
ecburns33
 
Posts: 4
Joined: Thu Jun 23, 2022 10:05 am

METRO M4 AIRLIFT NOT DOWNLOADING CIRCUITPYTHON BUNDLE

Post by ecburns33 »

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!

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

Re: METRO M4 AIRLIFT NOT DOWNLOADING CIRCUITPYTHON BUNDLE

Post by dastels »

Please post the exact REPL output you get.

Dave

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

Re: METRO M4 AIRLIFT NOT DOWNLOADING CIRCUITPYTHON BUNDLE

Post by ecburns33 »

ModuleNotFoundError: No module named 'board'

Thanks!

Ethan

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

Re: METRO M4 AIRLIFT NOT DOWNLOADING CIRCUITPYTHON BUNDLE

Post by ecburns33 »

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'

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

Re: METRO M4 AIRLIFT NOT DOWNLOADING CIRCUITPYTHON BUNDLE

Post by dastels »

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

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

Re: METRO M4 AIRLIFT NOT DOWNLOADING CIRCUITPYTHON BUNDLE

Post by ecburns33 »

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.

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

Re: METRO M4 AIRLIFT NOT DOWNLOADING CIRCUITPYTHON BUNDLE

Post by dastels »

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

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

Return to “Itsy Bitsy Boards”