Apr-02-2025, 07:13 PM
I have been using pyperclip for some time, using Python 3.6.9 on Ubuntu 18.04 LTS. I have now moved to Python 3.12.3 on Ubuntu 24.04 LTS, and pyperclip has stopped working.
This works in the interpreter -
I have checked that xsel, xclip and qtpy are installed on my system.
Anyone any ideas?
This works in the interpreter -
>>>import pyperclip >>>pyperclip.copy('pyperclip test') >>>pyperclip.paste() >>>'pyperclip test'but if I do Ctrl-V after the copy command, I get what I last put on the clipboard, not ‘pyperclip test’. And when I use it in real code, the clipboard (as examined by Ctrl-V) is empty.
I have checked that xsel, xclip and qtpy are installed on my system.
Anyone any ideas?
"Life is hazardous. Worse, it is inevitably fatal."