xclip and xsel - FileNotFoundError: [Errno 2]
Asked Answered
T

1

10

I have kivy 1.10.1, python 3.8.2 and I code on Ubuntu20.04. When I launch my little program, I receive this error:

    [CRITICAL] [Cutbuffer   ] Unable to find any valuable Cutbuffer provider.
xclip - FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce type: 'xclip'
  File "/usr/lib/python3/dist-packages/kivy/core/__init__.py", line 55, in core_select_lib
    mod = __import__(name='{2}.{0}.{1}'.format(
  File "/usr/lib/python3/dist-packages/kivy/core/clipboard/clipboard_xclip.py", line 17, in <module>
    p = subprocess.Popen(['xclip', '-version'], stdout=subprocess.PIPE)
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)

xsel - FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce type: 'xsel'
  File "/usr/lib/python3/dist-packages/kivy/core/__init__.py", line 55, in core_select_lib
    mod = __import__(name='{2}.{0}.{1}'.format(
  File "/usr/lib/python3/dist-packages/kivy/core/clipboard/clipboard_xsel.py", line 16, in <module>
    p = subprocess.Popen(['xsel'], stdout=subprocess.PIPE)
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)

How can I fix it, please?

Talkative answered 19/7, 2020 at 14:36 Comment(2)
Have you tried installing xclip and xsel?Imprimatur
Hooooo, I can't know that we can install xclip, I think it was a problem with Kivy, now, it works perfectly. Thanks!Talkative
T
18

The solution is just to install xclip with this command:

sudo apt-get install xclip
Talkative answered 21/7, 2020 at 20:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.