Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #91332
| Date | 2015-05-28 00:11 +0100 |
|---|---|
| From | MRAB <python@mrabarnett.plus.com> |
| Subject | Re: PUDB Traceback |
| References | <CAJV9OM-MYJuTjBE_5-98i=5QEtLDb_H764v=XkRdPFR-8MQQKg@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.106.1432768274.5151.python-list@python.org> (permalink) |
On 2015-05-27 21:01, Piyush Verma wrote:
> Hi,
>
> I'm facing traceback when using pudb python debugger to debug. Any help
> to resolve it.
>
> # python -m pudb file.py <input
> Traceback (most recent call last):
> File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
> "__main__", fname, loader, pkg_name)
> File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
> exec code in run_globals
> File "/usr/local/lib/python2.7/dist-packages/pudb/__main__.py", line
> 3, in <module>
> main()
> File "/usr/local/lib/python2.7/dist-packages/pudb/run.py", line 30,
> in main
> steal_output=options.steal_output)
> File "/usr/local/lib/python2.7/dist-packages/pudb/__init__.py", line
> 84, in runscript
> dbg.interaction(None, sys.exc_info())
> File "/usr/local/lib/python2.7/dist-packages/pudb/debugger.py", line
> 338, in interaction
> show_exc_dialog=show_exc_dialog)
> File "/usr/local/lib/python2.7/dist-packages/pudb/debugger.py", line
> 2020, in call_with_ui
> return f(*args, **kwargs)
> File "/usr/local/lib/python2.7/dist-packages/pudb/debugger.py", line
> 2212, in interaction
> self.show_exception_dialog(exc_tuple)
> File "/usr/local/lib/python2.7/dist-packages/pudb/debugger.py", line
> 1966, in show_exception_dialog
> ("Save traceback", "save"),
> File "/usr/local/lib/python2.7/dist-packages/pudb/debugger.py", line
> 1939, in dialog
> return self.event_loop(w)[0]
> File "/usr/local/lib/python2.7/dist-packages/pudb/debugger.py", line
> 2185, in event_loop
> keys = self.screen.get_input()
> File "/usr/local/lib/python2.7/dist-packages/urwid/raw_display.py",
> line 324, in get_input
> keys, raw = self.parse_input(None, None,
> self.get_available_raw_input())
> File "/usr/local/lib/python2.7/dist-packages/urwid/raw_display.py",
> line 426, in get_available_raw_input
> codes = self._get_gpm_codes() + self._get_keyboard_codes()
> File "/usr/local/lib/python2.7/dist-packages/urwid/raw_display.py",
> line 500, in _get_keyboard_codes
> code = self._getch_nodelay()
> File "/usr/local/lib/python2.7/dist-packages/urwid/raw_display.py",
> line 634, in _getch_nodelay
> return self._getch(0)
> File "/usr/local/lib/python2.7/dist-packages/urwid/raw_display.py",
> line 544, in _getch
> return ord(os.read(self._term_input_file.fileno(), 1))
> TypeError: ord() expected a character, but string of length 0 found
>
> Regards,
> ~Piyush
>
>
At a guess I'd say it has reached the end of the input, so os.read(...)
is returning an empty string.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: PUDB Traceback MRAB <python@mrabarnett.plus.com> - 2015-05-28 00:11 +0100
csiph-web