Open ghost opened 8 years ago
installed python-gobject
, works now :smirk_cat:
can you put it in the readme?
Actually, could AttributeError
be added to the exceptions caught by i3pystatus/core/desktop.py line 36? It already catches ImportError
and ValueError
, which would indicate that the necessary library (python-gobject
) is not installed... and in this case, it just skips the rest of the code in that module.
AttributeError
here means that some package has probably installed something in the /usr/lib/python3.5/site-packages/gi/overrides/
directory (in my case, libgexiv2
did this) but you don't have python-gobject
installed. This has the effect that Python sees the gi
package as existing (so you won't get an ImportError
), but having nothing in it. Since it still boils down to python-gobject
not being installed, could we get the same behavior in this case?
Hi, it doesn't work on my voidlinux install. I installed i3pystatus from pip but I needed to install python3-gobject module, that contains the gi module.
installed
python-gobject
, works now smirk_cat can you put it in the readme?
Yup, it worked for me too, thanks for the tip !
The normal pip-install python-gobject
didn't work for me.
I needed:
pip3 install PyGObject
and then it worked. Thanks!
Arch x86_64 Python: 3.5.1 i3 version 4.11
status.py
on
python3 ~/.i3/status.py