[pypy-issue] Issue #1949: pyrepl broken under Windows (also breaks pdb) (pypy/pypy)

Jakob Reschke issues-reply at bitbucket.org
Thu Dec 18 14:40:35 CET 2014


New issue 1949: pyrepl broken under Windows (also breaks pdb)
https://bitbucket.org/pypy/pypy/issue/1949/pyrepl-broken-under-windows-also-breaks

Jakob Reschke:

Under Windows 7 64-Bit I cannot use pdb in pypy because pyrepl tries to use its unix_console module which imports termios which is not available under Windows. The following session (paths trimmed) demonstrates the problem and contains the pypy version and the stack trace.

> pypy
Python 2.7.8 (f5dcc2477b97, Sep 18 2014, 14:30:11)
[PyPy 2.4.0 with MSC v.1500 32 bit] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>> import pdb
>>>> pdb.set_trace()
--Return--
> ←[33;01m<stdin>←[00m(←[36;01m1←[00m)<module>()->None
Traceback (most recent call last):
  File "---\pypy-2.4.0-win32\lib-python\2.7\bdb.py", line 53,
in trace_dispatch
    return self.dispatch_return(frame, arg)
  File "---\pypy-2.4.0-win32\lib-python\2.7\bdb.py", line 88,
in dispatch_return
    self.user_return(frame, arg)
  File "---\pypy-2.4.0-win32\lib-python\2.7\pdb.py", line 190,
 in user_return
    self.interaction(frame, None)
  File "---\pypy-2.4.0-win32\site-packages\pdbpp-0.7.2-py2.7.e
gg\pdb.py", line 144, in interaction
    completer = fancycompleter.setup()
  File "---\pypy-2.4.0-win32\site-packages\fancycompleter-0.4-
py2.7.egg\fancycompleter.py", line 288, in setup
    completer = Completer()
  File "---\pypy-2.4.0-win32\site-packages\fancycompleter-0.4-
py2.7.egg\fancycompleter.py", line 163, in __init__
    self.config.setup()
  File "---\pypy-2.4.0-win32\site-packages\fancycompleter-0.4-
py2.7.egg\fancycompleter.py", line 118, in setup
    self.readline, supports_color = self.find_best_readline()
  File "---\pypy-2.4.0-win32\site-packages\fancycompleter-0.4-
py2.7.egg\fancycompleter.py", line 114, in find_best_readline
    import readline
  File "---\pypy-2.4.0-win32\lib_pypy\readline.py", line 9, in
 <module>
    from pyrepl.readline import *
  File "---\pypy-2.4.0-win32\lib_pypy\pyrepl\readline.py", lin
e 33, in <module>
    from pyrepl.unix_console import UnixConsole, _error
  File "---\pypy-2.4.0-win32\lib_pypy\pyrepl\unix_console.py",
 line 22, in <module>
    import termios, select, os, struct, errno
ImportError: No module named termios




More information about the pypy-issue mailing list