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
Document xsel and xclip as dependencies on Linux #4036
Comments
What's more, kivy_options doesn't have a "cutbuffer" section, so you can't override it with an environment variable. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Well, this still happens in kivy 1.10, at least for me so it probably should be solved `[INFO ] [OSC ] using for socket xsel - FileNotFoundError: [Errno 2] No such file or directory: 'xsel' |
I am working on Kivy==1.10.1 and python==3.6. Same problem. Can it be solved??? |
Kivy==1.11.1, Python 3.7, and I am also experiencing this issue. Odd, doesn't seem to affect my app, but it is concerning to see these errors. |
Same here on a fresh Ubuntu without the xsel/xclip apt-get packages. Didn't find any SDL package in the Ubuntu repos that mentions SDL clipboard support. Kivy App Log (removed some irrelevant DEBUG message): `[INFO ] [Kivy ] v1.11.1 xsel - FileNotFoundError: [Errno 2] No such file or directory: 'xsel': 'xsel' |
Same exact message for me as well |
same thing. python 3.7 on kubuntu 19.10 |
[INFO ] [Clipboard ] Provider: sdl2(['clipboard_xclip', 'clipboard_xsel', 'clipboard_dbusklipper', 'clipboard_gtk3'] ignored) xsel - FileNotFoundError: [Errno 2] No such file or directory: 'xsel': 'xsel' same for me |
fixed with apt -get install xclip |
sudo apt-get install -y xclip |
This is still an issue. If kivy depends on xsel and xclip, that installation should happen automatically when someone does |
Hi @beauxq !
kivy/kivy/core/clipboard/__init__.py Lines 156 to 157 in cd4cb0f
Can you confirm that even if the critical error (which I agree is not great) is shown, the app works just fine? |
Yes, I see now. I had an app crash and I saw the xsel and xclip messages, and I thought they were related to the crash. |
Workaround for pure wayland installations where xsel and xclip are not available at all, like Yocto/Poky on imx8mm:
This creates an empty, executable script that gets rid of the error message. It doesn't solve the copy/paste Cutbuffer issue. But my embedded device has no need for cut and paste. The point is that Kivy is looking for anything executable named xsel, and will be very happy as long as it is in the path. For simplicity in Yocto I put this script in the /etc/rc.local but it is enough to create it once. |
I could not find a reference about them in the docs.
Is a cut buffer provider critical? Couldn't we just skip the feature when these deps are not present?
kivy/kivy/core/clipboard/__init__.py
Line 146 in 5444495
The text was updated successfully, but these errors were encountered: