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 on trying to run #15

Closed
alexbrrsclnt opened this issue Sep 25, 2020 · 4 comments
Closed

Error on trying to run #15

alexbrrsclnt opened this issue Sep 25, 2020 · 4 comments
Labels
dependency issue Issues caused by PIP packages or system native packages

Comments

@alexbrrsclnt
Copy link

alexbrrsclnt commented Sep 25, 2020

I installed correctly but when I run discover-overlay I get this error

$ discover-overlay 
Using XShape instead of composite
Traceback (most recent call last):
  File "/usr/local/bin/discover-overlay", line 1058, in <module>
    main()
  File "/usr/local/bin/discover-overlay", line 1039, in main
    create_gui()
  File "/usr/local/bin/discover-overlay", line 984, in create_gui
    win = OverlayWindow()
  File "/usr/local/bin/discover-overlay", line 649, in __init__
    self.set_untouchable()
  File "/usr/local/bin/discover-overlay", line 718, in set_untouchable
    reg = Gdk.cairo_region_create_from_surface(surface)
KeyError: 'could not find foreign type Surface'
@trigg
Copy link
Owner

trigg commented Sep 26, 2020

So we're missing python-gi-cairo, which I would have expected to be present with gtk. What distro are you running?

@trigg trigg added the dependency issue Issues caused by PIP packages or system native packages label Sep 26, 2020
@alexbrrsclnt
Copy link
Author

KDE Neon (Ubuntu 20.04)

@trigg
Copy link
Owner

trigg commented Sep 26, 2020

so I'm led to believe sudo apt install python3-gi-cairo is all you need. Let me know if it works afterwards

@alexbrrsclnt
Copy link
Author

Yeah, that solves the issue, thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency issue Issues caused by PIP packages or system native packages
Projects
None yet
Development

No branches or pull requests

2 participants