anaconda / nb_conda

Conda environment and package access extension from within Jupyter
BSD 3-Clause "New" or "Revised" License
140 stars 32 forks source link

pre-unlink and post-link failures during package install #63

Closed joelhullcio closed 7 years ago

joelhullcio commented 7 years ago

pre-unlink failed during package install

conda install nb_conda
Fetching package metadata .............
Solving package specifications: .

Package plan for installation in environment /opt/anaconda:

The following NEW packages will be INSTALLED:

    _nb_ext_conf:     0.4.0-py27_1
    nbpresent:        3.0.2-py27h73ae17d_1

The following packages will be UPDATED:

    nb_conda:         0.1.4-py27_0           anaconda-nb-extensions --> 2.2.1-py27h9a0a3a7_0
    nb_conda_kernels: 0.1.2-py27_17_g7aeb8c5 anaconda-nb-extensions --> 2.1.0-py27_0

Proceed ([y]/n)?

nbpresent-3.0. 100% |###################################################################################| Time: 0:00:00   5.50 MB/s
nb_conda-2.2.1 100% |###################################################################################| Time: 0:00:00  26.32 MB/s
WARNING conda.core.link:run_script(516): pre-unlink script failed for package anaconda-nb-extensions::nb_conda_kernels-0.1.2-py27_17_g7aeb8c5
consider notifying the package maintainer
+ /opt/anaconda/bin/jupyter-nbextension enable nbpresent --py --sys-prefix
Enabling notebook extension nbpresent/js/nbpresent.min...
      - Validating: OK
+ /opt/anaconda/bin/jupyter-serverextension enable nbpresent --py --sys-prefix
Enabling: nbpresent
- Writing config: /opt/anaconda/etc/jupyter
    - Validating...
      nbpresent  OK

+ /opt/anaconda/bin/jupyter-nbextension enable nb_conda --py --sys-prefix
Enabling notebook extension nb_conda/main...
      - Validating: OK
Enabling tree extension nb_conda/tree...
      - Validating: OK
+ /opt/anaconda/bin/jupyter-serverextension enable nb_conda --py --sys-prefix
Enabling: nb_conda
- Writing config: /opt/anaconda/etc/jupyter
    - Validating...
      nb_conda  OK
conda info
Current conda install:

               platform : osx-64
          conda version : 4.3.27
       conda is private : False
      conda-env version : 4.3.27
    conda-build version : 2.1.7
         python version : 2.7.11.final.0
       requests version : 2.13.0
       root environment : /opt/anaconda  (writable)
    default environment : /opt/anaconda
       envs directories : /opt/anaconda/envs
                          /Users/jhull/.conda/envs
          package cache : /opt/anaconda/pkgs
                          /Users/jhull/.conda/pkgs
           channel URLs : https://repo.continuum.io/pkgs/main/osx-64
                          https://repo.continuum.io/pkgs/main/noarch
                          https://repo.continuum.io/pkgs/free/osx-64
                          https://repo.continuum.io/pkgs/free/noarch
                          https://repo.continuum.io/pkgs/r/osx-64
                          https://repo.continuum.io/pkgs/r/noarch
                          https://repo.continuum.io/pkgs/pro/osx-64
                          https://repo.continuum.io/pkgs/pro/noarch
                          https://conda.anaconda.org/anaconda/osx-64
                          https://conda.anaconda.org/anaconda/noarch
            config file : /Users/jhull/.condarc
             netrc file : None
           offline mode : False
             user-agent : conda/4.3.27 requests/2.13.0 CPython/2.7.11 Darwin/16.7.0 OSX/10.12.6
                UID:GID : 502:20

Also, the nb_conda package failed to install when it was part of an anaconda install built with Constructor 2.0.0. This failure causes the entire anaconda install to fail.

installing: nb_conda-2.2.1-py27h9a0a3a7_0 ...
Error: post-link failed for: nb_conda-2.2.1-py27h9a0a3a7_0
damianavila commented 7 years ago

Latest versions are available in conda-forge and default. Removing the anaconda-nb-extensions channel made constructor work OK when it got the packages from defaults. Closing.