Skip to content

Extension won't install ipykernel when it should be able to. #9133

@greazer

Description

@greazer

VS Code Stable 1.64.2

  1. Create a new conda environment without installing ipykernel
  2. Try to run a cell in the new environment
  3. At the prompt allow the ipykernel install to be attempted.

On my machine it fails. The difference between success and failure seems to be related to which "conda" executable is being used. Here's a terminal log that replicates the problem as well as the solution. When I modify the command used to simply call "conda.bat" see the 'where' command output, everything works. Using C:/Users/jimg/anaconda3/Scripts/conda.exe does not.

(msaccess) C:\Users\jimg>C:/Users/jimg/anaconda3/Scripts/conda.exe install -c conda-forge --name msaccess --update-deps --force-reinstall ipykernel -y
Collecting package metadata (current_repodata.json): failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.

If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.

'https://repo.anaconda.com/pkgs/main/win-64'

(msaccess) C:\Users\jimg>where conda
C:\Users\jimg\anaconda3\condabin\conda.bat

(msaccess) C:\Users\jimg>conda install -c conda-forge --name msaccess --update-deps --force-reinstall ipykernel -y
Collecting package metadata (current_repodata.json): done
Solving environment: \ Solving environmentdone
done

Package Plan

environment location: C:\Users\jimg\anaconda3\envs\msaccess

added / updated specs:
- asttokens
- backcall
- backports
- backports.functools_lru_cache
- black
- bzip2
- ca-certificates
- click
- colorama
- dataclasses
- debugpy
- decorator
- entrypoints
- executing
- ipykernel
- ipython
- jedi
- jupyter_client
- jupyter_core
- libffi
- libsodium
- libzlib
- matplotlib-inline
- mypy_extensions
- nest-asyncio
- openssl
- parso
- pathspec
- pickleshare
- pip
- platformdirs
- prompt-toolkit
- pure_eval
- pygments
- python-dateutil
- python=3.10
- python_abi
- pywin32
- pyzmq
- setuptools
- six
- sqlite
- stack_data
- tk
- tomli
- tornado
- traitlets
- typed-ast
- typing_extensions
- tzdata
- ucrt
- vc
- vs2015_runtime
- wcwidth
- wheel
- xz
- zeromq

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
click-8.0.4                |  py310h5588dad_0         150 KB  conda-forge
ipykernel-6.9.1            |  py310hbbfc1a7_0         184 KB  conda-forge
ipython-8.0.1              |  py310h5588dad_2         1.1 MB  conda-forge
jupyter_core-4.9.2         |  py310h5588dad_0         106 KB  conda-forge
typed-ast-1.5.2            |  py310he2412df_0         136 KB  conda-forge
------------------------------------------------------------
                                       Total:         1.7 MB

The following NEW packages will be INSTALLED:

asttokens conda-forge/noarch::asttokens-2.0.5-pyhd8ed1ab_0
backcall conda-forge/noarch::backcall-0.2.0-pyh9f0ad1d_0
backports conda-forge/noarch::backports-1.0-py_2
backports.functoo~ conda-forge/noarch::backports.functools_lru_cache-1.6.4-pyhd8ed1ab_0
black conda-forge/noarch::black-22.1.0-pyhd8ed1ab_0
click conda-forge/win-64::click-8.0.4-py310h5588dad_0
colorama conda-forge/noarch::colorama-0.4.4-pyh9f0ad1d_0
dataclasses conda-forge/noarch::dataclasses-0.8-pyhc8e2a94_3
debugpy conda-forge/win-64::debugpy-1.5.1-py310h8a704f9_0
decorator conda-forge/noarch::decorator-5.1.1-pyhd8ed1ab_0
entrypoints conda-forge/noarch::entrypoints-0.4-pyhd8ed1ab_0
executing conda-forge/noarch::executing-0.8.2-pyhd8ed1ab_0
ipykernel conda-forge/win-64::ipykernel-6.9.1-py310hbbfc1a7_0
ipython conda-forge/win-64::ipython-8.0.1-py310h5588dad_2
jedi conda-forge/win-64::jedi-0.18.1-py310h5588dad_0
jupyter_client conda-forge/noarch::jupyter_client-7.1.2-pyhd8ed1ab_0
jupyter_core conda-forge/win-64::jupyter_core-4.9.2-py310h5588dad_0
libsodium conda-forge/win-64::libsodium-1.0.18-h8d14728_1
matplotlib-inline conda-forge/noarch::matplotlib-inline-0.1.3-pyhd8ed1ab_0
mypy_extensions conda-forge/win-64::mypy_extensions-0.4.3-py310h5588dad_4
nest-asyncio conda-forge/noarch::nest-asyncio-1.5.4-pyhd8ed1ab_0
parso conda-forge/noarch::parso-0.8.3-pyhd8ed1ab_0
pathspec conda-forge/noarch::pathspec-0.9.0-pyhd8ed1ab_0
pickleshare conda-forge/noarch::pickleshare-0.7.5-py_1003
platformdirs conda-forge/noarch::platformdirs-2.5.1-pyhd8ed1ab_0
prompt-toolkit conda-forge/noarch::prompt-toolkit-3.0.27-pyha770c72_0
pure_eval conda-forge/noarch::pure_eval-0.2.2-pyhd8ed1ab_0
pygments conda-forge/noarch::pygments-2.11.2-pyhd8ed1ab_0
pywin32 conda-forge/win-64::pywin32-303-py310he2412df_0
pyzmq conda-forge/win-64::pyzmq-22.3.0-py310h73ada01_1
stack_data conda-forge/noarch::stack_data-0.2.0-pyhd8ed1ab_0
tomli conda-forge/noarch::tomli-2.0.1-pyhd8ed1ab_0
tornado conda-forge/win-64::tornado-6.1-py310he2412df_2
traitlets conda-forge/noarch::traitlets-5.1.1-pyhd8ed1ab_0
typed-ast conda-forge/win-64::typed-ast-1.5.2-py310he2412df_0
typing_extensions conda-forge/noarch::typing_extensions-4.1.1-pyha770c72_0
wcwidth conda-forge/noarch::wcwidth-0.2.5-pyh9f0ad1d_2
zeromq conda-forge/win-64::zeromq-4.3.4-h0e60522_1

Downloading and Extracting Packages
click-8.0.4 | 150 KB | ############################################################################ | 100%
ipykernel-6.9.1 | 184 KB | ############################################################################ | 100%
ipython-8.0.1 | 1.1 MB | ############################################################################ | 100%
jupyter_core-4.9.2 | 106 KB | ############################################################################ | 100%
typed-ast-1.5.2 | 136 KB | ############################################################################ | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: /

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-priorityinteractive-windowImpacts interactive windownotebook-executionKernels issues (start/restart/switch/execution, install ipykernel)notebook-getting-startedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions