-
Notifications
You must be signed in to change notification settings - Fork 301
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
Connection problem to kernel #9020
Comments
Thanks for filing this issue, please could you provide the following information:
|
PS C:\Python\Python38> .\python.exe -m pip list astroid 2.4.2 - Please could you run the command PS C:\Python\Python38> python -m pip install ipykernel ipython jedi parso pyzmq -U --force-reinstall - Reload VS Code and let me know how that goes: - If it still doesn't work, please provide the output from python -m pip list again: PS C:\Python\Python38> .\python.exe -m pip list astroid 2.4.2 - the output from the Jupyter output panel: Visual Studio Code (1.64.2, undefined, desktop)
Warn 15:56:45: StdErr from Kernel Process C:\Python\Python38\lib\site-packages\traitlets\traitlets.py:2157: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '99f7b585-3016-4443-a8bd-ae14ef661cba' instead of 'b"99f7b585-3016-4443-a8bd-ae14ef661cba"'. Warn 15:56:45: StdErr from Kernel Process Traceback (most recent call last): Warn 15:56:45: StdErr from Kernel Process File "C:\Python\Python38\lib\runpy.py", line 194, in _run_module_as_main Error 15:56:45: Disposing session as kernel process died ExitCode: 1, Reason: ModuleNotFoundError |
@Ashirov Please try using the
|
I installed the pre-release version (v2022.2.1010480428) and it works now. |
Duplicate of #9014 |
Environment data
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
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 ipython/ipython#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'
The text was updated successfully, but these errors were encountered: