# Cannot run reproducible PyGObject example script

**URL:** https://discourse.nixos.org/t/cannot-run-reproducible-pygobject-example-script/22855
**Category:** Help
**Created:** [October 30, 2022, 6:38pm UTC](https://discourse.nixos.org/t/cannot-run-reproducible-pygobject-example-script/22855 "2022-10-30T18:38:12Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![jtojnar](https://discourse.nixos.org/user_avatar/discourse.nixos.org/jtojnar/32/70_2.png) [@jtojnar](https://discourse.nixos.org/u/jtojnar)
#### Post date: [October 30, 2022, 8:06pm UTC](https://discourse.nixos.org/t/cannot-run-reproducible-pygobject-example-script/22855/2 "2022-10-30T20:06:17Z")

</div>

In this simple case, you need `gobject-introspection` for its setup hook to set `GI_TYPELIB_PATH` variable. But for more complex examples, you will need [other variables](https://nixos.org/manual/nixpkgs/stable/#sec-language-gnome) as well, and that is not possible to express in shebang easily – a variable extraction similar to [Python + Qt woes - #2 by jtojnar](https://discourse.nixos.org/t/python-qt-woes/11808/2) will be required.

---

_[View the full topic](https://discourse.nixos.org/t/cannot-run-reproducible-pygobject-example-script/22855)._
