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

Kernels using 32-bit Python environments installed via conda does not work #9134

Closed
greazer opened this issue Feb 27, 2022 · 5 comments
Closed
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug good first issue Good for newcomers notebook-getting-started notebook-kernel Kernels issues (start/restart/switch/execution, install ipykernel)

Comments

@greazer
Copy link
Member

greazer commented Feb 27, 2022

Windows

  1. In a conda environment set the environment variable CONDA_FORCE_32BIT=1
  2. Create a new conda environment, specifying python as a package to install. You should end up with Python 3.6.5 (32-bit)
  3. Create a python file and select the new environment as the default interpreter
  4. Add and execute a #%% cell in the python file.
  5. You'll be prompted to install ipykernel. Allow that to happen.
  6. Try to execute the cell again.

You'll get this error:
image

Presumably pyzmq is not available in 32-bit python, therefore Raw kernel won't work. I guess I need to install Jupyter? I'll try.

@greazer greazer added bug Issue identified by VS Code Team member as probable bug notebook-getting-started notebook-kernel Kernels issues (start/restart/switch/execution, install ipykernel) labels Feb 27, 2022
@greazer
Copy link
Member Author

greazer commented Feb 27, 2022

Nope, installing Jupyter didn't resolve... Here's the log:
Visual Studio Code (1.64.2, undefined, desktop)
Jupyter Extension Version: 2022.1.1201831736.
Python Extension Version: 2022.0.1814523869.
User belongs to experiment group 'jupyterTest'
User belongs to experiment group 'jupyterEnhancedDataViewer'
Info 17:39:47: ZMQ install verified.
Info 17:39:48: Experiment status for python is {
"enabled": true,
"optInto": [],
"optOutFrom": []
}
Info 17:39:55: Creating controller for interactive with interpreter ~\anaconda3\envs\msaccess32\python.exe
Info 17:39:55: Starting interactive window with controller ID ms-toolsai.jupyter/.jvsc74a57bd0224c35d13ab15b95c5dd0caddb8b1438ac4e359ec6af8aca1f4f21c348e924f2.C:\Users\jimg\anaconda3\envs\msaccess32\python.exe.C:\Users\jimg\anaconda3\envs\msaccess32\python.exe.-m#ipykernel_launcher (Interactive)
Info 17:39:55: Setting setActiveController for vscode-interactive:Interactive-1.interactive
Info 17:39:56: Creating controller for interactive with interpreter ~\anaconda3\envs\msaccess32\python.exe
Info 17:39:56: TargetController found ID: .jvsc74a57bd0224c35d13ab15b95c5dd0caddb8b1438ac4e359ec6af8aca1f4f21c348e924f2.C:\Users\jimg\anaconda3\envs\msaccess32\python.exe.C:\Users\jimg\anaconda3\envs\msaccess32\python.exe.-m#ipykernel_launcher (Interactive) for document vscode-interactive:Interactive-1.interactive
Info 17:39:56: Setting controller affinity for vscode-interactive:Interactive-1.interactive .jvsc74a57bd0224c35d13ab15b95c5dd0caddb8b1438ac4e359ec6af8aca1f4f21c348e924f2.C:\Users\jimg\anaconda3\envs\msaccess32\python.exe.C:\Users\jimg\anaconda3\envs\msaccess32\python.exe.-m#ipykernel_launcher (Interactive)
Info 17:39:56: Starting Notebook in kernel.ts id = .jvsc74a57bd0224c35d13ab15b95c5dd0caddb8b1438ac4e359ec6af8aca1f4f21c348e924f2.C:\Users\jimg\anaconda3\envs\msaccess32\python.exe.C:\Users\jimg\anaconda3\envs\msaccess32\python.exe.-m#ipykernel_launcher
Info 17:39:56: Creating raw notebook for vscode-interactive:Interactive-1.interactive
Info 17:39:56: Getting preferred kernel for vscode-interactive:Interactive-1.interactive
Info 17:39:56: Computing working directory vscode-interactive:Interactive-1.interactive
Info 17:39:56: Starting raw kernel msaccess32 (Python 3.6.5)
Info 17:39:56: installMissingDependencies ~\anaconda3\envs\msaccess32\python.exe
Info 17:39:56: IPykernel found previously in this environment ~\anaconda3\envs\msaccess32\python.exe
Info 17:39:56: Kernel launching with ports 9000,9001,9002,9003,9004. Start port is 9000
Info 17:39:56: Process Execution: > ~\anaconda3\envs\msaccess32\python.exe -m pip list

~\anaconda3\envs\msaccess32\python.exe -m pip list
Info 17:39:57: Registering dummy command feature
Info 17:39:57: Got activated conda env vars ourselves for ~\anaconda3\envs\msaccess32\python.exe in 2503
Info 17:39:57: Hiding xeus kernelspec
Info 17:39:57: Hiding xeus kernelspec
Info 17:39:57: Hiding xeus kernelspec
Info 17:39:57: Hiding xeus kernelspec
Info 17:39:59: Process Execution: > ~\anaconda3\envs\msaccess32\python.exe -c "import ipykernel; print(ipykernel.version); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.file)"
~\anaconda3\envs\msaccess32\python.exe -c "import ipykernel; print(ipykernel.version); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.file)"
Info 17:39:59: Got activated conda env vars ourselves for ~\anaconda3\envs\msaccess32\python.exe in 3100
Info 17:39:59: Creating daemon process for ~\anaconda3\envs\msaccess32\python.exe with env variables count 75
Info 17:39:59: Process Execution: > ~\anaconda3\envs\msaccess32\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_interrupt_daemon -v --ppid 24440
~\anaconda3\envs\msaccess32\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_interrupt_daemon -v --ppid 24440
Info 17:40:00: get interrupthandle daemon
Info 17:40:00: Process Execution: > ~\anaconda3\envs\msaccess32\python.exe -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"decfc794-b46f-4644-a010-c95352a39372" --shell=9002 --transport="tcp" --iopub=9004 --f=C:\Users\jimg\AppData\Local\Temp\tmp-24440X7OgXMyTMpVl.json
~\anaconda3\envs\msaccess32\python.exe -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"decfc794-b46f-4644-a010-c95352a39372" --shell=9002 --transport="tcp" --iopub=9004 --f=C:\Users\jimg\AppData\Local\Temp\tmp-24440X7OgXMyTMpVl.json
Info 17:40:00: Process Execution: cwd: c:\Users\jimg\Repos\MS Access Test
cwd: c:\Users\jimg\Repos\MS Access Test
Warn 17:40:01: Stderr output when getting ipykernel version & path Traceback (most recent call last):
File "", line 1, in
File "C:\Users\jimg\AppData\Roaming\Python\Python36\site-packages\ipykernel_init_.py", line 2, in
from .connect import *
File "C:\Users\jimg\AppData\Roaming\Python\Python36\site-packages\ipykernel\connect.py", line 18, in
import jupyter_client
File "C:\Users\jimg\AppData\Roaming\Python\Python36\site-packages\jupyter_client_init_.py", line 4, in
from .connect import *
File "C:\Users\jimg\AppData\Roaming\Python\Python36\site-packages\jupyter_client\connect.py", line 24, in
import zmq
File "C:\Users\jimg\AppData\Roaming\Python\Python36\site-packages\zmq_init_.py", line 47, in
from zmq import backend
File "C:\Users\jimg\AppData\Roaming\Python\Python36\site-packages\zmq\backend_init_.py", line 40, in
reraise(*exc_info)
File "C:\Users\jimg\AppData\Roaming\Python\Python36\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
raise value
File "C:\Users\jimg\AppData\Roaming\Python\Python36\site-packages\zmq\backend_init_.py", line 27, in
ns = select_backend(first)
File "C:\Users\jimg\AppData\Roaming\Python\Python36\site-packages\zmq\backend\select.py", line 28, in select_backend
mod = import(name, fromlist=public_api)
File "C:\Users\jimg\AppData\Roaming\Python\Python36\site-packages\zmq\backend\cython_init
.py", line 6, in
from . import (constants, error, message, context,
ImportError: cannot import name 'constants' for ~\anaconda3\envs\msaccess32\python.exe
Warn 17:40:01: StdErr from Kernel Process Traceback (most recent call last):
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\runpy.py", line 85, in _run_code

Warn 17:40:01: StdErr from Kernel Process exec(code, run_globals)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel_launcher.py", line 15, in
from ipykernel import kernelapp as app
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel_init_.py", line 2, in
from .connect import *
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel\connect.py", line 16, in
import jupyter_client
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client_init_.py", line 6, in
from .asynchronous import AsyncKernelClient # noqa
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\asynchronous_init_.py", line 1, in
from .client import AsyncKernelClient # noqa
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\asynchronous\client.py", line 6, in

Warn 17:40:01: StdErr from Kernel Process from jupyter_client.channels import HBChannel
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\channels.py", line 12, in

Warn 17:40:01: StdErr from Kernel Process import zmq.asyncio
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq_init_.py", line 103, in

Warn 17:40:01: StdErr from Kernel Process from zmq import backend

Warn 17:40:01: StdErr from Kernel Process File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend_init_.py", line 32, in

Warn 17:40:01: StdErr from Kernel Process raise original_error from None

Warn 17:40:01: StdErr from Kernel Process File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend_init_.py", line 27, in

Warn 17:40:01: StdErr from Kernel Process _ns = select_backend(first)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\select.py", line 32, in select_backend

Warn 17:40:01: StdErr from Kernel Process mod = import_module(name)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\importlib_init_.py", line 126, in import_module

Warn 17:40:01: StdErr from Kernel Process return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\cython_init
.py", line 6, in

Warn 17:40:01: StdErr from Kernel Process from . import (
ImportError: cannot import name 'constants'

Error 17:40:01: Disposing kernel process due to an error o [Error]: The kernel died. View Jupyter log for further details.
Error: Traceback (most recent call last):
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel_launcher.py", line 15, in
from ipykernel import kernelapp as app
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel_init
.py", line 2, in
from .connect import *
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel\connect.py", line 16, in
import jupyter_client
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client_init
.py", line 6, in
from .asynchronous import AsyncKernelClient # noqa
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\asynchronous_init_.py", line 1, in
from .client import AsyncKernelClient # noqa
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\asynchronous\client.py", line 6, in
from jupyter_client.channels import HBChannel
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\channels.py", line 12, in
import zmq.asyncio
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq_init_.py", line 103, in
from zmq import backend
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend_init_.py", line 32, in
raise original_error from None
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend_init_.py", line 27, in
ns = select_backend(first)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\select.py", line 32, in select_backend
mod = import_module(name)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\importlib_init
.py", line 126, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\cython_init
.py", line 6, in
from . import (
ImportError: cannot import name 'constants'...
at ChildProcess. (c:\Users\jimg.vscode\extensions\ms-toolsai.jupyter-2022.1.1201831736\out\client\extension.js:66:1017286)
at ChildProcess.emit (events.js:327:22)
at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) {
category: 'kerneldied',
exitCode: 1,
stdErr: 'Traceback (most recent call last):\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\runpy.py", line 193, in _run_module_as_main\r\n' +
' "main", mod_spec)\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\runpy.py", line 85, in run_code\r\n' +
' exec(code, run_globals)\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel_launcher.py", line 15, in \r\n' +
' from ipykernel import kernelapp as app\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel\init.py", line 2, in \r\n' +
' from .connect import *\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel\connect.py", line 16, in \r\n' +
' import jupyter_client\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\init.py", line 6, in \r\n' +
' from .asynchronous import AsyncKernelClient # noqa\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\asynchronous\init.py", line 1, in \r\n' +
' from .client import AsyncKernelClient # noqa\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\asynchronous\client.py", line 6, in \r\n' +
' from jupyter_client.channels import HBChannel\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\channels.py", line 12, in \r\n' +
' import zmq.asyncio\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\init.py", line 103, in \r\n' +
' from zmq import backend\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\init.py", line 32, in \r\n' +
' raise original_error from None\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\init.py", line 27, in \r\n' +
' ns = select_backend(first)\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\select.py", line 32, in select_backend\r\n' +
' mod = import_module(name)\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\importlib\init.py", line 126, in import_module\r\n' +
' return bootstrap.gcd_import(name[level:], package, level)\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\cython\init.py", line 6, in \r\n' +
' from . import (\r\n' +
"ImportError: cannot import name 'constants'\r\n"
}
Error 17:40:01: Traceback (most recent call last):
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel_launcher.py", line 15, in
from ipykernel import kernelapp as app
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel_init
.py", line 2, in
from .connect import *
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel\connect.py", line 16, in
import jupyter_client
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client_init
.py", line 6, in
from .asynchronous import AsyncKernelClient # noqa
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\asynchronous_init.py", line 1, in
from .client import AsyncKernelClient # noqa
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\asynchronous\client.py", line 6, in
from jupyter_client.channels import HBChannel
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\channels.py", line 12, in
import zmq.asyncio
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq_init.py", line 103, in
from zmq import backend
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend_init.py", line 32, in
raise original_error from None
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend_init.py", line 27, in
ns = select_backend(first)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\select.py", line 32, in select_backend
mod = import_module(name)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\importlib_init
.py", line 126, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\cython_init
.py", line 6, in
from . import (
ImportError: cannot import name 'constants'

Info 17:40:01: Dispose Kernel process
Info 17:40:01: kill daemon
Error 17:40:01: Failed to connect raw kernel session: Error: The kernel died. View Jupyter log for further details.
Error: Traceback (most recent call last):
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel_launcher.py", line 15, in
from ipykernel import kernelapp as app
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel_init
.py", line 2, in
from .connect import *
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel\connect.py", line 16, in
import jupyter_client
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client_init
.py", line 6, in
from .asynchronous import AsyncKernelClient # noqa
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\asynchronous_init_.py", line 1, in
from .client import AsyncKernelClient # noqa
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\asynchronous\client.py", line 6, in
from jupyter_client.channels import HBChannel
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\channels.py", line 12, in
import zmq.asyncio
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq_init_.py", line 103, in
from zmq import backend
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend_init_.py", line 32, in
raise original_error from None
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend_init_.py", line 27, in
ns = select_backend(first)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\select.py", line 32, in select_backend
mod = import_module(name)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\importlib_init
.py", line 126, in import_module
return bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\cython_init
.py", line 6, in
from . import (
ImportError: cannot import name 'constants'...
Error 17:40:01: failed to create INotebook in kernel, UI Disabled = false o [Error]: The kernel died. View Jupyter log for further details.
Error: Traceback (most recent call last):
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel_launcher.py", line 15, in
from ipykernel import kernelapp as app
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel_init
.py", line 2, in
from .connect import *
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel\connect.py", line 16, in
import jupyter_client
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client_init
.py", line 6, in
from .asynchronous import AsyncKernelClient # noqa
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\asynchronous_init.py", line 1, in
from .client import AsyncKernelClient # noqa
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\asynchronous\client.py", line 6, in
from jupyter_client.channels import HBChannel
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\channels.py", line 12, in
import zmq.asyncio
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq_init_.py", line 103, in
from zmq import backend
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend_init_.py", line 32, in
raise original_error from None
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend_init_.py", line 27, in
ns = select_backend(first)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\select.py", line 32, in select_backend
mod = import_module(name)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\importlib_init
.py", line 126, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\cython_init
.py", line 6, in
from . import (
ImportError: cannot import name 'constants'...
at ChildProcess. (c:\Users\jimg.vscode\extensions\ms-toolsai.jupyter-2022.1.1201831736\out\client\extension.js:66:1017286)
at ChildProcess.emit (events.js:327:22)
at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) {
category: 'kerneldied',
exitCode: 1,
stdErr: 'Traceback (most recent call last):\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\runpy.py", line 193, in _run_module_as_main\r\n' +
' "main", mod_spec)\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\runpy.py", line 85, in run_code\r\n' +
' exec(code, run_globals)\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel_launcher.py", line 15, in \r\n' +
' from ipykernel import kernelapp as app\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel\init.py", line 2, in \r\n' +
' from .connect import *\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel\connect.py", line 16, in \r\n' +
' import jupyter_client\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\init.py", line 6, in \r\n' +
' from .asynchronous import AsyncKernelClient # noqa\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\asynchronous\init.py", line 1, in \r\n' +
' from .client import AsyncKernelClient # noqa\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\asynchronous\client.py", line 6, in \r\n' +
' from jupyter_client.channels import HBChannel\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\channels.py", line 12, in \r\n' +
' import zmq.asyncio\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\init.py", line 103, in \r\n' +
' from zmq import backend\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\init.py", line 32, in \r\n' +
' raise original_error from None\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\init.py", line 27, in \r\n' +
' ns = select_backend(first)\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\select.py", line 32, in select_backend\r\n' +
' mod = import_module(name)\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\importlib\init.py", line 126, in import_module\r\n' +
' return bootstrap.gcd_import(name[level:], package, level)\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\cython\init.py", line 6, in \r\n' +
' from . import (\r\n' +
"ImportError: cannot import name 'constants'\r\n",
vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
Warn 17:40:01: Kernel Error o [Error]: The kernel died. View Jupyter log for further details.
Error: Traceback (most recent call last):
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel_launcher.py", line 15, in
from ipykernel import kernelapp as app
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel_init
.py", line 2, in
from .connect import *
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel\connect.py", line 16, in
import jupyter_client
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client_init
.py", line 6, in
from .asynchronous import AsyncKernelClient # noqa
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\asynchronous_init.py", line 1, in
from .client import AsyncKernelClient # noqa
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\asynchronous\client.py", line 6, in
from jupyter_client.channels import HBChannel
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\channels.py", line 12, in
import zmq.asyncio
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq_init.py", line 103, in
from zmq import backend
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend_init.py", line 32, in
raise original_error from None
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend_init.py", line 27, in
ns = select_backend(first)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\select.py", line 32, in select_backend
mod = import_module(name)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\importlib_init
.py", line 126, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\cython_init
.py", line 6, in
from . import (
ImportError: cannot import name 'constants'...
at ChildProcess. (c:\Users\jimg.vscode\extensions\ms-toolsai.jupyter-2022.1.1201831736\out\client\extension.js:66:1017286)
at ChildProcess.emit (events.js:327:22)
at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) {
category: 'kerneldied',
exitCode: 1,
stdErr: 'Traceback (most recent call last):\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\runpy.py", line 193, in _run_module_as_main\r\n' +
' "main", mod_spec)\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\runpy.py", line 85, in run_code\r\n' +
' exec(code, run_globals)\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel_launcher.py", line 15, in \r\n' +
' from ipykernel import kernelapp as app\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel\init.py", line 2, in \r\n' +
' from .connect import *\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel\connect.py", line 16, in \r\n' +
' import jupyter_client\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\init.py", line 6, in \r\n' +
' from .asynchronous import AsyncKernelClient # noqa\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\asynchronous\init.py", line 1, in \r\n' +
' from .client import AsyncKernelClient # noqa\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\asynchronous\client.py", line 6, in \r\n' +
' from jupyter_client.channels import HBChannel\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\channels.py", line 12, in \r\n' +
' import zmq.asyncio\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\init.py", line 103, in \r\n' +
' from zmq import backend\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\init.py", line 32, in \r\n' +
' raise original_error from None\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\init.py", line 27, in \r\n' +
' ns = select_backend(first)\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\select.py", line 32, in select_backend\r\n' +
' mod = import_module(name)\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\importlib\init.py", line 126, in import_module\r\n' +
' return bootstrap.gcd_import(name[level:], package, level)\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\cython\init.py", line 6, in \r\n' +
' from . import (\r\n' +
"ImportError: cannot import name 'constants'\r\n",
vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
Error 17:40:01: failed to start INotebook in kernel, UI Disabled = false o [Error]: The kernel died. View Jupyter log for further details.
Error: Traceback (most recent call last):
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel_launcher.py", line 15, in
from ipykernel import kernelapp as app
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel_init
.py", line 2, in
from .connect import *
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel\connect.py", line 16, in
import jupyter_client
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client_init
.py", line 6, in
from .asynchronous import AsyncKernelClient # noqa
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\asynchronous_init.py", line 1, in
from .client import AsyncKernelClient # noqa
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\asynchronous\client.py", line 6, in
from jupyter_client.channels import HBChannel
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\channels.py", line 12, in
import zmq.asyncio
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq_init.py", line 103, in
from zmq import backend
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend_init.py", line 32, in
raise original_error from None
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend_init.py", line 27, in
ns = select_backend(first)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\select.py", line 32, in select_backend
mod = import_module(name)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\importlib_init
.py", line 126, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\cython_init
.py", line 6, in
from . import (
ImportError: cannot import name 'constants'...
at ChildProcess. (c:\Users\jimg.vscode\extensions\ms-toolsai.jupyter-2022.1.1201831736\out\client\extension.js:66:1017286)
at ChildProcess.emit (events.js:327:22)
at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) {
category: 'kerneldied',
exitCode: 1,
stdErr: 'Traceback (most recent call last):\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\runpy.py", line 193, in _run_module_as_main\r\n' +
' "main", mod_spec)\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\runpy.py", line 85, in _run_code\r\n' +
' exec(code, run_globals)\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel_launcher.py", line 15, in \r\n' +
' from ipykernel import kernelapp as app\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel\init.py", line 2, in \r\n' +
' from .connect import *\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\ipykernel\connect.py", line 16, in \r\n' +
' import jupyter_client\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\init.py", line 6, in \r\n' +
' from .asynchronous import AsyncKernelClient # noqa\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\asynchronous\init.py", line 1, in \r\n' +
' from .client import AsyncKernelClient # noqa\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\asynchronous\client.py", line 6, in \r\n' +
' from jupyter_client.channels import HBChannel\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\jupyter_client\channels.py", line 12, in \r\n' +
' import zmq.asyncio\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\init.py", line 103, in \r\n' +
' from zmq import backend\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\init.py", line 32, in \r\n' +
' raise original_error from None\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\init.py", line 27, in \r\n' +
' _ns = select_backend(first)\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\select.py", line 32, in select_backend\r\n' +
' mod = import_module(name)\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\importlib\init.py", line 126, in import_module\r\n' +
' return _bootstrap._gcd_import(name[level:], package, level)\r\n' +
' File "C:\Users\jimg\anaconda3\envs\msaccess32\lib\site-packages\zmq\backend\cython\init.py", line 6, in \r\n' +
' from . import (\r\n' +
"ImportError: cannot import name 'constants'\r\n",
vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}

@greazer
Copy link
Member Author

greazer commented Feb 27, 2022

Hmmmm. Can't run jupyter notebook outside either. Maybe jupyter doesn't support 32-bit python? IPython works though.

@rchiodo
Copy link
Contributor

rchiodo commented Feb 28, 2022

Your error sounds like this one:
zeromq/pyzmq#1460

@greazer greazer added windows-only upstream-python Blocked on upstream Python Ext and removed needs-triage labels Feb 28, 2022
@DonJayamanne DonJayamanne changed the title Can't get started with Notebook or Interactive Window when using Python 32-bit Kernels using 32-bit Python environments installed via conda does not work Mar 14, 2022
@DonJayamanne
Copy link
Contributor

DonJayamanne commented Aug 15, 2022

Assigning to @IanMatthewHuff
I believe the suggested solution here was:

  • If user selects a 32bit conda env on 64bit machine, they should get a warning or we should not recommend this kernel or the like

@DonJayamanne
Copy link
Contributor

Haven't received any complaints about this and this no longer seems to be an issue
Hence closing for now

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug good first issue Good for newcomers notebook-getting-started notebook-kernel Kernels issues (start/restart/switch/execution, install ipykernel)
Projects
None yet
Development

No branches or pull requests

5 participants