Created
December 16, 2023 22:07
-
-
Save rossturk/d3a3dab657e24243aed5209de70fe576 to your computer and use it in GitHub Desktop.
`flox install python`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% flox -v -v install python INT ✘ | |
`$FLOX_CONFIG_HOME` not set, using "/Users/rturk/.config/flox/" | |
no default user nix.conf found - weird | |
Attempting to read own UUID from file | |
installing packages [python] to Unspecified | |
[DEBUG] [flox_rust_sdk::models::environment] looking for .flox: starting_path=/Users/rturk/projects/sd-notebook/.flox | |
[DEBUG] [flox_rust_sdk::models::environment] .flox found: path=/Users/rturk/projects/sd-notebook/.flox | |
detected concrete environment type: path | |
[DEBUG] [flox_rust_sdk::models::environment::path_environment] attempting to open .flox directory: /Users/rturk/projects/sd-notebook/.flox | |
Writing new metrics buffer entry | |
[DEBUG] [flox_rust_sdk::models::manifest] attempting to insert packages into manifest | |
[DEBUG] [flox_rust_sdk::models::manifest] package newly installed: id=python, path=python | |
[DEBUG] [flox_rust_sdk::models::environment::core_environment] transaction: making temporary environment in /Users/rturk/.cache/flox/process/.tmpTQMd8c/.tmpd26IqZ | |
[DEBUG] [flox_rust_sdk::models::environment::core_environment] transaction: updating manifest | |
[DEBUG] [flox_rust_sdk::models::environment::core_environment] writing new manifest to /Users/rturk/.cache/flox/process/.tmpTQMd8c/.tmpd26IqZ/manifest.toml | |
[DEBUG] [flox_rust_sdk::models::environment::core_environment] transaction: building environment | |
[DEBUG] [flox_rust_sdk::models::environment::core_environment] found existing lockfile: /Users/rturk/.cache/flox/process/.tmpTQMd8c/.tmpd26IqZ/manifest.lock | |
[DEBUG] [flox_rust_sdk::models::environment] global manifest path is /Users/rturk/.config/flox/global-manifest.toml | |
[DEBUG] [flox_rust_sdk::models::environment::core_environment] locking manifest with command: "/nix/store/km8pamciz6k5x3hqfkyzjs10cdvzdbr3-flox-pkgdb-0.1.0/bin/pkgdb" "manifest" "lock" "--ga-registry" "--global-manifest" "/Users/rturk/.config/flox/global-manifest.toml" "--manifest" "/Users/rturk/.cache/flox/process/.tmpTQMd8c/.tmpd26IqZ/manifest.toml" "--lockfile" "/Users/rturk/.cache/flox/process/.tmpTQMd8c/.tmpd26IqZ/manifest.lock" | |
[DEBUG] [flox_rust_sdk::models::environment::core_environment] generated lockfile, writing to /Users/rturk/.cache/flox/process/.tmpTQMd8c/.tmpd26IqZ/manifest.lock | |
[DEBUG] [flox_rust_sdk::models::environment::core_environment] building environment: system=aarch64-darwin, lockfilePath=/Users/rturk/.cache/flox/process/.tmpTQMd8c/.tmpd26IqZ/manifest.lock | |
[DEBUG] [flox_rust_sdk::models::environment::core_environment] building environment with command: "/nix/store/km8pamciz6k5x3hqfkyzjs10cdvzdbr3-flox-pkgdb-0.1.0/bin/pkgdb" "buildenv" "{\"lockfile-version\":0,\"manifest\":{\"install\":{\"python\":{\"path\":\"python\"}},\"registry\":{\"defaults\":{\"subtrees\":null},\"inputs\":{\"nixpkgs\":{\"from\":{\"owner\":\"NixOS\",\"ref\":\"release-23.05\",\"repo\":\"nixpkgs\",\"type\":\"github\"},\"subtrees\":[\"legacyPackages\"]}},\"priority\":[\"nixpkgs\"]}},\"packages\":{\"aarch64-darwin\":{\"python\":{\"attr-path\":[\"legacyPackages\",\"aarch64-darwin\",\"python\"],\"info\":{\"broken\":false,\"license\":\"Python-2.0\",\"pname\":\"python\",\"unfree\":false,\"version\":\"2.7.18.6\"},\"input\":{\"attrs\":{\"lastModified\":1702761668,\"narHash\":\"sha256-pjaa+C9fUvUBh2ebGha6zQdb6mpBBFCJW4WwYfId9+k=\",\"owner\":\"NixOS\",\"repo\":\"nixpkgs\",\"rev\":\"94f88613cb335c6d52d4c87b4ee3275ead7092b5\",\"type\":\"github\"},\"fingerprint\":\"2686a2e82f4a788b780c63292f2058cae88d9ac6fa95f404ba87c3f44bcbb713\",\"url\":\"github:NixOS/nixpkgs/94f88613cb335c6d52d4c87b4ee3275ead7092b5\"},\"priority\":5}}},\"registry\":{\"defaults\":{\"subtrees\":null},\"inputs\":{\"nixpkgs\":{\"from\":{\"lastModified\":1702761668,\"narHash\":\"sha256-pjaa+C9fUvUBh2ebGha6zQdb6mpBBFCJW4WwYfId9+k=\",\"owner\":\"NixOS\",\"repo\":\"nixpkgs\",\"rev\":\"94f88613cb335c6d52d4c87b4ee3275ead7092b5\",\"type\":\"github\"},\"subtrees\":[\"legacyPackages\"]}},\"priority\":[\"nixpkgs\"]}}" | |
ERROR: error building environment: | |
% "/nix/store/km8pamciz6k5x3hqfkyzjs10cdvzdbr3-flox-pkgdb-0.1.0/bin/pkgdb" "buildenv" "{\"lockfile-version\":0,\"manifest\":{\"install\":{\"python\":{\"path\":\"python\"}},\"registry\":{\"defaults\":{\"subtrees\":null},\"inputs\":{\"nixpkgs\":{\"from\":{\"owner\":\"NixOS\",\"ref\":\"release-23.05\",\"repo\":\"nixpkgs\",\"type\":\"github\"},\"subtrees\":[\"legacyPackages\"]}},\"priority\":[\"nixpkgs\"]}},\"packages\":{\"aarch64-darwin\":{\"python\":{\"attr-path\":[\"legacyPackages\",\"aarch64-darwin\",\"python\"],\"info\":{\"broken\":false,\"license\":\"Python-2.0\",\"pname\":\"python\",\"unfree\":false,\"version\":\"2.7.18.6\"},\"input\":{\"attrs\":{\"lastModified\":1702761668,\"narHash\":\"sha256-pjaa+C9fUvUBh2ebGha6zQdb6mpBBFCJW4WwYfId9+k=\",\"owner\":\"NixOS\",\"repo\":\"nixpkgs\",\"rev\":\"94f88613cb335c6d52d4c87b4ee3275ead7092b5\",\"type\":\"github\"},\"fingerprint\":\"2686a2e82f4a788b780c63292f2058cae88d9ac6fa95f404ba87c3f44bcbb713\",\"url\":\"github:NixOS/nixpkgs/94f88613cb335c6d52d4c87b4ee3275ead7092b5\"},\"priority\":5}}},\"registry\":{\"defaults\":{\"subtrees\":null},\"inputs\":{\"nixpkgs\":{\"from\":{\"lastModified\":1702761668,\"narHash\":\"sha256-pjaa+C9fUvUBh2ebGha6zQdb6mpBBFCJW4WwYfId9+k=\",\"owner\":\"NixOS\",\"repo\":\"nixpkgs\",\"rev\":\"94f88613cb335c6d52d4c87b4ee3275ead7092b5\",\"type\":\"github\"},\"subtrees\":[\"legacyPackages\"]}},\"priority\":[\"nixpkgs\"]}}" | |
error: | |
… in the condition of the assert statement | |
at /nix/store/gpcq91yz5pmk0k9wiy0qxd68pqnhbvra-source/lib/customisation.nix:229:17: | |
228| drvPath = assert condition; drv.drvPath; | |
229| outPath = assert condition; drv.outPath; | |
| ^ | |
230| }; | |
… while evaluating the attribute 'handled' | |
at /nix/store/gpcq91yz5pmk0k9wiy0qxd68pqnhbvra-source/pkgs/stdenv/generic/check-meta.nix:447:7: | |
446| # or, alternatively, just output a warning message. | |
447| handled = | |
| ^ | |
448| { | |
(stack trace truncated; use '--show-trace' to show the full trace) | |
error: Package ‘python-2.7.18.6’ in /nix/store/gpcq91yz5pmk0k9wiy0qxd68pqnhbvra-source/pkgs/development/interpreters/python/cpython/2.7/default.nix:330 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: For `nix shell`, `nix build`, `nix develop` or any other Nix 2.4+ | |
(Flake) command, `--impure` must be passed in order to read this | |
environment variable. | |
b) for `nixos-rebuild` you can add ‘python-2.7.18.6’ to | |
`nixpkgs.config.permittedInsecurePackages` in the configuration.nix, | |
like so: | |
{ | |
nixpkgs.config.permittedInsecurePackages = [ | |
"python-2.7.18.6" | |
]; | |
} | |
c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add | |
‘python-2.7.18.6’ to `permittedInsecurePackages` in | |
~/.config/nixpkgs/config.nix, like so: | |
{ | |
permittedInsecurePackages = [ | |
"python-2.7.18.6" | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment