-1
File "C:\Users\Personal\PycharmProjects\pythonTutes\paperclip.py", line 1, in <module>
    import paperclip
  File "C:\Users\Personal\PycharmProjects\pythonTutes\paperclip.py", line 2, in <module>
    paperclip.Copy("hello world")
AttributeError: partially initialized module 'paperclip' has no attribute 'Copy' (most likely due to a circular import)
buran
  • 11,840
  • 7
  • 28
  • 49

1 Answers1

0

I haven't used the paperclip module, but when I want to copy something to my clipboard using python, I use:

text = "Hello World!"
subprocess.run("pbcopy", universal_newlines=True, input=text)

Run this, and then press ctrl + v or command + v to paste.

Dugbug
  • 335
  • 1
  • 10