Skip to content

Error opening clipboard on Windows #3

Description

@lem0na

Machines: Linux and Windows `10
Python version on Windows: 3.10

On Windows when I try to copy something often I get a similar error:
Traceback (most recent call last):
File "C:\tmp\xxx\src\hardware\clipboard_init_.py", line 28, in run
tmp = Clipboard.data()
File "C:\tmp\xxx\src\hardware\clipboard_win32_init_.py", line 27, in data
win32clipboard.OpenClipboard()
pywintypes.error: (5, 'OpenClipboard', 'Access is denied.')

so far I was able to resolve it by implementing this as a dirty hack:
https://stackoverflow.com/a/60751472

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions