Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error opening clipboard on Windows #3

Open
lem0na opened this issue Feb 22, 2023 · 0 comments
Open

Error opening clipboard on Windows #3

lem0na opened this issue Feb 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@lem0na
Copy link

lem0na commented Feb 22, 2023

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

@lem0na lem0na added the bug Something isn't working label Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant