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

Switch to different clipboard library (AttributeError: When using gi.repository...) #100

Closed
dynobo opened this issue Mar 31, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@dynobo
Copy link
Owner

dynobo commented Mar 31, 2021

pyperclipsomehow has some long outstanding issues with GTK3, e.g. throwing:

[...]
File "/home/dynobo/.local/lib/python3.8/site-packages/pyperclip/__init__.py", line 158, in copy_gtk
    cb = gtk.Clipboard()
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 72, 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

Let's switch to a more up-to-date library, like e.g.:

@dynobo dynobo added the bug Something isn't working label Mar 31, 2021
@dynobo dynobo self-assigned this Mar 31, 2021
@dynobo
Copy link
Owner Author

dynobo commented Apr 4, 2021

Switched to pyclip with v0.1.11.

@dynobo dynobo closed this as completed Apr 4, 2021
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