Problem with the MAGTAG COVID Tracker

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
dsheeran
 
Posts: 185
Joined: Wed Aug 02, 2017 1:20 pm

Problem with the MAGTAG COVID Tracker

Post by dsheeran »

I keep getting the following error when running the COVID Tracker code as supplied. Please assist.

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.

code.py output:
Connecting to AP homenet
Traceback (most recent call last):
File "code.py", line 35, in <module>
File "magtag.py", line 150, in add_text
File "adafruit_bitmap_font/bitmap_font.py", line 60, in load_font
ImportError: no module named 'pcf'

User avatar
mikeysklar
 
Posts: 14165
Joined: Mon Aug 01, 2016 8:10 pm

Re: Problem with the MAGTAG COVID Tracker

Post by mikeysklar »

@dsheeran,

Can you show me the directory structure of your mounted drive? eg. /lib, /fonts, code.py etc. I would like to confirm that the font files are located under fonts and all of the PCF files are included. Of course make sure you are running the latest CircuitPython and matching libraries on your magtag.
Once ready, click the Download: Project Zip File link below in the code window to get a zip file with all the files needed for the project. Copy code.py from the zip file and place on the CIRCUITPY drive along with the fonts/ directory that contains the arial-bold-12.pcf font
If you're having difficulty running this example, it could be because your MagTag CircuitPython firmware or library needs to be upgraded! Please be sure to follow https://learn.adafruit.com/adafruit-mag ... cuitpython to install the latest CircuitPython firmware and then also replace/update ALL the MagTag-specific libraries mentioned here https://learn.adafruit.com/adafruit-mag ... ibraries-2
https://learn.adafruit.com/magtag-covid ... y?view=all

User avatar
dsheeran
 
Posts: 185
Joined: Wed Aug 02, 2017 1:20 pm

Re: Problem with the MAGTAG COVID Tracker

Post by dsheeran »

I've got it working now. I needed to update the libraries.

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

Return to “AdaBox! Show us what you made!”