pynose has been removed, so this will no longer work
see gtg: don't use nose by dotlambda ¡ Pull Request #326164 ¡ NixOS/nixpkgs ¡ GitHub
see binwalk, diffoscope: update after Python 3.12 by philiptaron ¡ Pull Request #325623 ¡ NixOS/nixpkgs ¡ GitHub and python312Packages.binwalk: support Python 3.12 by dotlambda ¡ Pull Request #325865 ¡ NixOS/nixpkgs ¡ GitHub
I see that this pr has been created, is it possible to apply this patch locally on my system?
On my system i had to (hopefully temporary) disable hplip and!!! chirp. (HamRadio AppâŚ)
looks like pynose
removed from pkgs repo
Where do you find clues that led you to guess the source of the problem?
Should I keep randomly disabling Python-related things and checking if it works?
When I encounter problems like this, I want to at least see some stack traces to identify where they might be coming from.
If you nixos-rebuild with --show-trace, the broken package should be shown in the trace.
Next problem on one of my systems. But maybe not related to the above python thingâŚ
[user@desktop:/etc/nixos]$ sudo nixos-rebuild --show-trace switch
building the system configurationâŚ
error: hash mismatch in fixed-output derivation â/nix/store/zg2zsi4nkgnhn92nj3qqmyd12kvban13-source.drvâ:
specified: sha256-z4yxWClbs05ZCT8CPJpPY2BWMSXxfJ09Lq3Oottx7dQ=
got: sha256-hZjmAdh9QQ2bAIYL3K7scl59kz9Wxnv9f6rKMeuKb7U=
error: 1 dependencies of derivation â/nix/store/x0fg4xc7zr3gbsbaypqaq4xdc9gwyj33-nextcloud-client-3.13.2.drvâ failed to build
error: 1 dependencies of derivation â/nix/store/51qslnrzb1x2rz0hlmf51j6mx3d5amzz-system-path.drvâ failed to build
error: 1 dependencies of derivation â/nix/store/ffz9h0f19y50i2x9yc8qhbpvs3ks8kxz-nixos-system-schwoon-desktop-24.11.20240709.feb2849.drvâ failed to build
Yeah, I didnât know what iynaix just mentioned. Or what other good ways of handling this would be. This wouldâve been a pretty painful way of doing things, and I only mentioned it because it was the only solution I could think of short of uninstalling NixOS, or taking a gamble learning new Nix features I wasnât sure would solve the problem in a way I would be happy with, and because it took me some effort to even figure out how to do this. I hope I wasnât being too confusing for anybody here.
Well, when it is fixed, why my update does not work as described above. That hasnât changed for meâŚ
It hasnât reached the nixos-unstable channel yet: https://nixpk.gs/pr-tracker.html?pr=326093
How did this happen? How could a PR to master be merged that broke the building of so many packages? Isnât that what the ci system is for?
(Iâm not complaining, I genuinely am asking because it doesnât jive with how I thought the nixpkgs dev procedures worked)
I think it was very much known that there would be fallout. In a thread for breaking changes on unstable it was also announced as âparticularly breakingâ (Breaking changes announcement for unstable - #53 by hexa). The given solution was to pin to python311
.
It doesnât break stable, and at some point you gotta take the dive to the next version. I think itâs very normal that breaking changes are merged from time to time, and then the breakage is fixed by the maintainers of the affected packages over the following days/weeks/etc.
If you hold up the progression of the staging
branch â which is used for changes high up the dependency tree that cause widespread rebuilds â trying to fix every single package that gets broken, other important fixes wouldnât make their way in and no largeâscale change would ever get finished; the processes would grind to a halt. Past a certain point you have to declare it good enough and distribute the effort of fixing the remainder. Thereâs always stuff broken, especially on the unstable branches, although Python 3.12 has proven to be quite the doozy. The whole ecosystem has been feeling that, not just us; users on unstable just get to have frontârow seats.
Thanks for the replies.
I see now that this nose issue is actually because of the jump from python 11 to 12. I thought it was a nose specific issue
Also thanks for that link to the other thread. Thatâs exactly the kind of info I was looking for.
All this issue is affecting darvin-nix as well
Seems problem not solved yet related to the âpython3.12-powerline-2.8.3â
main issue is with the dependency âpython3.12-python-hglib-2.6.2â
⌠while evaluating attribute 'propagatedBuildInputs' of derivation 'python3.12-powerline-2.8.3'
at /nix/store/3rfk8gjrsq2hbf7jjrbzg15x1bmpnjls-source/pkgs/stdenv/generic/make-derivation.nix:388:7:
387| depsHostHostPropagated = elemAt (elemAt propagatedDependencies 1) 0;
388| propagatedBuildInputs = elemAt (elemAt propagatedDependencies 1) 1;
| ^
389| depsTargetTargetPropagated = elemAt (elemAt propagatedDependencies 2) 0;
⌠while evaluating derivation 'python3.12-python-hglib-2.6.2'
whose name attribute is located at /nix/store/3rfk8gjrsq2hbf7jjrbzg15x1bmpnjls-source/pkgs/stdenv/generic/make-derivation.nix:334:7
⌠while evaluating attribute 'nativeBuildInputs' of derivation 'python3.12-python-hglib-2.6.2'
at /nix/store/3rfk8gjrsq2hbf7jjrbzg15x1bmpnjls-source/pkgs/stdenv/generic/make-derivation.nix:378:7:
377| depsBuildBuild = elemAt (elemAt dependencies 0) 0;
378| nativeBuildInputs = elemAt (elemAt dependencies 0) 1;
| ^
379| depsBuildTarget = elemAt (elemAt dependencies 0) 2;
error: nose-1.3.7 not supported for interpreter python3.12
So Iâm hitting this with the certbot-full package â happy to file a github issue, but not exactly sure how to get it associated with this effort?
Itâs already fixed, just needs to land in unstable
python312Packages.nose: fix build by jchv ¡ Pull Request #325968 ¡ NixOS/nixpkgs ¡ GitHub will land in unstable in the next few weeks and should solve these error messages, but in the meantime and looking forward weâre also working on removing these dependencies in python3Packages: get rid of uses of nose ¡ Issue #326513 ¡ NixOS/nixpkgs ¡ GitHub.