question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

REPL doesn't start on Windows

See original GitHub issue

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).

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
eduvikcommented, Aug 17, 2017

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

0reactions
vlasovskikhcommented, Jan 20, 2018

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found