You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I've looked into this after having the same problem and realized that the issue is that pyperclip is built to detect WSL1. But it does not detect WSL2, and treats them as being the same thing. There is only a single init_wsl_clipboard function. WSL1 has access to windows utilities whereas WSL2 does not. That's why it's looking for clip.exe. I'm guessing it was written before WSL2 was a thing and support was never added.
The pyperclip solution is that you can manually detect WSL2 in your program and then set pyperclip to use xclip. But a better solution might just be to use Clipman instead since its being actively maintained.
It would be nice to see an update to pyperclip to add WSL2 support though.
The text was updated successfully, but these errors were encountered: