Failed installation due to `nb_conda`: `jupyter-nbextension: No such file or directory`

Is there an existing issue for this?

  • I have searched the existing issues

Bug description

I have tried installing with both windows 11 pro (as admin) and Ubuntu linux on two different machines

Win 11 Pro (lenovo thinkpad)
Ubuntu 22.04 LTS (Dell Latitude)

Both have failed to create the conda environment. It fails at the conda-forge :: nb_conda 2.2.1

Operating System

Linux Ubuntu 22.04 LTS

DeepLabCut version

Latest version

DeepLabCut mode

single animal

Device type

gpu

Steps To Reproduce

cd Downloads/DeepLabCut/conda-environments
conda env create -f Deeplabcut.yaml

Relevant log output

Preparing transaction: done
Verifying transaction: done
Executing transaction: | By downloading and using the cuDNN conda packages, you accept the terms and conditions of the NVIDIA cuDNN EULA -
  https://docs.nvidia.com/deeplearning/cudnn/sla/index.html

/ /home/gerome/anaconda3/envs/DEEPLABCUT/lib/python3.8/site-packages/nb_conda_kernels/install.py:8: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  from pkg_resources import iter_entry_points
Enabling nb_conda_kernels...
CONDA_PREFIX: /home/gerome/anaconda3/envs/DEEPLABCUT
Status: enabled

\ /home/gerome/anaconda3/envs/DEEPLABCUT/bin/.nb_conda-post-link.sh: line 2: /home/gerome/anaconda3/envs/DEEPLABCUT/bin/jupyter-nbextension: No such file or directory
/home/gerome/anaconda3/envs/DEEPLABCUT/bin/.nb_conda-post-link.sh: line 3: /home/gerome/anaconda3/envs/DEEPLABCUT/bin/jupyter-serverextension: No such file or directory

done
ERROR conda.core.link:_execute(952): An error occurred while installing package 'conda-forge::nb_conda-2.2.1-unix_6'.
Rolling back transaction: done

LinkError: post-link script failed for package conda-forge::nb_conda-2.2.1-unix_6
location of failed script: /home/gerome/anaconda3/envs/DEEPLABCUT/bin/.nb_conda-post-link.sh
==> script messages <==
/home/gerome/anaconda3/envs/DEEPLABCUT/bin/.nb_conda-post-link.sh: line 2: /home/gerome/anaconda3/envs/DEEPLABCUT/bin/jupyter-nbextension: No such file or directory
/home/gerome/anaconda3/envs/DEEPLABCUT/bin/.nb_conda-post-link.sh: line 3: /home/gerome/anaconda3/envs/DEEPLABCUT/bin/jupyter-serverextension: No such file or directory

==> script output <==
stdout: 
stderr: 
return code: 127

()

Anything else?

No response

Code of Conduct