Connection problem to kernel
See original GitHub issueEnvironment data
- VS Code version: 1.64.2
- Jupyter Extension version: v2022.1.1201831736
- Python Extension version: v2022.0.1814523869
- OS (Windows) version: 21H1
- Python version: 3.8.10
- Jupyter server running: Local
Actual behaviour
Connecting to kernel: Python 3.8.10 64-bit: Waiting for Jupyter Session to be idle
Logs
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 13:25:26: ZMQ install verified. Info 13:25:27: Preferred kernel connection found in cache .jvsc74a57bd0e404b59586357c814bc0d3940e75d6763c00a48753b225b81f7716971b8e1741.C:\Python\Python38\python.exe.C:\Python\Python38\python.exe.-m#ipykernel_launcher Info 13:25:27: PreferredConnection: .jvsc74a57bd0e404b59586357c814bc0d3940e75d6763c00a48753b225b81f7716971b8e1741.C:\Python\Python38\python.exe.C:\Python\Python38\python.exe.-m#ipykernel_launcher found for NotebookDocument: c:\Python\Exercises\Untitled-1.ipynb Info 13:25:27: Early registration of controller for Kernel connection .jvsc74a57bd0e404b59586357c814bc0d3940e75d6763c00a48753b225b81f7716971b8e1741.C:\Python\Python38\python.exe.C:\Python\Python38\python.exe.-m#ipykernel_launcher Info 13:25:27: TargetController found ID: .jvsc74a57bd0e404b59586357c814bc0d3940e75d6763c00a48753b225b81f7716971b8e1741.C:\Python\Python38\python.exe.C:\Python\Python38\python.exe.-m#ipykernel_launcher for document c:\Python\Exercises\Untitled-1.ipynb Info 13:25:27: Setting controller affinity for c:\Python\Exercises\Untitled-1.ipynb .jvsc74a57bd0e404b59586357c814bc0d3940e75d6763c00a48753b225b81f7716971b8e1741.C:\Python\Python38\python.exe.C:\Python\Python38\python.exe.-m#ipykernel_launcher Info 13:25:27: Interrupt requested & no kernel. Info 13:25:27: Setting setActiveController for c:\Python\Exercises\Untitled-1.ipynb Info 13:25:27: Getting activation commands for C:\Python\Python38\python.exe are not cached. May take a while. Info 13:25:27: KernelProvider switched kernel to id = .jvsc74a57bd0e404b59586357c814bc0d3940e75d6763c00a48753b225b81f7716971b8e1741.C:\Python\Python38\python.exe.C:\Python\Python38\python.exe.-m#ipykernel_launcher Info 13:25:27: Starting Notebook in kernel.ts id = .jvsc74a57bd0e404b59586357c814bc0d3940e75d6763c00a48753b225b81f7716971b8e1741.C:\Python\Python38\python.exe.C:\Python\Python38\python.exe.-m#ipykernel_launcher Info 13:25:27: Creating raw notebook for c:\Python\Exercises\Untitled-1.ipynb Info 13:25:27: Getting preferred kernel for c:\Python\Exercises\Untitled-1.ipynb Info 13:25:27: Computing working directory c:\Python\Exercises\Untitled-1.ipynb Info 13:25:28: Experiment status for python is {“enabled”:true,“optInto”:[],“optOutFrom”:[]} Info 13:25:28: Starting raw kernel Python 3.8.10 64-bit Info 13:25:28: installMissingDependencies C:\Python\Python38\python.exe Info 13:25:28: IPykernel found previously in this environment C:\Python\Python38\python.exe Info 13:25:28: Kernel launching with ports 9000,9001,9002,9003,9004. Start port is 9000 Info 13:25:28: No custom variables for Kernel as interpreter is not conda, but is Global Info 13:25:30: Process Execution: > C:\Python\Python38\python.exe -m pip list
C:\Python\Python38\python.exe -m pip list Info 13:25:30: Process Execution: > C:\Python\Python38\python.exe -c “import ipykernel; print(ipykernel.version); print(“5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d”); print(ipykernel.file)” C:\Python\Python38\python.exe -c “import ipykernel; print(ipykernel.version); print(“5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d”); print(ipykernel.file)” Info 13:25:30: Creating controller for jupyter-notebook with interpreter C:\Python\Python38\python.exe Info 13:25:30: Creating daemon process for C:\Python\Python38\python.exe with env variables count 0 Info 13:25:30: Process Execution: > C:\Python\Python38\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_interrupt_daemon -v --ppid 5644 C:\Python\Python38\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_interrupt_daemon -v --ppid 5644 Info 13:25:31: get interrupthandle daemon Info 13:25:31: Process Execution: > C:\Python\Python38\python.exe -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme=“hmac-sha256” --Session.key=b"eb59f091-2896-4d2c-bf66-6318e45175e3" --shell=9002 --transport=“tcp” --iopub=9004 --f=C:\Users\AsusPro\AppData\Local\Temp\tmp-56446hFbCe6qn3Re.json C:\Python\Python38\python.exe -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme=“hmac-sha256” --Session.key=b"eb59f091-2896-4d2c-bf66-6318e45175e3" --shell=9002 --transport=“tcp” --iopub=9004 --f=C:\Users\AsusPro\AppData\Local\Temp\tmp-56446hFbCe6qn3Re.json Info 13:25:31: Process Execution: cwd: c:\Python\Exercises cwd: c:\Python\Exercises Info 13:25:31: Registering dummy command feature Info 13:25:34: ipykernel version 5.4.2 for C:\Python\Python38\python.exe Info 13:25:34: ipykernel location ~\AppData\Roaming\Python\Python38\site-packages\ipykernel_init_.py for C:\Python\Python38\python.exe Warn 13:25:34: StdErr from Kernel Process C:\Users\AsusPro\AppData\Roaming\Python\Python38\site-packages\traitlets\traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use ‘hmac-sha256’ instead of ‘“hmac-sha256”’ – or use CUnicode. warn(
Warn 13:25:34: StdErr from Kernel Process C:\Users\AsusPro\AppData\Roaming\Python\Python38\site-packages\traitlets\traitlets.py:2151: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use ‘eb59f091-2896-4d2c-bf66-6318e45175e3’ instead of ‘b"eb59f091-2896-4d2c-bf66-6318e45175e3"’. warn(
Info 13:25:34: Kernel Output: NOTE: When using the ipython kernel
entry point, Ctrl-C will not work.
To exit, you will have to explicitly quit this process, by either sending “quit” from a client, or using Ctrl-\ in UNIX-like environments.
To read more about this, see https://github.com/ipython/ipython/issues/2049
To connect another client to this kernel, use: –existing C:\Users\AsusPro\AppData\Local\Temp\tmp-56446hFbCe6qn3Re.json
Info 13:25:35: Raw session started and connected Started kernel Python 3.8.10 64-bit Info 13:25:35: Finished connecting 03a373af-aac6-49e4-a175-09d5228afe57 Warn 13:25:36: StdErr from Kernel Process [IPKernelApp] ERROR | Exception in message handler: Traceback (most recent call last): File “C:\Users\AsusPro\AppData\Roaming\Python\Python38\site-packages\ipykernel\kernelbase.py”, line 265, in dispatch_shell yield gen.maybe_future(handler(stream, idents, msg)) File “C:\Users\AsusPro\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py”, line 762, in run value = future.result() File “C:\Users\AsusPro\AppData\Roaming\Python\Python38\site-packages\tornado\gen.py”, line 234, in wrapper yielded = ctx_run(next, result) File “C:\Users\AsusPro\AppData\Roaming\Python\Python38\site-packages\ipykernel\kernelbase.py”, line 580, in complete_request matches = yield gen.maybe_future(self.do_complete(code, cursor_pos)) File “C:\Users\AsusPro\AppData\Roaming\Python\Python38\site-packages\ipykernel\ipkernel.py”, line 356, in do_complete return self._experimental_do_complete(code, cursor_pos) File “C:\Users\AsusPro\AppData\Roaming\Python\Python38\site-packages\ipykernel\ipkernel.py”, line 381, in _experimental_do_complete completions = list(_rectify_completions(code, raw_completions)) File “C:\Users\AsusPro\AppData\Roaming\Python\Python38\site-packages\IPython\core\completer.py”, line 484, in rectify_completions completions = list(completions) File “C:\Users\AsusPro\AppData\Roaming\Python\Python38\site-packages\IPython\core\completer.py”, line 1818, in completions for c in self._completions(text, offset, _timeout=self.jedi_compute_type_timeout/1000): File “C:\Users\AsusPro\AppData\Roaming\Python\Python38\site-packages\IPython\core\completer.py”, line 1861, in _completions matched_text, matches, matches_origin, jedi_matches = self._complete( File “C:\Users\AsusPro\AppData\Roaming\Python\Python38\site-packages\IPython\core\completer.py”, line 2029, in _complete completions = self._jedi_matches( File “C:\Users\AsusPro\AppData\Roaming\Python\Python38\site-packages\IPython\core\completer.py”, line 1373, in jedi_matches interpreter = jedi.Interpreter( File "C:\Users\AsusPro\AppData\Roaming\Python\Python38\site-packages\jedi\api_init.py", line 725, in init super().init(code, environment=environment, TypeError: init() got an unexpected keyword argument ‘column’
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
I installed the pre-release version (v2022.2.1010480428) and it works now.
@Ashirov Thanks for getting back with the details Please could you install the latest pre-release version of the jupyter extesnsion. & please install the python package
win32api
(click onlearn more
for details)Please try using the
--user
flag as per the error message