- Code: Select all | TOGGLE FULL SIZE
code.py output:
OSError: [Errno 2] No such file/directory: 'code.pq'
Code done running
I cannot find any mention of this error on adafruit.com. It appears as if the MagTag is getting letters confused and is looking for 'code.pq' instead of 'code.py'. So I created a file named 'code.pq' and entered:
- Code: Select all | TOGGLE FULL SIZE
print("Hello World")
Now, the MagTag says:
- Code: Select all | TOGGLE FULL SIZE
code.py output:
Traceback (most recent call last):
File "code.py", line 1, in <module>
NameError: name 'prant' is not defined
Code done running.
It is as if the MagTag read the command 'print' as 'prant'. So I connected over serial to the REPL. If I type 'help()' I get the error message: 'NotImplementedError: byte code not implemented' If I then use the Up Arrow to repeat the command, it now shows as 'hedp()'. I can sometimes edit the line and I get the proper help message but not always.
I was doing all of this on my MacBook Pro so I moved to a Windows 10 machine. Same result. I also tried MagTag UF2 image, 6.2.0-beta.4, as well as the latest nightly build and got the exact same result. I even tried 3 other USB cables. Same result.
It seems as if something is wrong with the ESP32-S2 module but it is extremely odd.