Skip to content

Building python 3.11 - 403 #114

@grappas

Description

@grappas
devenv --version
devenv 2.0.3 (x86_64-linux)
devenv -v shell
✓ Configuring shell                                                                                                                                                                          44.4s
  └ ✓ Downloading  https://devenv.cachix.org/nix-cache-info from devenv.cachix.org                                                                                                            5.0s
  └ ✓ Downloading  https://devenv.cachix.org/nix-cache-info from devenv.cachix.org                                                                                                            7.6s
  └ ✓ Updating inputs 6 files                                                                                                                                                                  1ms
  └ ✓ Checking cachix config 2081 files                                                                                                                                                       2.5s
    • devenv path: '/nix/store/kkx2hzq20ggrwhy385jglnxjncg4lqck-source/pkgs/development/compilers/llvm/18/llvm/llvm-lit-cfg-add-libs-to-dylib-path.patch'
    • devenv path: '/nix/store/kkx2hzq20ggrwhy385jglnxjncg4lqck-source/pkgs/development/compilers/llvm/18/llvm/lit-shell-script-runner-set-dyld-library-path.patch'
    • devenv path: '/nix/store/kkx2hzq20ggrwhy385jglnxjncg4lqck-source/pkgs/development/compilers/llvm/20/llvm/gnu-install-dirs-polly.patch'
    • devenv path: '/nix/store/kkx2hzq20ggrwhy385jglnxjncg4lqck-source/pkgs/development/compilers/llvm/18/llvm/polly-lit-cfg-add-libs-to-dylib-path.patch'
    • devenv path: '/nix/store/kkx2hzq20ggrwhy385jglnxjncg4lqck-source/pkgs/development/tools/haskell/ghc-settings-edit'
  └ ✗ Evaluating shell 3488 files                                                                                                                                                            27.6s
    └ ✓ Building  Python-3.11.15.tgz 18 lines                                                                                                                                                 8.2s
    └ ✓ Building  pyproject.toml                                                                                                                                                               8ms
             > structuredAttrs is enabled
             >
             > trying https://www.python.org/ftp/python/3.11.15/Python-3.11.15.tgz
             >   % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
             >                                  Dload  Upload  Total   Spent   Left   Speed
             >   0      0   0      0   0      0      0      0                              0
             > curl: (22) The requested URL returned error: 403
             > Warning: Problem (retrying all errors). Will retry in 1 second. 3 retries left.
             >   0      0   0      0   0      0      0      0                              0
             > curl: (22) The requested URL returned error: 403
             > Warning: Problem (retrying all errors). Will retry in 2 seconds. 2 retries
             > Warning: left.
             >   0      0   0      0   0      0      0      0                              0
             > curl: (22) The requested URL returned error: 403
             > Warning: Problem (retrying all errors). Will retry in 4 seconds. 1 retry left.
             >   0      0   0      0   0      0      0      0                              0
             > curl: (22) The requested URL returned error: 403
             > error: cannot download Python-3.11.15.tgz from any mirror
             For full logs, run:
               nix log /nix/store/4v60bvli16xz2fsqqsg01x5d0b8mvxmv-Python-3.11.15.tgz.drv
    ✗ error: cannot download Python-3.11.15.tgz from any mirror
    ✗ error: Cannot build '/nix/store/8ifmvb49bj30q6mgvch9dpsa8p5sbarn-python3-3.11.15.drv'.
    ✗ error: Cannot build '/nix/store/zds770hzfhsr015vjq56pmdivbv1h5h1-python3-3.11.15-env.drv'.

error: Cannot build '/nix/store/zds770hzfhsr015vjq56pmdivbv1h5h1-python3-3.11.15-env.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/wfvw1wkjl0qia2nrswp231hk21f8b8zi-python3-3.11.15-env
error: cannot download Python-3.11.15.tgz from any mirror
       For full logs, run:
         nix log /nix/store/4v60bvli16xz2fsqqsg01x5d0b8mvxmv-Python-3.11.15.tgz.drv
error: Cannot build '/nix/store/4v60bvli16xz2fsqqsg01x5d0b8mvxmv-Python-3.11.15.tgz.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/lkvsn4r6z8l4rws5nrawhxj3sdb655bi-Python-3.11.15.tgz
       Last 18 log lines:
       > structuredAttrs is enabled
       >
       > trying https://www.python.org/ftp/python/3.11.15/Python-3.11.15.tgz
       >   % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
       >                                  Dload  Upload  Total   Spent   Left   Speed
       >   0      0   0      0   0      0      0      0                              0
       > curl: (22) The requested URL returned error: 403
       > Warning: Problem (retrying all errors). Will retry in 1 second. 3 retries left.
       >   0      0   0      0   0      0      0      0                              0
       > curl: (22) The requested URL returned error: 403
       > Warning: Problem (retrying all errors). Will retry in 2 seconds. 2 retries
       > Warning: left.
       >   0      0   0      0   0      0      0      0                              0
       > curl: (22) The requested URL returned error: 403
       > Warning: Problem (retrying all errors). Will retry in 4 seconds. 1 retry left.
       >   0      0   0      0   0      0      0      0                              0
       > curl: (22) The requested URL returned error: 403
       > error: cannot download Python-3.11.15.tgz from any mirror
       For full logs, run:
         nix log /nix/store/4v60bvli16xz2fsqqsg01x5d0b8mvxmv-Python-3.11.15.tgz.drv
error: Cannot build '/nix/store/8ifmvb49bj30q6mgvch9dpsa8p5sbarn-python3-3.11.15.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/33bh0xc22p1z5w7m9pbrdy7c3s0yhckc-python3-3.11.15-debug
         /nix/store/dn46saqnn161sc832phjajvflbk3igf4-python3-3.11.15
Error:   × Evaluation error: Failed to realize shell derivation: error: Cannot build '/nix/store/zds770hzfhsr015vjq56pmdivbv1h5h1-python3-3.11.15-env.drv'.
  │        Reason: 1 dependency failed.
  │        Output paths:
  │          /nix/store/wfvw1wkjl0qia2nrswp231hk21f8b8zi-python3-3.11.15-env: error: Cannot build '/nix/store/kb1ppif91a8msk0nxz52gi7qf7iir81p-devenv-shell.drv'.
  │        Reason: 1 dependency failed.
  │        Output paths:
  │          /nix/store/szsdd503idpqdml6n98gvgcjkcxclzvj-devenv-shell

where devenv.nix:

{
  pkgs,
  config,
  ...
}:
{
  cachix.enable = true;
  languages.python = {
    enable = true;
    version = "3.11";
    libraries = with pkgs.python311Packages; [
      tkinter
      numpy
      pillow
      # opencv4
      python-snap7
    ];
    venv = {
      enable = true;
      requirements = ''
        attrs==23.2.0
        cattrs==23.2.3
        lsprotocol==2023.0.1
        nodeenv==1.9.1
        packaging==24.0
        pygls==1.3.1
        tflite-runtime==2.14.0
        typing_extensions==4.12.1
      '';
    };
  };
  enterShell = ''
      "VIRTUAL_ENV" = "./.devenv/state/venv";
  '';
}

and devenv.yaml

inputs:
  nixpkgs-python:
    url: github:cachix/nixpkgs-python
    inputs:
      nixpkgs:
        follows: nixpkgs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions