Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure on Windows 10 #257

Closed
BruceEckel opened this issue Jun 6, 2017 · 10 comments
Closed

Failure on Windows 10 #257

BruceEckel opened this issue Jun 6, 2017 · 10 comments

Comments

@BruceEckel
Copy link

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
@inducer
Copy link
Owner

inducer commented Jun 6, 2017

Sorry, I don't think Urwid (the widget library used by pudb) works on Windows.

@inducer inducer closed this as completed Jun 6, 2017
@inducer
Copy link
Owner

inducer commented Jun 6, 2017

Cygwin might be an option. At any rate--if and when Urwid does start supporting Windows, pudb should (famous last words) work there, too.

At any rate, thanks for the report.

@asmeurer
Copy link
Collaborator

asmeurer commented Jun 6, 2017

I'm curious if you can make it work on the Linux subsystem. I don't have Windows, otherwise I would play around with this.

@BruceEckel
Copy link
Author

BruceEckel commented Jun 6, 2017 via email

@asmeurer
Copy link
Collaborator

asmeurer commented Jun 6, 2017

If you can get it to work on Cygwin or the Linux subsystem or some other way, please report back. Would love to have some docs for it if it can be made to work.

@BruceEckel
Copy link
Author

BruceEckel commented Jun 6, 2017 via email

@asmeurer
Copy link
Collaborator

asmeurer commented Jun 6, 2017

Does the Linux subsystem require using a separate Python from the Windows one?

@BruceEckel
Copy link
Author

BruceEckel commented Jun 6, 2017 via email

@asmeurer
Copy link
Collaborator

asmeurer commented Jun 6, 2017

So it's a completely different environment. I wasn't sure if you could mix and match Windows executables somehow. That's a bit limiting, as it means you'd have to get whatever you're debugging running in the Linux subsystem to use PuDB. But if it doesn't have many dependencies it's probably not that bad.

@BruceEckel
Copy link
Author

BruceEckel commented Jun 6, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants