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

BUG: Handle pyperclip gtk error #25

Closed
snowman2 opened this issue Jul 18, 2023 · 0 comments · Fixed by #26
Closed

BUG: Handle pyperclip gtk error #25

snowman2 opened this issue Jul 18, 2023 · 0 comments · Fixed by #26
Labels
bug Something isn't working

Comments

@snowman2
Copy link
Member

snowman2 commented Jul 18, 2023

Related:

  File "~/.local/lib/python3.10/site-packages/msal_requests_auth/auth/device_code.py", line 70, in _get_access_token
    pyperclip.copy(flow["user_code"])
  File "~/.local/lib/python3.10/site-packages/pyperclip/__init__.py", line 659, in lazy_load_stub_copy
    return copy(text)
  File ~/.local/lib/python3.10/site-packages/pyperclip/__init__.py", line 158, in copy_gtk
    cb = gtk.Clipboard()
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 69, in __getattr__
    raise AttributeError(_static_binding_error)
AttributeError: When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject". See: https://bugzilla.gnome.org/show_bug.cgi?id=709183
@snowman2 snowman2 added the bug Something isn't working label Jul 18, 2023
@snowman2 snowman2 changed the title BUG: Handle pyperclip error BUG: Handle pyperclip gtk error Jul 18, 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

Successfully merging a pull request may close this issue.

1 participant