[Nix-dev] Trouble with pygobject
Bjørn Forsman
bjorn.forsman at gmail.com
Fri Oct 31 20:05:00 CET 2014
Hi Richard,
On 31 October 2014 19:28, Richard Wallace <rwallace at thewallacepack.net> wrote:
> Hey all,
[...]
> Now I'm trying to get pithos (a Pandora GTK client) built [1]. Pithos
> builds and everything looks ok, but when I try and run it I get
> `ImportError: No module named gi`. I'm not familiar with Python
> development, but a bit of Googling indicates that python can't pygobject.
>
> Looking at the wrapper created, I see the path to
> `/nix/store/hlyp3a9cy5k7qhfc1chd1v3bm2jljazn-pygobject-2.28.6/lib/python2.7/site-packages`
> included in the PYTHONPATH.
I think you need to add gobjectIntrospection to buildInputs, and then
wrap the executable with GI_TYPELIB_PATH set to GI_TYPELIB_PATH from
the build environment. See the virt-manager expression for example.
Best regards,
Bjørn Forsman
More information about the nix-dev
mailing list