REPL doesn't start on Windows
See original GitHub issueWhen 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).
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (4 by maintainers)
Top Results From Across the Web
Swift on Windows - REPL does not start
The installation went fine, but the REPL does not show up when I type swift command. From the dev cmd from VS C:\Program...
Read more >Getting Started Repl doesnt start on WIndows w/ Oracle Java ...
Issue Type: Bug Click nREPL in bottom toolbar Click Fire Up Getting Started REPL Click Use Existing Directory repl fails to start with...
Read more >window.open isn't working - Replit
You are colliding with the window.open() function. What you should do is attack a listener in your JavaScript instead of using an inline...
Read more >I can't get a client repl to run on windows 10/64 pro
I've uninstalled everything, including all java jres and jdks, boot, lein, clojure, clojure-clj, chocolatey. Then reinstalled them all (from admin powershells).
Read more >Working with the REPL - Visual Studio App Center
If the REPL window doesn't appear on macOS, go to System Preferences > Security & Privacy > Privacy > Automation, search for Visual...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Perhaps add that to the requirements list. Can you point me to which areas are OS-specific?
@kaybee335 The issue with REPL shouldn’t be related to Conda or your shell, since PyCharm launches just a Python process.
I’m afraid to debug this issue you have to try to launch the same command outside PyCharm as the plugin does. Use your Conda environment (where you’ve installed the package dependencies when PyCharm showed you a yellow warning about missing pyserial, adafriut-ampy, and docopt.
The command is: /path/to/your/virtualenv/or/conda/python.exe /path/to/your/pycharm/settings/…/microrepl.py your-device-name
Based on #35 I assume that the paths for you are:
C:\Users.…\condaenvs\upython\pythonw.exe C:\Users.….PyCharm2017.3\config\plugins\intellij-micropython/scripts/microrepl.py COM4
Please create new bugs for any issues not related to the problem with starting REPL on Windows like you did for boot.py in #35.