[GH-ISSUE #37] raw_input error #34

Closed
opened 2026-03-04 12:24:07 +03:00 by kerem · 3 comments
Owner

Originally created by @bachittle on GitHub (May 17, 2021).
Original GitHub issue: https://github.com/cascadium/wsl-windows-toolbar-launcher/issues/37

this is what I get when running the wsl-windows-toolbar script:
image

Originally created by @bachittle on GitHub (May 17, 2021). Original GitHub issue: https://github.com/cascadium/wsl-windows-toolbar-launcher/issues/37 this is what I get when running the wsl-windows-toolbar script: ![image](https://user-images.githubusercontent.com/39804642/118564809-fe770380-b73e-11eb-94c5-36887fc00bca.png)
kerem closed this issue 2026-03-04 12:24:07 +03:00
Author
Owner

@bachittle commented on GitHub (May 17, 2021):

I found switching raw_input to confirm works: https://click.palletsprojects.com/en/8.0.x/prompts/#input-prompts

<!-- gh-comment-id:842689896 --> @bachittle commented on GitHub (May 17, 2021): I found switching raw_input to confirm works: https://click.palletsprojects.com/en/8.0.x/prompts/#input-prompts
Author
Owner

@jswetzen commented on GitHub (Aug 26, 2021):

I found this SO answer and made a small change that made it work.

#from click._compat import raw_input
from six.moves import input as raw_input
<!-- gh-comment-id:906142306 --> @jswetzen commented on GitHub (Aug 26, 2021): I found [this SO answer](https://stackoverflow.com/questions/954834/how-do-i-use-raw-input-in-python-3) and made a small change that made it work. ``` #from click._compat import raw_input from six.moves import input as raw_input ```
Author
Owner

@jswetzen commented on GitHub (Aug 26, 2021):

Never mind, I was on the pip version so it's probably fixed in git.

<!-- gh-comment-id:906144292 --> @jswetzen commented on GitHub (Aug 26, 2021): Never mind, I was on the pip version so it's probably fixed in git.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/wsl-windows-toolbar-launcher#34
No description provided.