intellij-micropython: REPL doesn't start on Windows

When I try to start the micropython REPL on Windows (10 in this case, not tested on others), I get a traceback:

File "C:\Users\xxx\AppData\Local\Programs\Python\Python36-32\lib\codecs.py", line 408, in __getattr__
    return getattr(self.stream, name)
AttributeError: 'Out' object has no attribute 'buffer'

When I try to run microrepl.py directly I can get the tracebacks; when I run it via the ‘MicroPython REPL’ menu in PyCharm it flashes an error then disappears.

The closest thing to this I could find online was https://github.com/wendlers/mpfshell/issues/5 which as to do with re-creation of the miniterm. I experimented with removing the two lines referring to Console, and I don’t get that error any more (though the REPL doesn’t work as expected).

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (11 by maintainers)

Commits related to this issue

Most upvoted comments

Perhaps add that to the requirements list. Can you point me to which areas are OS-specific?