Open hedning opened 6 years ago
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/modulenotfounderror-no-module-named-gi/6874/9
Hello, I'm a bot and I thank you in the name of the community for opening this issue.
To help our human contributors focus on the most-relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 180 days, and so I marked it as stale, but you can rest assured it will never be closed by a non-human.
The community would appreciate your effort in checking if the issue is still valid. If it isn't, please close it.
If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me". If you'd like it to get more attention, you can ask for help by searching for maintainers and people that previously touched related code and @ mention them in a comment. You can use Git blame or GitHub's web interface on the relevant files to find them.
Lastly, you can always ask for help at our Discourse Forum or at #nixos' IRC channel.
Issue description
Most gir files are generated by
g-ir-scanner
fromgobject-introspection
, which we patch to generate absolute paths to the dependencies the gir specifies.vala
generates gir files without the help ofgobject-introspection
, so our patches that make things work properly have no effect.An example is
gnome3.folks
being unusable from python out of the box: #47059. The same problem can be seen withgranite
(another vala library).Steps to reproduce
nix-shell -p pantheon.granite gobject-introspection 'python3.withPackages (p: [p.pygobject3 ])' --command 'python -c "from gi.repository import Granite"'