-
Notifications
You must be signed in to change notification settings - Fork 76
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
Every time I try to connect the kernel it dies #95
Comments
Hi @vdyashin, it looks like the matlab engine itself is not properly installed, which is required by the kernel. https://www.mathworks.com/help/matlab/matlab-engine-for-python.html. |
@blink1073 okay. It seems I have not noticed the links in the README.md |
I followed instructions on the MATLAB website and now I get the following: During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): ` |
No, sorry, I don't have a Matlab license. You'd have to ask MathWorks technical support (I'm not affiliated with them). |
I'm having a very similar error: namely It's also worth mentioning that I don't get this error if I import matlab.engine directly in the interpreter. |
To follow up, having done some more experimentation: if I run
then the kernel starts correctly, without any errors. Something on my system doesn't seem to be happy with tempfile.
Could |
It could very well be that |
It seems to! I tried to import the engine as soon as possible by replacing
(the only addition is line 2; everything else is as in the repo). |
I released |
I had an issue where the kernel didn't start because of Kaspersky blocking it. I don't recall the error messages though. For eliminating this possiblity, can you answer the following questions:
|
It constantly dies without starting whatsoever.
I installed the package as follows:
$sudo pip3 install matlab-kernel
$python3 -m matlab_kernel install
$jupyter notebook
Then I selected Matlab kernel in the 'New' button. However it fails to connect to the kernel.
Output from Notebook console:
[I 11:55:33.064 NotebookApp] KernelRestarter: restarting kernel (1/5) Traceback (most recent call last): File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.5/runpy.py", line 85, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.5/dist-packages/matlab_kernel/__main__.py", line 3, in <module> MatlabKernel.run_as_main() File "/usr/local/lib/python3.5/dist-packages/metakernel/_metakernel.py", line 115, in run_as_main MetaKernelApp.launch_instance(kernel_class=cls) File "/usr/local/lib/python3.5/dist-packages/traitlets/config/application.py", line 657, in launch_instance app.initialize(argv) File "<decorator-gen-120>", line 2, in initialize File "/usr/local/lib/python3.5/dist-packages/traitlets/config/application.py", line 87, in catch_config_error return method(app, *args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/ipykernel/kernelapp.py", line 454, in initialize self.init_kernel() File "/usr/local/lib/python3.5/dist-packages/ipykernel/kernelapp.py", line 365, in init_kernel user_ns=self.user_ns, File "/usr/local/lib/python3.5/dist-packages/traitlets/config/configurable.py", line 412, in instance inst = cls(*args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/matlab_kernel/kernel.py", line 65, in __init__ """)
ImportError: Matlab engine not installed: See https://www.mathworks.com/help/matlab/matlab-engine-for-python.htm
The text was updated successfully, but these errors were encountered: