METRO M4 AIRLIFT NOT DOWNLOADING CIRCUITPYTHON BUNDLE
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- ecburns33
- Posts: 4
- Joined: Thu Jun 23, 2022 10:05 am
METRO M4 AIRLIFT NOT DOWNLOADING CIRCUITPYTHON BUNDLE
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!
- dastels
- Posts: 15662
- Joined: Tue Oct 20, 2015 3:22 pm
Re: METRO M4 AIRLIFT NOT DOWNLOADING CIRCUITPYTHON BUNDLE
Please post the exact REPL output you get.
Dave
Dave
- ecburns33
- Posts: 4
- Joined: Thu Jun 23, 2022 10:05 am
Re: METRO M4 AIRLIFT NOT DOWNLOADING CIRCUITPYTHON BUNDLE
ModuleNotFoundError: No module named 'board'
Thanks!
Ethan
Thanks!
Ethan
- ecburns33
- Posts: 4
- Joined: Thu Jun 23, 2022 10:05 am
Re: METRO M4 AIRLIFT NOT DOWNLOADING CIRCUITPYTHON BUNDLE
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'
>>> 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'
- dastels
- Posts: 15662
- Joined: Tue Oct 20, 2015 3:22 pm
Re: METRO M4 AIRLIFT NOT DOWNLOADING CIRCUITPYTHON BUNDLE
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
code.py is loaded and run automatically by the CircuitPython runtime, you shouldn't really need to import it.
Dave
- ecburns33
- Posts: 4
- Joined: Thu Jun 23, 2022 10:05 am
Re: METRO M4 AIRLIFT NOT DOWNLOADING CIRCUITPYTHON BUNDLE
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.
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.
- dastels
- Posts: 15662
- Joined: Tue Oct 20, 2015 3:22 pm
Re: METRO M4 AIRLIFT NOT DOWNLOADING CIRCUITPYTHON BUNDLE
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
Dave
Please be positive and constructive with your questions and comments.