question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi, I just installed the jupyter-c-kernel on my jupyterhub server (i installed it with sudo to have the kernel available for all the users). When I try to execute the simple hello world example i got this log in the notebook shell output:

[I 2016-06-07 04:51:13.171 epinux kernelmanager:89] Kernel started: 22a3c6c7-8932-4cf2-b377-b4f33f571430
gcc: error: /usr/local/lib/python3.5/dist-packages/jupyter_c_kernel-1.0.0-py3.5.egg/jupyter_c_kernel/../resources/master.c: No such file or directory
[IPKernelApp] ERROR | UNKNOWN MESSAGE TYPE: 'comm_open'
[IPKernelApp] ERROR | Exception in message handler:
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/ipykernel/kernelbase.py", line 228, in dispatch_shell
    handler(stream, idents, msg)
  File "/usr/local/lib/python3.5/dist-packages/ipykernel/kernelbase.py", line 391, in execute_request
    user_expressions, allow_stdin)
  File "/usr/local/lib/python3.5/dist-packages/jupyter_c_kernel-1.0.0-py3.5.egg/jupyter_c_kernel/kernel.py", line 135, in do_execute
    p = self.create_jupyter_subprocess([self.master_path, binary_file.name])
  File "/usr/local/lib/python3.5/dist-packages/jupyter_c_kernel-1.0.0-py3.5.egg/jupyter_c_kernel/kernel.py", line 112, in create_jupyter_subprocess
    lambda contents: self._write_to_stderr(contents.decode()))
  File "/usr/local/lib/python3.5/dist-packages/jupyter_c_kernel-1.0.0-py3.5.egg/jupyter_c_kernel/kernel.py", line 25, in __init__
    super().__init__(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, bufsize=0)
  File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.5/subprocess.py", line 1544, in _execute_child
    raise child_exception_type(errno_num, err_msg)
PermissionError: [Errno 13] Permission denied
[IPKernelApp] ERROR | Exception in message handler:
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/ipykernel/kernelbase.py", line 228, in dispatch_shell
    handler(stream, idents, msg)
  File "/usr/local/lib/python3.5/dist-packages/ipykernel/kernelbase.py", line 391, in execute_request
    user_expressions, allow_stdin)
  File "/usr/local/lib/python3.5/dist-packages/jupyter_c_kernel-1.0.0-py3.5.egg/jupyter_c_kernel/kernel.py", line 135, in do_execute
    p = self.create_jupyter_subprocess([self.master_path, binary_file.name])
  File "/usr/local/lib/python3.5/dist-packages/jupyter_c_kernel-1.0.0-py3.5.egg/jupyter_c_kernel/kernel.py", line 112, in create_jupyter_subprocess
    lambda contents: self._write_to_stderr(contents.decode()))
  File "/usr/local/lib/python3.5/dist-packages/jupyter_c_kernel-1.0.0-py3.5.egg/jupyter_c_kernel/kernel.py", line 25, in __init__
    super().__init__(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, bufsize=0)
  File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.5/subprocess.py", line 1544, in _execute_child
    raise child_exception_type(errno_num, err_msg)
PermissionError: [Errno 13] Permission denied

I guess is an issue on how I installed the kernel, thanks for looking into this.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
epifaniocommented, Jun 11, 2016

It seems the error was generated by a missed resource directory. Ii copied it from the src root into:

/usr/local/lib/python3.5/dist-packages/jupyter_c_kernel-1.0.0-py3.5.egg/

And now hello world works fine! 😃 I’ll test with more complex c code and I’ll report here if any problem. Thanks!

0reactions
indajuancommented, Nov 7, 2017

Hello, Could you please help me with the installation on Ubuntu 17.04? I followed the instructions:

  • pip install jupyter-c-kernel
  • install_c_kernel

install_c_kernel returned an error, permission denied.

So I tried with install_c_kernel --user and it worked out fine.

Nevertheless, if I run the notebook with the hello world example ( or any code), the kernel does not return any output, it just runs but it does not return anything. It does however, send error messages if the code is wrong.

Thanks,

Read more comments on GitHub >

github_iconTop Results From Across the Web

PermissionError: [Errno 13] in Python - Stack Overflow
Test is a folder, the Document im following reads i can open a text doc using the following syntax a_file = open('E:\Python Win7-64-AMD...
Read more >
Python PermissionError: [errno 13] permission denied Solution
A PermissionError indicates that Python does not have the right permissions to access a file. ... This command makes the “james” user and...
Read more >
Built-in Exceptions — Python 3.11.1 documentation
Changed in version 3.11.1: WASI's ENOTCAPABLE is now mapped to PermissionError . exception ProcessLookupError¶. Raised when a given process doesn't exist.
Read more >
Fix - PermissionError: [Errno 13] Permission denied in Python
The python error “PermissionError: [Errno 13] Permission denied” can be fixed in various ways after knowing the root cause.
Read more >
PermissionError: [Errno 13] Permission denied error solved
The error "PermissionError: [Errno 13] Permission denied error" often occurs when the file you are trying to read from or write to is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found