[GH-ISSUE #47] cannot import name 'raw_input' from 'click._compat' #42

Closed
opened 2026-03-04 12:24:10 +03:00 by kerem · 1 comment
Owner

Originally created by @gwainor on GitHub (Mar 12, 2022).
Original GitHub issue: https://github.com/cascadium/wsl-windows-toolbar-launcher/issues/47

I am getting this error on a fresh archlinux WSL2 install.

Traceback (most recent call last):
  File "/home/goztrk/.local/bin/wsl-windows-toolbar", line 5, in <module>
    from wsl_windows_toolbar.wsl_windows_toolbar import cli
  File "/home/goztrk/.local/lib/python3.10/site-packages/wsl_windows_toolbar/wsl_windows_toolbar.py", line 16, in <module>
    from click._compat import raw_input
ImportError: cannot import name 'raw_input' from 'click._compat' (/home/goztrk/.local/lib/python3.10/site-packages/click/_compat.py)
Originally created by @gwainor on GitHub (Mar 12, 2022). Original GitHub issue: https://github.com/cascadium/wsl-windows-toolbar-launcher/issues/47 I am getting this error on a fresh archlinux WSL2 install. ``` Traceback (most recent call last): File "/home/goztrk/.local/bin/wsl-windows-toolbar", line 5, in <module> from wsl_windows_toolbar.wsl_windows_toolbar import cli File "/home/goztrk/.local/lib/python3.10/site-packages/wsl_windows_toolbar/wsl_windows_toolbar.py", line 16, in <module> from click._compat import raw_input ImportError: cannot import name 'raw_input' from 'click._compat' (/home/goztrk/.local/lib/python3.10/site-packages/click/_compat.py) ```
kerem closed this issue 2026-03-04 12:24:10 +03:00
Author
Owner

@gwainor commented on GitHub (Mar 12, 2022):

Ohh okay pip install --user click==7.1.2 did the trick. I don't know why but even if its specified in the requirements.txt that it should install click v7.1.2 it installed the latest version.

<!-- gh-comment-id:1065879522 --> @gwainor commented on GitHub (Mar 12, 2022): Ohh okay `pip install --user click==7.1.2` did the trick. I don't know why but even if its specified in the `requirements.txt` that it should install click v7.1.2 it installed the latest version.
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#42
No description provided.