Skip to content

Failure on Windows 10 #257

@BruceEckel

Description

@BruceEckel

pip install reports success:

C:\Users\bruce\Documents\Git\on-java>pip install pudb
Collecting pudb
  Downloading pudb-2017.1.2.tar.gz (53kB)
    100% |████████████████████████████████| 61kB 72kB/s
Collecting urwid>=1.1.1 (from pudb)
  Downloading urwid-1.3.1.tar.gz (588kB)
    100% |████████████████████████████████| 593kB 262kB/s
Collecting pygments>=1.0 (from pudb)
  Using cached Pygments-2.2.0-py2.py3-none-any.whl
Installing collected packages: urwid, pygments, pudb
  Running setup.py install for urwid ... done
  Running setup.py install for pudb ... done
Successfully installed pudb-2017.1.2 pygments-2.2.0 urwid-1.3.1

But when I try to run the first example:
python -m pudb.run binsearch.py

I see:

Traceback (most recent call last):
  File "C:\Python\Python36\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Python\Python36\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Python\Python36\lib\site-packages\pudb\run.py", line 38, in <module>
    main()
  File "C:\Python\Python36\lib\site-packages\pudb\run.py", line 34, in main
    steal_output=options.steal_output)
  File "C:\Python\Python36\lib\site-packages\pudb\__init__.py", line 64, in runscript
    dbg = _get_debugger(steal_output=steal_output)
  File "C:\Python\Python36\lib\site-packages\pudb\__init__.py", line 50, in _get_debugger
    dbg = Debugger(**kwargs)
  File "C:\Python\Python36\lib\site-packages\pudb\debugger.py", line 152, in __init__
    self.ui = DebuggerUI(self, stdin=stdin, stdout=stdout, term_size=term_size)
  File "C:\Python\Python36\lib\site-packages\pudb\debugger.py", line 1905, in __init__
    self.screen = ThreadsafeRawScreen()
  File "C:\Python\Python36\lib\site-packages\urwid\raw_display.py", line 89, in __init__
    fcntl.fcntl(self._resize_pipe_rd, fcntl.F_SETFL, os.O_NONBLOCK)
NameError: name 'fcntl' is not defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions