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
Pyside on nixos ImportError: libgssapi_krb5.so.2 #492
Comments
I even did a |
If you have nix-index package installed you should be able to
and I have and it still doesn't work |
(mach-nix user here.) Can you paste your Nix expression? |
I just entered the commands above I listed and have the requirements.txt and it generated my shell.nix file. |
Ah, sorry I missed that. I think what you found is that python packaging metadata doesn't include OS/system library dependencies, so you have to write a Nix expression and add that info manually with an overlay. Example here: https://github.com/DavHau/mach-nix/blob/master/examples.md#example-add-missing-build-inputs. |
If you're talking about |
Anyway, taking your with (import ./inputs.nix);
mach-nix.mkPython {
requirements = builtins.readFile ./requirements.txt;
} and tweak it like this: with (import ./inputs.nix);
mach-nix.mkPython {
requirements = builtins.readFile ./requirements.txt;
_.pyside2.buildInputs.add = with pkgs; [ libkrb5 ]; # LINE ADDED
} then it works:
|
Thanks works great now! is there anyway to make mach nix detect and add this lib if the library is in the requirements.txt or is this standard procedure I added a pull request; #495 To help others in this situation. I just realized the suggested method to find libs only works on nixos, but I think that should be enough for now. |
I think autoPatchelfHook can be told to fail if it's missing libs, but it only works for non- I think the documentation already covers adding missing libraries. (That's how I learned about it.)
I don't see anything in that PR that makes it NixOS specific. |
But note that libkrb5 should be in |
Ok so I think you're saying the proper way to fix this is to modify /mach_nix/fixes.nix pyside2.add-native-inputs = { I will try this later, but this does look better? |
|
Ok I was trying my own clone of mach in directory
I tried many different combinations of
just trying to help in case anyone else is trying to get it to work with a simple requirements.txt
|
Has anyone been using pyside on nixos? I'm trying to run an example from https://github.com/pyside/pyside2-examples
I used
nix-locate -1 -w libgssapi_krb5.so.2
to decide I neededlibkrb5
andkrb5
in my configuration.nix and I'm still getting the error below.The text was updated successfully, but these errors were encountered: