python2
2.7.18.8Eval errorHigh-level dynamically-typed programming language
Planning log · · This campaign
pkgs/development/interpreters/python/cpython/2.7/default.nixPackage ‘python-2.7.18.8’ is marked as insecure, refusing to evaluate.
Full diagnostic
GC Warning: Failed to expand heap by 4194304 KiB
error:
… while evaluating attribute 'drv'
at /nix/store/7grxfpycxgsjxzwcrr2dq396c048kf7d-filnix-experiment-0.11.0/lib/experiment/planner.nix:14:3:
13| {
14| drv = p.drvPath;
| ^
15| name = p.name;
… while evaluating the attribute 'drvPath'
at /nix/store/adl9l4rf1ayxhazahjxi1wv4nzd71pfz-source/lib/customisation.nix:418:7:
417| // {
418| drvPath =
| ^
419| assert condition;
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: Package ‘python-2.7.18.8’ in /nix/store/adl9l4rf1ayxhazahjxi1wv4nzd71pfz-source/pkgs/development/interpreters/python/cpython/2.7/default.nix:398 is marked as insecure, refusing to evaluate.
Known issues:
- Python 2.7 has reached its end of life after 2020-01-01. See https://www.python.org/doc/sunset-python-2/.
You can install it anyway by allowing this package, using the
following methods:
a) To temporarily allow all insecure packages, you can use an environment
variable for a single invocation of the nix tools:
$ export NIXPKGS_ALLOW_INSECURE=1
Note: When using `nix shell`, `nix build`, `nix develop`, etc with a flake,
then pass `--impure` in order to allow use of environment variables.
b) for `nixos-rebuild` you can add ‘python-2.7.18.8’ to
`nixpkgs.config.permittedInsecurePackages` in the configuration.nix,
like so:
{
nixpkgs.config.permittedInsecurePackages = [
"python-2.7.18.8"
];
}
c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
‘python-2.7.18.8’ to `permittedInsecurePackages` in
~/.config/nixpkgs/config.nix, like so:
{
permittedInsecurePackages = [
"python-2.7.18.8"
];
}
Direct dependencies
None recorded.
Selected dependents
None recorded.