I'm trying to do some work on Python with the text that I store on the clipboard. I'm using the pyperclip module. I install the module in the cmd with pip as usual:
pip install pyperclip
And seems to work fine because when I import the module import pyperclip it runs without any problem. But when I try to run any piece of code using it, even the example of usage given in the documentation:
pyperclip.copy('The text to be copied to the clipboard.')
pyperclip.paste()
I get an ArgumentError:
ArgumentError: argument 1: <class 'TypeError'>: wrong type
I'm a noob in Python which may be one of the reasons I'm clueless on how to solve this.
Aucun commentaire:
Enregistrer un commentaire