New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pitivi: fix path to gst-python #29126
Conversation
This fixes the `object() takes no parameters` error that shows up on startup.
@rycee, thanks for your PR! By analyzing the history of the files in this pull request, we identified @bjornfor, @lethalman and @FRidh to be potential reviewers. |
@@ -46,6 +46,8 @@ in stdenv.mkDerivation rec { | |||
dbus-python | |||
]); | |||
|
|||
PYTHONPATH = "${python3Packages.gst-python}/lib/${python3Packages.python.sitePackages}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I first wondered what this change fixed, but saw that CONFIGURED_PYTHONPATH
changed within the wrapped python script pick it up, which is part of the meson buildsystem: https://github.com/GNOME/pitivi/blob/master/meson.build#L28
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly I didn't know either but when I was searching around I saw somewhere that this error was related to Python not finding gst-python
and then I dug around a bit and found this little trick.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gst-python
has a lib
inside a lib
folder? Shouldn't that be fixed instead...?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FRidh Yeah, it does. I've been looking a bit at that as well and hope to fix it. My first fix attempt didn't work so I did Pitivi instead since that's what I wanted in the first place :-)
I'll continue looking at gst-python…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rycee the preConfigure
is incorrect:
$out/lib/${python.sitePackages}
should be
$out/${python.sitePackages}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I swear that was the "first fix attempt" I mentioned and it didn't work. But now I tried it again and it worked!
💩
I'll make a PR for gst-python with the corrected output path…
Motivation for this change
To make the program start up. Without this the startup errors out as follows:
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)