phillipberndt/fakexrandr

PyGobject isn't installed

MartinBagge opened this issue · 5 comments

Hello,

I have this issue even after installing every package listed and making sure PyGobject is installed on the system. If I open a Python shell and do "from gi.repository import Gtk, Gdk" i get the following error :

ImportError: cannot import name Gtk, introspection typelib not found

I have tried to reinstall gtk on my system but the error persists.
I'm trying to run this on ubuntu 20.04 do you think this version is the problem?

Best regards

Can someone post an example of a config file in case I don't get the GUI working?

Okay, I wasn't aware that Ubuntu 20.04 uses xcb and switching to the the xcb branch partly solved the error. Now it changed to: name 'Gtk' is not defined

I added the changes in commit 9fcb445 into the xcb branch locally and this seems to solve "name 'Gtk'" error.

Now it prints out "There does not exist a configuration in /home/mbg/.config/fakexrandr.bin yet."

Nvm I'm confused about this issue. Can't seem to do much to get it working :(

Okay, I wasn't aware that Ubuntu 20.04 uses xcb and switching to the the xcb branch partly solved the error. Now it changed to: name 'Gtk' is not defined

Not sure 20.04 actually uses xcb