AttributeError: 'module' object has no attribute 'dupterm' #10662
-
I was going to experiment with dupterm to try to understand how it works and exactly what it is for and how I could use it (or try posting not dumb questions in the forum AFTER I did not sort it out 😄), but I got the error above when trying to instantiate it. From an REPL in rshell:
FWIW, I compiled it from source code. OK, just in case I had done something wrong when I compiled it, I just installed the latest nightly build and... wait for it...
So... I is not compiled by default, not supported at all on the Pico or what? And, as I am on it, why is it exactly for? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
dupterm in only included for network capable boards. If you modify mpconfigport.h around line 155 and move the DUPTERM setting out of the |
Beta Was this translation helpful? Give feedback.
-
Usually, stdin/stdout goes to USB, unless you configured your build for serial. If you want to duplicate the USB stdin/stdout to UART, then you need dupterm. |
Beta Was this translation helpful? Give feedback.
dupterm in only included for network capable boards. If you modify mpconfigport.h around line 155 and move the DUPTERM setting out of the
#if MICROPY_PY_NETWORK
block, then you'll have dupterm and can e.g. mirror REPL to a UART.