adafruit / Adafruit_Learning_System_Guides

Programs and scripts to display "inline" in Adafruit Learning System guides
MIT License
1.01k stars 770 forks source link

REPL spits out errors in the macropad-hotkeys project #2162

Closed imavroukakis closed 2 years ago

imavroukakis commented 2 years ago

Using CircuitPython 7.2.5, I am playing around with https://learn.adafruit.com/macropad-hotkeys/project-code . I have noticed that the console spits out a lot of errors when it loads the macros but everything seems to work fine

ERROR in ._mac-safari.py
Traceback (most recent call last):
  File "code.py", line 101, in <module>
ImportError: no module named '/macros/'
ERROR in ._media.py
Traceback (most recent call last):
  File "code.py", line 101, in <module>
ImportError: no module named '/macros/'
ERROR in ._numpad.py
Traceback (most recent call last):
  File "code.py", line 101, in <module>
ImportError: no module named '/macros/'
ladyada commented 2 years ago

you probably didnt Download Bundle to get all the files? image image

imavroukakis commented 2 years ago

Sure did! image

ladyada commented 2 years ago

._ files are macos 'extras' made by your OS, you could delete them using command line - they're confusing the script but like you said work fine

imavroukakis commented 2 years ago

ah thanks, I thought I squashed those when I followed the setup instructions! Apologies for that.

ladyada commented 2 years ago

all good! :) if ya want you could submit a PR for the script to ignore files that start with ._ !