"certifi-2021.05.30 not supported for interpreter python2.7" while building

I’m getting the following error when I try to build. Oddly enough I get this error even when I switch to older working versions which previously built. What can I do do diagnose this?

❯ sudo -i nixos-rebuild test --show-trace
building Nix...
building the system configuration...
error: while evaluating the attribute 'activationScript' of the derivation 'nixos-system-nixie-tube-21.05.1153.0ccd0d91361' at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/pkgs/stdenv/generic/make-derivation.nix:201:11:
while evaluating the attribute 'system.activationScripts.script' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/activation-script.nix:80:9:
while evaluating 'textClosureMap' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/strings-with-deps.nix:75:35, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/activation-script.nix:101:18:
while evaluating 'id' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/trivial.nix:14:5, called from undefined position:
while evaluating the attribute 'text' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/activation-script.nix:9:5:
while evaluating the attribute 'text' at undefined position:
while evaluating 'g' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:298:19, called from undefined position:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:140:72, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:301:20:
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:525:9:
while evaluating the option `system.activationScripts.etc.text':
while evaluating the attribute 'mergedValue' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:557:5:
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:551:9:
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:650:7:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:537:28, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:537:17:
while evaluating definitions from `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/etc/etc.nix':
while evaluating 'dischargeProperties' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:609:25, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:538:137:
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:392:44:
while evaluating the attribute 'sources' of the derivation 'etc' at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/pkgs/stdenv/generic/make-derivation.nix:201:11:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/etc/etc.nix:20:20, called from undefined position:
while evaluating the attribute 'source' at undefined position:
while evaluating 'g' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:298:19, called from undefined position:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:140:72, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:301:20:
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:525:9:
while evaluating the option `environment.etc.systemd/system.source':
while evaluating the attribute 'mergedValue' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:557:5:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:559:17, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:559:12:
while evaluating 'check' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/types.nix:349:15, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:559:22:
while evaluating the attribute 'buildCommand' of the derivation 'system-units' at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/pkgs/stdenv/generic/make-derivation.nix:201:11:
while evaluating the attribute 'text' of the derivation 'unit-home-manager-ciferkey.service' at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/pkgs/stdenv/generic/make-derivation.nix:201:11:
while evaluating the attribute 'text' at undefined position:
while evaluating 'g' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:298:19, called from undefined position:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:140:72, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:301:20:
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:525:9:
while evaluating the option `systemd.units.home-manager-ciferkey.service.text':
while evaluating the attribute 'mergedValue' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:557:5:
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:551:9:
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:650:7:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:537:28, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:537:17:
while evaluating definitions from `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/boot/systemd.nix':
while evaluating 'dischargeProperties' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:609:25, called from /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:538:137:
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:392:44:
while evaluating 'attrsToSection' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/boot/systemd-lib.nix:111:20, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/boot/systemd.nix:350:13:
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/boot/systemd-lib.nix:113:12, called from undefined position:
while evaluating 'toOption' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/boot/systemd-lib.nix:106:14, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/boot/systemd-lib.nix:114:21:
while evaluating the attribute 'text' of the derivation 'activate-ciferkey' at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/pkgs/stdenv/generic/make-derivation.nix:201:11:
while evaluating the attribute 'buildCommand' of the derivation 'home-manager-generation' at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/pkgs/stdenv/generic/make-derivation.nix:201:11:
while evaluating the attribute 'text' of the derivation 'activation-script' at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/pkgs/stdenv/generic/make-derivation.nix:201:11:
while evaluating 'mkCmd' at /nix/store/34m9xdjn98w3nch22d68rvgi5f5by73w-source/modules/home-environment.nix:502:17, called from undefined position:
while evaluating the attribute 'data' at /nix/store/34m9xdjn98w3nch22d68rvgi5f5by73w-source/modules/lib/dag.nix:91:37:
while evaluating the attribute 'data' at /nix/store/34m9xdjn98w3nch22d68rvgi5f5by73w-source/modules/lib/dag.nix:85:9:
while evaluating the attribute 'data' at undefined position:
while evaluating 'g' at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/lib/attrsets.nix:298:19, called from undefined position:
while evaluating anonymous function at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/lib/modules.nix:140:72, called from /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/lib/attrsets.nix:301:20:
while evaluating the attribute 'value' at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/lib/modules.nix:525:9:
while evaluating the option `home-manager.users.ciferkey.home.activation.installPackages.data':
while evaluating the attribute 'mergedValue' at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/lib/modules.nix:557:5:
while evaluating the attribute 'values' at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/lib/modules.nix:551:9:
while evaluating the attribute 'values' at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/lib/modules.nix:650:7:
while evaluating anonymous function at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/lib/modules.nix:537:28, called from /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/lib/modules.nix:537:17:
while evaluating definitions from `/nix/store/34m9xdjn98w3nch22d68rvgi5f5by73w-source/modules/home-environment.nix':
while evaluating 'dischargeProperties' at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/lib/modules.nix:609:25, called from /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/lib/modules.nix:538:137:
while evaluating the attribute 'value' at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/lib/modules.nix:392:44:
while evaluating the attribute 'passAsFile' of the derivation 'home-manager-path' at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/pkgs/stdenv/generic/make-derivation.nix:201:11:
while evaluating the attribute 'passAsFile' at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/pkgs/build-support/buildenv/default.nix:77:5:
while evaluating the attribute 'out.outPath' at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/lib/customisation.nix:156:13:
while evaluating the attribute 'buildInputs' of the derivation 'nixops-1.7' at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/pkgs/stdenv/generic/make-derivation.nix:201:11:
while evaluating the attribute 'out.outPath' at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/lib/customisation.nix:156:13:
while evaluating the attribute 'propagatedBuildInputs' of the derivation 'python2.7-boto-2.49.0' at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/pkgs/stdenv/generic/make-derivation.nix:201:11:
while evaluating the attribute 'out.outPath' at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/lib/customisation.nix:156:13:
while evaluating the attribute 'propagatedBuildInputs' of the derivation 'python2.7-requests-2.25.1' at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/pkgs/stdenv/generic/make-derivation.nix:201:11:
while evaluating 'getOutput' at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/lib/attrsets.nix:486:23, called from undefined position:
while evaluating anonymous function at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/pkgs/stdenv/generic/make-derivation.nix:166:17, called from undefined position:
while evaluating 'callPackageWith' at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/lib/customisation.nix:117:35, called from /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/pkgs/top-level/python-packages.nix:1298:13:
while evaluating 'makeOverridable' at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/lib/customisation.nix:67:24, called from /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/lib/customisation.nix:121:8:
while evaluating anonymous function at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/pkgs/development/python-modules/certifi/default.nix:1:1, called from /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/lib/customisation.nix:69:16:
while evaluating 'makeOverridablePythonPackage' at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/pkgs/top-level/python-packages.nix:32:37, called from /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/pkgs/development/python-modules/certifi/default.nix:8:1:
while evaluating 'makeOverridable' at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/lib/customisation.nix:67:24, called from /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/pkgs/top-level/python-packages.nix:34:12:
while evaluating anonymous function at /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/pkgs/development/interpreters/python/mk-python-derivation.nix:30:1, called from /nix/store/7icd9iwyqzircgg4gm7rrszl0xxhxaj8-nixos-21.05.1153.0ccd0d91361/nixos/lib/customisation.nix:69:16:
certifi-2021.05.30 not supported for interpreter python2.7

I ran into this when building nixops and found this issue.

Thanks for the heads up. I disabled nixops and was able to build.

I ran into the same problem and solved by installing nixopsUnstable

1 Like