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

Update Windows instructions #649

Open
thomasballinger opened this issue Oct 28, 2016 · 4 comments
Open

Update Windows instructions #649

thomasballinger opened this issue Oct 28, 2016 · 4 comments

Comments

@thomasballinger
Copy link
Member

According to #509 Blessings doesn't work on Windows even with the custom curses library. We ought to update the Windows install instructions in the readme and on the site to say that bpython-curses needs to be run instead of bpython. We should also consider making bpython-curses the default on Windows

We could look at a hack to make this work on Windows, but this probably isn't sustainable unless the person doing the work uses Windows. This would probably have to happen via a Blessings fork or a Blessings monkey-patch. This should happen mostly in Curtsies, bpython only imports blessings in one spot which is probably unnecessary.

@TheManTheLegend1
Copy link

You can tell how much these devs want their product used. Thanks for updating on how to use on windows, I will use someone elses version of this instead.

@giuliohome
Copy link

giuliohome commented Nov 6, 2020

I'm still using this solution as of today, with latest version of Python 3.9 on Windows 10.
I see that this issue is quite old even if still open. Anyway my problem matches with it and the solution, namely that bpython-curses needs to be run instead of bpython, appears to work. Can you confirm it is the way to go or otherwise suggest a better approach?

I see the following at start

WARNING: You are using `bpython-cli`, the curses backend for `bpython`. This backend has been deprecated in version 0.19
 and might disappear in a future version.

@johnd0e
Copy link

johnd0e commented Jun 14, 2021

https://docs.bpython-interpreter.org/en/latest/windows.html recommends to install curses but for me that leads to #509 (comment).

Perhaps better pip install windows-curses instead.

(it also should be possible to use blessed instead of blessings, but I have not tried)

@sfinktah
Copy link

sfinktah commented Feb 3, 2023

@giuliohome That's impressive, though I believe I may have once had a working windows bpython, I can't swear to it. I'm running python3.8-64 here, and there's no way around the termios dependency.

bpython-curses -> cli.py -> args.py -> curtsies ->window.py -> termhelpers.py -> tty -> termios
rather that the briefer
bpython -> curtsies -> window.py -> termhelpers.py -> tty -> termios

i.e. bpython loads curtsies either way

wow simple fix... remove the line import curtsies and the line involving curtsies.version and everything runs fine.

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

No branches or pull requests

5 participants