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

Launch failure: KeyError: 'could not find foreign type Region' #43

Open
serif opened this issue Oct 6, 2022 · 7 comments
Open

Launch failure: KeyError: 'could not find foreign type Region' #43

serif opened this issue Oct 6, 2022 · 7 comments
Labels
bug Something isn't working testing needed

Comments

@serif
Copy link

serif commented Oct 6, 2022

xborders: 3.2 (pulled today, 2022-10-05)
OS: Debian Sid (unstable) 5.19.11-1
Host: 80S6 Lenovo N22 (amd64)
Python: 3.10.7
WM: i3-gaps 4.21-18-gcee84a56

xborders isn't able to start:

❯ ./xborders
/home/a/git/xborder/./xborders:280: DeprecationWarning: Gtk.Window.set_wmclass is deprecated
  self.set_wmclass("xborders", "xborder")
Traceback (most recent call last):
  File "/home/a/git/xborder/./xborders", line 449, in <module>
    main()
  File "/home/a/git/xborder/./xborders", line 443, in main
    Highlight(screen_width, screen_height)
  File "/home/a/git/xborder/./xborders", line 298, in __init__
    self.input_shape_combine_region(cairo.Region())
KeyError: 'could not find foreign type Region'
@serif
Copy link
Author

serif commented Oct 6, 2022

To be clear, I did run pip install -r requirements.txt, and re-running gives me a stack of Requirement already satisfied: [...] messages.

@deter0
Copy link
Owner

deter0 commented Oct 6, 2022

Do you have cairo installed on your system?

@deter0
Copy link
Owner

deter0 commented Oct 6, 2022

Also can you send the output of

pip list | grep 'pycairo'

@serif
Copy link
Author

serif commented Oct 6, 2022

❯ pip3 list | grep cairo
pycairo             1.21.0
❯ apt list --installed libcairo2
Listing... Done
libcairo2/unstable,now 1.16.0-6 amd64 [installed]

@serif
Copy link
Author

serif commented Oct 6, 2022

Oh FYI, I've accidentally mixed pip and pip3 here because of old habits, but they're the same thing on this system.

❯ pip --version
pip 22.2 from /usr/lib/python3/dist-packages/pip (python 3.10)

@deter0 deter0 added bug Something isn't working testing needed labels Oct 13, 2022
@deergit
Copy link

deergit commented Feb 14, 2023

Getting the same issue running the latest version of regolith, cairo is installed both through pip and through apt

edit: more system info
OS: Ubuntu 22.10
Python: 3.10.7
WM: i3 gaps 4.21

@deergit
Copy link

deergit commented Feb 15, 2023

resolved this by installing the package python3-gi-cairo through apt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working testing needed
Projects
None yet
Development

No branches or pull requests

3 participants