Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LinkError conda.core.link:_execute(740) when creating an environment with Jupyter #93

Open
1 task done
amole-arup opened this issue Apr 24, 2024 · 0 comments
Open
1 task done
Labels

Comments

@amole-arup
Copy link

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

[Sorry, not sure where to raise this issue. Have also raised issues in these locations:

I tried to create an environment using conda env create -f file.yml, containing python 3.10 and jupyter, nbconvert and ipympl using conda-forge channel. It completed "transaction preparation" and "verification" and was carrying out the "transaction execution" when it failed with the following error: "C:\Users\user.name\AppData\Local\miniforge3\envs\MyEnv\Scripts\jupyter-nbextension.exe" is not recognized as an internal or external command, operable program or batch file.

Any idea why this should be the case and what we can do to fix it?

The full error is as follows:

(base) C:\Users\user.name>conda env create -f "YAML-files\MyEnv.yml"
Retrieving notices: ...working... done
Collecting package metadata (repodata.json): done
Solving environment: done


==> WARNING: A newer version of conda exists. <==
  current version: 23.3.1
  latest version: 24.3.0

Please update conda by running

    $ conda update -n base -c conda-forge conda

Or to minimize the number of packages updated during conda update use

     conda install conda=24.3.0



Downloading and Extracting Packages

Preparing transaction: done
Verifying transaction: done
Executing transaction: | '"C:\Users\user.name\AppData\Local\miniforge3\envs\MyEnv\Scripts\jupyter-nbextension.exe"' is not recognized as an internal or external command,
operable program or batch file.

done
ERROR conda.core.link:_execute(740): An error occurred while installing package 'conda-forge::widgetsnbextension-3.5.2-py310h5588dad_1'.
Rolling back transaction: done

LinkError: post-link script failed for package conda-forge::widgetsnbextension-3.5.2-py310h5588dad_1
location of failed script: C:\Users\user.name\AppData\Local\miniforge3\envs\MyEnv\Scripts\.widgetsnbextension-post-link.bat
==> script messages <==
'"C:\Users\user.name\AppData\Local\miniforge3\envs\MyEnv2\Scripts\jupyter-nbextension.exe"' is not recognized as an internal or external command,
operable program or batch file.

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

()


(base) C:\Users\user.name>conda activate MyEnv

(MyEnv) C:\Users\user.name>conda list
# packages in environment at C:\Users\user.name\AppData\Local\miniforge3\envs\MyEnv:
#
# Name                    Version                   Build  Channel

(MyEnv) C:\Users\user.name>

Installed packages

(arup-env2) C:\Users\user.name>conda list --show-channel-urls
# packages in environment at C:\Users\user.name\AppData\Local\miniforge3\envs\arup-env2:
#
# Name                    Version                   Build  Channel

(arup-env2) C:\Users\user.name>

Environment info

(base) C:\Users\user.name>conda info

     active environment : base
    active env location : C:\Users\user.name\AppData\Local\miniforge3
            shell level : 1
       user config file : C:\Users\user.name\.condarc
 populated config files : C:\Users\user.name\AppData\Local\miniforge3\.condarc
                          C:\Users\user.name\.condarc
          conda version : 23.3.1
    conda-build version : not installed
         python version : 3.10.12.final.0
       virtual packages : __archspec=1=x86_64
                          __cuda=12.2=0
                          __win=0=0
       base environment : C:\Users\user.name\AppData\Local\miniforge3  (writable)
      conda av data dir : C:\Users\user.name\AppData\Local\miniforge3\etc\conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : C:\Users\user.name\AppData\Local\miniforge3\pkgs
                          C:\Users\user.name\.conda\pkgs
                          C:\Users\user.name\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\user.name\AppData\Local\miniforge3\envs
                          C:\Users\user.name\.conda\envs
                          C:\Users\user.name\micromamba\envs
                          C:\Users\user.name\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/23.3.1 requests/2.31.0 CPython/3.10.12 Windows/10 Windows/10.0.22631
          administrator : False
             netrc file : None
           offline mode : False


(base) C:\Users\user.name>
@amole-arup amole-arup added the bug label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant