-
Notifications
You must be signed in to change notification settings - Fork 294
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
Bad file descriptor (C:\\projects\\libzmq\\src\\epoll.cpp:100) #8630
Comments
Thanks for the bug. Does this directory actually exist?
Your issue sounds similar to this one: My guess is that the path environment when we start the kernel is different from the path when you start it from the command line. Can you close VS code and relaunch it from your same command line where jupyter worked? Like so:
|
@rchiodo Hi
I do not have this directory in my local environment.
I tried this, but it is the same. |
This issue makes it sound like a problem with 32 to 64 bit compatibility: Meaning VS code is 64 bit but your python installation might be 32 bit. Can you run '~\AppData\Local\Microsoft\WindowsApps\python3.10.exe' from a command line and tell me what the status output is? Example for me - my store version:
Example for me - 32 bit version I have as well:
|
@rchiodo Thanks for getting into this issue, I have only one python 3.10 64bit installed on my system. And I can confirm that I used the same python in vscode and in outside terminal. |
Sorry but I'm out of ideas. There's a bug somewhere in pyzmq. You could try using this setting instead:
That forces us to use jupyter to launch a kernel instead of us launching it directly (slower way to start a kernel). If that doesn't work, then I'd suggest using 3.9 instead. PyZmq may not be vetted for 3.10 yet. |
I also tried output logsJupyter Extension Version: 2021.11.1001550889.
Python Extension Verison: 2021.12.1559732655.
Info 11:42:37: Experimentation service retrieved: [object Object]
User belongs to experiment group 'jupyterTestcf'
User belongs to experiment group 'jupyterEnhancedDataViewer'
Info 11:42:38: Experiment status for python is {"enabled":true,"optInto":[],"optOutFrom":[]}
Info 11:42:41: Process Execution: > ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe -m pip list
> ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe -m pip list
Info 11:42:41: Process Execution: > ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe -c "import jupyter"
> ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe -c "import jupyter"
Info 11:42:41: Process Execution: > ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe -c "import notebook"
> ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe -c "import notebook"
Info 11:42:42: Process Execution: > ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe -m jupyter kernelspec --version
> ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe -m jupyter kernelspec --version
Info 11:42:50: Creating controller for interactive with interpreter ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe
Info 11:42:50: Starting interactive window with controller ID ms-toolsai.jupyter/.jvsc74a57bd01e90f1d75b4a90568f109dbac2744b49ffb7db08d5da1e85a550aa60f9d04885.C:\Users\Liu.D.H\AppData\Local\Microsoft\WindowsApps\python3.10.exe.C:\Users\Liu.D.H\AppData\Local\Microsoft\WindowsApps\python3.10.exe.-m#ipykernel_launcher (Interactive)
Info 11:42:50: Setting setActiveController for vscode-interactive:Interactive-1.interactive
Info 11:42:51: Starting Notebook in kernel.ts id = .jvsc74a57bd01e90f1d75b4a90568f109dbac2744b49ffb7db08d5da1e85a550aa60f9d04885.C:\Users\Liu.D.H\AppData\Local\Microsoft\WindowsApps\python3.10.exe.C:\Users\Liu.D.H\AppData\Local\Microsoft\WindowsApps\python3.10.exe.-m#ipykernel_launcher
Info 11:42:51: Checking for server existence.
Info 11:42:51: Checking for server usability.
Info 11:42:51: Starting notebook server.
Info 11:42:51: Connecting to server
Info 11:42:51: Launching server
Info 11:42:51: Starting Notebook
Info 11:42:51: Generating custom default config at C:\Users\LIUD~1.H\AppData\Local\Temp\64fbf384-1441-4fff-a5b2-3dbfb3b6bbb8\jupyter_notebook_config.py
Info 11:42:51: Starting Jupyter Notebook
Starting Jupyter from ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe with command line --no-browser --notebook-dir="d:\\code\\node\\playground" --config=C:\Users\LIUD~1.H\AppData\Local\Temp\64fbf384-1441-4fff-a5b2-3dbfb3b6bbb8\jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
Info 11:42:51: Creating daemon pool for ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe with env variables count 0
Info 11:42:51: Process Execution: > ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
Info 11:42:51: Process Execution: > ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
Info 11:42:51: Process Execution: > ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
Info 11:42:51: Registering dummy command feature
Info 11:42:52: Process Execution: > ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe (daemon) -m jupyter notebook --no-browser --notebook-dir="d:\\code\\node\\playground" --config=C:\Users\LIUD~1.H\AppData\Local\Temp\64fbf384-1441-4fff-a5b2-3dbfb3b6bbb8\jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
> ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe (daemon) -m jupyter notebook --no-browser --notebook-dir="d:\\code\\node\\playground" --config=C:\Users\LIUD~1.H\AppData\Local\Temp\64fbf384-1441-4fff-a5b2-3dbfb3b6bbb8\jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
Info 11:42:52: Waiting for Jupyter Notebook
C:\Users\Liu.D.H\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\traitlets\traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'd:\\\\code\\\\node\\\\playground' instead of '"d:\\\\code\\\\node\\\\playground"' if you require traitlets >=5.
warn(
Info 11:42:55: C:\Users\Liu.D.H\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\traitlets\traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'd:\\\\code\\\\node\\\\playground' instead of '"d:\\\\code\\\\node\\\\playground"' if you require traitlets >=5.
warn(
[I 11:42:56.167 NotebookApp] Serving notebooks from local directory: d:\\code\\node\\playground
Info 11:42:56: C:\Users\Liu.D.H\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\traitlets\traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'd:\\\\code\\\\node\\\\playground' instead of '"d:\\\\code\\\\node\\\\playground"' if you require traitlets >=5.
warn(
[I 11:42:56.167 NotebookApp] Serving notebooks from local directory: d:\\code\\node\\playground
[I 11:42:56.168 NotebookApp] Jupyter Notebook 6.4.6 is running at:
Info 11:42:56: C:\Users\Liu.D.H\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\traitlets\traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'd:\\\\code\\\\node\\\\playground' instead of '"d:\\\\code\\\\node\\\\playground"' if you require traitlets >=5.
warn(
[I 11:42:56.167 NotebookApp] Serving notebooks from local directory: d:\\code\\node\\playground
[I 11:42:56.168 NotebookApp] Jupyter Notebook 6.4.6 is running at:
[I 11:42:56.168 NotebookApp] http://localhost:8888/?token=64bc491980d53042208a14d105423f303ea8b1ecb883ed62
Info 11:42:56: C:\Users\Liu.D.H\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\traitlets\traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'd:\\\\code\\\\node\\\\playground' instead of '"d:\\\\code\\\\node\\\\playground"' if you require traitlets >=5.
warn(
[I 11:42:56.167 NotebookApp] Serving notebooks from local directory: d:\\code\\node\\playground
[I 11:42:56.168 NotebookApp] Jupyter Notebook 6.4.6 is running at:
[I 11:42:56.168 NotebookApp] http://localhost:8888/?token=64bc491980d53042208a14d105423f303ea8b1ecb883ed62
Info 11:42:56: Process Execution: > ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe (daemon) c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\pythonFiles\vscode_datascience_helpers\getServerInfo.py
> ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe (daemon) c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\pythonFiles\vscode_datascience_helpers\getServerInfo.py
[I 11:42:56.168 NotebookApp] or http://127.0.0.1:8888/?token=64bc491980d53042208a14d105423f303ea8b1ecb883ed62
Info 11:42:56: C:\Users\Liu.D.H\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\traitlets\traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'd:\\\\code\\\\node\\\\playground' instead of '"d:\\\\code\\\\node\\\\playground"' if you require traitlets >=5.
warn(
[I 11:42:56.167 NotebookApp] Serving notebooks from local directory: d:\\code\\node\\playground
[I 11:42:56.168 NotebookApp] Jupyter Notebook 6.4.6 is running at:
[I 11:42:56.168 NotebookApp] http://localhost:8888/?token=64bc491980d53042208a14d105423f303ea8b1ecb883ed62
[I 11:42:56.168 NotebookApp] or http://127.0.0.1:8888/?token=64bc491980d53042208a14d105423f303ea8b1ecb883ed62
Info 11:42:56: Process Execution: > ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe (daemon) c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\pythonFiles\vscode_datascience_helpers\getServerInfo.py
> ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe (daemon) c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\pythonFiles\vscode_datascience_helpers\getServerInfo.py
[I 11:42:56.168 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Info 11:42:56: C:\Users\Liu.D.H\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\traitlets\traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'd:\\\\code\\\\node\\\\playground' instead of '"d:\\\\code\\\\node\\\\playground"' if you require traitlets >=5.
warn(
[I 11:42:56.167 NotebookApp] Serving notebooks from local directory: d:\\code\\node\\playground
[I 11:42:56.168 NotebookApp] Jupyter Notebook 6.4.6 is running at:
[I 11:42:56.168 NotebookApp] http://localhost:8888/?token=64bc491980d53042208a14d105423f303ea8b1ecb883ed62
[I 11:42:56.168 NotebookApp] or http://127.0.0.1:8888/?token=64bc491980d53042208a14d105423f303ea8b1ecb883ed62
[I 11:42:56.168 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 11:42:56.229 NotebookApp]
To access the notebook, open this file in a browser:
file:///C:/Users/Liu.D.H/AppData/Roaming/jupyter/runtime/nbserver-30848-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=64bc491980d53042208a14d105423f303ea8b1ecb883ed62
or http://127.0.0.1:8888/?token=64bc491980d53042208a14d105423f303ea8b1ecb883ed62
Info 11:42:56: C:\Users\Liu.D.H\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\traitlets\traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'd:\\\\code\\\\node\\\\playground' instead of '"d:\\\\code\\\\node\\\\playground"' if you require traitlets >=5.
warn(
[I 11:42:56.167 NotebookApp] Serving notebooks from local directory: d:\\code\\node\\playground
[I 11:42:56.168 NotebookApp] Jupyter Notebook 6.4.6 is running at:
[I 11:42:56.168 NotebookApp] http://localhost:8888/?token=64bc491980d53042208a14d105423f303ea8b1ecb883ed62
[I 11:42:56.168 NotebookApp] or http://127.0.0.1:8888/?token=64bc491980d53042208a14d105423f303ea8b1ecb883ed62
[I 11:42:56.168 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 11:42:56.229 NotebookApp]
To access the notebook, open this file in a browser:
file:///C:/Users/Liu.D.H/AppData/Roaming/jupyter/runtime/nbserver-30848-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=64bc491980d53042208a14d105423f303ea8b1ecb883ed62
or http://127.0.0.1:8888/?token=64bc491980d53042208a14d105423f303ea8b1ecb883ed62
Info 11:42:57: Connecting to process server
Info 11:42:57: Connecting server kernel http://localhost:8888/
Info 11:42:57: Creating server with settings : {"baseUrl":"http://localhost:8888/","appUrl":"","wsUrl":"ws://localhost:8888/","token":"64bc491980d53042208a14d105423f303ea8b1ecb883ed62","appendToken":true,"init":{"cache":"no-store","credentials":"same-origin"}}
Info 11:42:57: Connection complete server
Info 11:42:57: Server started.
Info 11:42:57: Process Execution: > ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe (daemon) c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\pythonFiles\vscode_datascience_helpers\getServerInfo.py
> ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe (daemon) c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\pythonFiles\vscode_datascience_helpers\getServerInfo.py
Info 11:42:57: Process Execution: > ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe (daemon) c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\pythonFiles\vscode_datascience_helpers\getServerInfo.py
> ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe (daemon) c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\pythonFiles\vscode_datascience_helpers\getServerInfo.py
[I 11:42:57.510 NotebookApp] Creating new notebook in
Info 11:42:57: installMissingDependencies ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe
Info 11:42:57: IPykernel found previously in this enviornment ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe
Info 11:42:57: RegisterKernel for .jvsc74a57bd01e90f1d75b4a90568f109dbac2744b49ffb7db08d5da1e85a550aa60f9d04885.C:\Users\Liu.D.H\AppData\Local\Microsoft\WindowsApps\python3.10.exe.C:\Users\Liu.D.H\AppData\Local\Microsoft\WindowsApps\python3.10.exe.-m#ipykernel_launcher
Info 11:42:57: Spec argv[0] updated from 'python' to '~\AppData\Local\Microsoft\WindowsApps\python3.10.exe'
Info 11:42:57: Starting a new session for kernel id = .jvsc74a57bd01e90f1d75b4a90568f109dbac2744b49ffb7db08d5da1e85a550aa60f9d04885.C:\Users\Liu.D.H\AppData\Local\Microsoft\WindowsApps\python3.10.exe.C:\Users\Liu.D.H\AppData\Local\Microsoft\WindowsApps\python3.10.exe.-m#ipykernel_launcher, name = python3101jvsc74a57bd01e90f1d75b4a90568f109dbac2744b49ffb7db08d5da1e85a550aa60f9d04885
Error 11:42:58: Failed to change kernel, re-throwing b [Error]:
at new o (c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:16:33604)
at new b (c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:51:176460)
at c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:38:62628
at processTicksAndRejections (internal/process/task_queues.js:93:5)
FetchError: request to http://localhost:8888/api/sessions?1641440577830 failed, reason: read ECONNRESET
at ClientRequest.<anonymous> (c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:16:343322)
at ClientRequest.emit (events.js:315:20)
at Socket.socketErrorListener (_http_client.js:469:9)
at Socket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
category: 'unknown',
originalException: FetchError: request to http://localhost:8888/api/sessions?1641440577830 failed, reason: read ECONNRESET
at ClientRequest.<anonymous> (c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:16:343322)
at ClientRequest.emit (events.js:315:20)
at Socket.socketErrorListener (_http_client.js:469:9)
at Socket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
}
Error 11:42:58: failed to create INotebook in kernel, UI Disabled = false b [Error]:
at new o (c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:16:33604)
at new b (c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:51:176460)
at c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:38:62628
at processTicksAndRejections (internal/process/task_queues.js:93:5)
FetchError: request to http://localhost:8888/api/sessions?1641440577830 failed, reason: read ECONNRESET
at ClientRequest.<anonymous> (c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:16:343322)
at ClientRequest.emit (events.js:315:20)
at Socket.socketErrorListener (_http_client.js:469:9)
at Socket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
category: 'unknown',
originalException: FetchError: request to http://localhost:8888/api/sessions?1641440577830 failed, reason: read ECONNRESET
at ClientRequest.<anonymous> (c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:16:343322)
at ClientRequest.emit (events.js:315:20)
at Socket.socketErrorListener (_http_client.js:469:9)
at Socket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
}
Error 11:42:58: DataScience Error b [Error]:
at new o (c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:16:33604)
at new b (c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:51:176460)
at c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:38:62628
at processTicksAndRejections (internal/process/task_queues.js:93:5)
FetchError: request to http://localhost:8888/api/sessions?1641440577830 failed, reason: read ECONNRESET
at ClientRequest.<anonymous> (c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:16:343322)
at ClientRequest.emit (events.js:315:20)
at Socket.socketErrorListener (_http_client.js:469:9)
at Socket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
category: 'unknown',
originalException: FetchError: request to http://localhost:8888/api/sessions?1641440577830 failed, reason: read ECONNRESET
at ClientRequest.<anonymous> (c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:16:343322)
at ClientRequest.emit (events.js:315:20)
at Socket.socketErrorListener (_http_client.js:469:9)
at Socket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
}
Error 11:42:58: failed to start INotebook in kernel, UI Disabled = false b [Error]:
at new o (c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:16:33604)
at new b (c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:51:176460)
at c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:38:62628
at processTicksAndRejections (internal/process/task_queues.js:93:5)
FetchError: request to http://localhost:8888/api/sessions?1641440577830 failed, reason: read ECONNRESET
at ClientRequest.<anonymous> (c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:16:343322)
at ClientRequest.emit (events.js:315:20)
at Socket.socketErrorListener (_http_client.js:469:9)
at Socket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
category: 'unknown',
originalException: FetchError: request to http://localhost:8888/api/sessions?1641440577830 failed, reason: read ECONNRESET
at ClientRequest.<anonymous> (c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:16:343322)
at ClientRequest.emit (events.js:315:20)
at Socket.socketErrorListener (_http_client.js:469:9)
at Socket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
}
Error 11:42:58: DataScience Error b [Error]:
at new o (c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:16:33604)
at new b (c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:51:176460)
at c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:38:62628
at processTicksAndRejections (internal/process/task_queues.js:93:5)
FetchError: request to http://localhost:8888/api/sessions?1641440577830 failed, reason: read ECONNRESET
at ClientRequest.<anonymous> (c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:16:343322)
at ClientRequest.emit (events.js:315:20)
at Socket.socketErrorListener (_http_client.js:469:9)
at Socket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
category: 'unknown',
originalException: FetchError: request to http://localhost:8888/api/sessions?1641440577830 failed, reason: read ECONNRESET
at ClientRequest.<anonymous> (c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:16:343322)
at ClientRequest.emit (events.js:315:20)
at Socket.socketErrorListener (_http_client.js:469:9)
at Socket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
}
Error 11:42:58: DataScience Error b [Error]:
at new o (c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:16:33604)
at new b (c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:51:176460)
at c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:38:62628
at processTicksAndRejections (internal/process/task_queues.js:93:5)
FetchError: request to http://localhost:8888/api/sessions?1641440577830 failed, reason: read ECONNRESET
at ClientRequest.<anonymous> (c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:16:343322)
at ClientRequest.emit (events.js:315:20)
at Socket.socketErrorListener (_http_client.js:469:9)
at Socket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
category: 'unknown',
originalException: FetchError: request to http://localhost:8888/api/sessions?1641440577830 failed, reason: read ECONNRESET
at ClientRequest.<anonymous> (c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:16:343322)
at ClientRequest.emit (events.js:315:20)
at Socket.socketErrorListener (_http_client.js:469:9)
at Socket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
}
Warn 11:42:58: Daemon Processed died with exit code
Error 11:42:58: Daemon Connection errored 1073741845
Info 11:42:58: Process Execution: > ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> ~\AppData\Local\Microsoft\WindowsApps\python3.10.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
Error 11:42:58: Jupyter server crashed. Unable to connect.
Error code from jupyter: 1073741845
Info 11:42:58: Shutting down notebooks
Info 11:42:58: Shut down session manager : existing
Info 11:42:58: Disposing session manager
Info 11:42:58: SessionManager - dispose contents manager
Info 11:42:58: ShutdownSessionAndConnection - dispose session manager
Error 11:42:58: Failed to run jupyter as observable with args notebook --no-browser --notebook-dir="d:\\code\\node\\playground" --config=C:\Users\LIUD~1.H\AppData\Local\Temp\64fbf384-1441-4fff-a5b2-3dbfb3b6bbb8\jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0 h [Error]: Daemon Processed died with exit code, With Error: 1073741845
at e (c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:38:117327)
at ChildProcess.<anonymous> (c:\Users\Liu.D.H\.vscode\extensions\ms-toolsai.jupyter-2021.11.1001550889\out\client\extension.js:38:117692)
at ChildProcess.emit (events.js:327:22)
at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) {
category: 'daemon'
}
Failed to run jupyter as observable with args notebook --no-browser --notebook-dir="d:\\code\\node\\playground" --config=C:\Users\LIUD~1.H\AppData\Local\Temp\64fbf384-1441-4fff-a5b2-3dbfb3b6bbb8\jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
Bad file descriptor (C:\projects\libzmq\src\epoll.cpp:100)
Info 11:42:58: Finished disposing jupyter session manager
Info 11:42:58: Shutdown server - dispose conn info
Video_2022-01-06_114337-converted.mp4 |
If you start jupyter yourself, can you actually run a notebook? Your video showed you starting the server but not actually running a notebook. We're failing when starting a kernel, which for jupyter happens after that point. |
Yes, If I started jupyter myself, I can run a notebook using python or other kernels. Video_2022-01-07_083124-converted.mp4 |
In jupyter itself, can you create a notebook with the 'Windows store' kernel? And if that doesn't work, when you create a notebook with the other kernel, can you run this code:
|
I have fixed my problems, I found some workarounds on https://programmerah.com/bad-file-descriptorccizeromq-1602704446950worksrcepoll-cpp100-41232/, https://discourse.jupyter.org/t/unable-to-run-jupyter-notebook-after-update-localhost/10764?u=fomightez. Now I can run python/markdown code blocks on vscode.
You can check the version pyzmq current used via C:\Users\Liu.D.H>python
Python 3.10.1 (tags/v3.10.1:2cd268a, Dec 6 2021, 19:10:37) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import zmq
>>> zmq.__version__
'22.3.0'
>>> exit()
C:\Users\Liu.D.H>pip uninstall pyzmq
Found existing installation: pyzmq 22.3.0
Uninstalling pyzmq-22.3.0:
Would remove:
c:\users\liu.d.h\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages\pyzmq-22.3.0.dist-info\*
c:\users\liu.d.h\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages\pyzmq.libs\.load-order-pyzmq-22.3.0
c:\users\liu.d.h\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages\pyzmq.libs\libsodium-138090d4.dll
c:\users\liu.d.h\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages\pyzmq.libs\libzmq-v142-mt-4_3_4-4e355e3e.dll
c:\users\liu.d.h\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages\pyzmq.libs\msvcp140.dll
c:\users\liu.d.h\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages\pyzmq.libs\vcruntime140.dll
c:\users\liu.d.h\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages\pyzmq.libs\vcruntime140_1.dll
c:\users\liu.d.h\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages\zmq\*
Proceed (Y/n)? y
Successfully uninstalled pyzmq-22.3.0
ERROR: Exception:
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.496.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_internal\cli\base_command.py", line 173, in _main
status = self.run(options, args)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.496.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_internal\commands\uninstall.py", line 97, in run
uninstall_pathset.commit()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.496.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_internal\req\req_uninstall.py", line 436, in commit
self._moved_paths.commit()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.496.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_internal\req\req_uninstall.py", line 287, in commit
save_dir.cleanup()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.496.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_internal\utils\temp_dir.py", line 184, in cleanup
rmtree(self._path)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.496.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\tenacity\__init__.py", line 326, in wrapped_f
return self(f, *args, **kw)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.496.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\tenacity\__init__.py", line 406, in __call__
do = self.iter(retry_state=retry_state)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.496.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\tenacity\__init__.py", line 362, in iter
raise retry_exc.reraise()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.496.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\tenacity\__init__.py", line 195, in reraise
raise self.last_attempt.result()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.496.0_x64__qbz5n2kfra8p0\lib\concurrent\futures\_base.py", line 438, in result
return self.__get_result()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.496.0_x64__qbz5n2kfra8p0\lib\concurrent\futures\_base.py", line 390, in __get_result
raise self._exception
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.496.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\tenacity\__init__.py", line 409, in __call__
result = fn(*args, **kwargs)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.496.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_internal\utils\misc.py", line 135, in rmtree
shutil.rmtree(dir, ignore_errors=ignore_errors, onerror=rmtree_errorhandler)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.496.0_x64__qbz5n2kfra8p0\lib\shutil.py", line 739, in rmtree
return _rmtree_unsafe(path, onerror)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.496.0_x64__qbz5n2kfra8p0\lib\shutil.py", line 617, in _rmtree_unsafe
onerror(os.unlink, fullname, sys.exc_info())
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.496.0_x64__qbz5n2kfra8p0\lib\shutil.py", line 615, in _rmtree_unsafe
os.unlink(fullname)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\Liu.D.H\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python310\\site-packages\\~yzmq.libs\\libsodium-138090d4.dll'
C:\Users\Liu.D.H>python
Python 3.10.1 (tags/v3.10.1:2cd268a, Dec 6 2021, 19:10:37) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import zmq
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'zmq'
>>> exit()
C:\Users\Liu.D.H>
C:\Users\Liu.D.H>pip install pyzmq==19.0.2 --user
Collecting pyzmq==19.0.2
Downloading pyzmq-19.0.2.tar.gz (1.2 MB)
|████████████████████████████████| 1.2 MB 504 kB/s
Using legacy 'setup.py install' for pyzmq, since package 'wheel' is not installed.
Installing collected packages: pyzmq
Running setup.py install for pyzmq ... done
Successfully installed pyzmq-19.0.2
WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
You should consider upgrading via the 'C:\Users\Liu.D.H\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe -m pip install --upgrade pip' command.
C:\Users\Liu.D.H>
C:\Users\Liu.D.H>python
Python 3.10.1 (tags/v3.10.1:2cd268a, Dec 6 2021, 19:10:37) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import zmq
>>> zmq.__version__
'19.0.2'
>>> exit()
C:\Users\Liu.D.H> |
@rchiodo Thank you very much! 😄 |
@liudonghua123 This will cause other issues if you try to use another Python environment (such as a virtual environment with a different version or when you mix and match Anaconda with other distros). |
@DonJayamanne Thanks for the tips :😊 |
Interestingly I had to use this fix every single time I launched the notebook. And this was very annoying. So what did I do?
and everything good. |
Also had this problem, using 3.10.5 installed via Windows installer. I installed 3.9.13 instead (also via Windows installer), and it is working fine. |
Why not solve this problem from the source? Should we urge vscode jupyter or pyzmq to solve this problem?It's already March 28th, 2022, and this problem still exists. |
Can any Windows folks try this possible fix? |
Environment data
vscode version details
I installed python 3.10 from ms store. and then I install
jupyter
successed. Then I create a python script named test.py which contains the following demo code.Expected behaviour
Work as expected.
Actual behaviour
(code: 1073741845). Bad file descriptor (C:\projects\libzmq\src\epoll.cpp:100).
View Jupyter log for further details.
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
Logs
Output for
Jupyter
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toJupyter
)If I start jupyter outside vscode, it did not have such problems.
The text was updated successfully, but these errors were encountered: