"The kernel appears to have died. It will restart automatically."

Hi I keep getting the message “The kernel appears to have died. It will restart automatically.” when trying to run demo 1.1 in the Mastering with ROS: Shadow Hand course even after refreshing the page. How can I fix this?

Thanks in advance to anyone that can help.

1 Like

Hi @johnkinson,

I apologize for this error. This can happen if the VM is having connectivity issues at that time. Could you please check again and let us know if you’re still seeing the problem?


By the way, welcome to the community!

1 Like

Hi @bayodesegun

Thanks for your response (and your welcome :slight_smile: ), I’ve tried this again and unfortunately am still having the same problem.

1 Like

@johnkinson,

You’re welcome and thanks for your feedback. We will work on this and get back to you as soon as possible.


While you work on this error, please use the following workaround:

  1. Create a python file in your src folder:
cd ~/catkin_ws/src
touch sgs.py
chmod +x sgs.py
  1. Open the sgs.py in the IDe and paste in the following code (PS: it’s slightly modified compared to what we have in the Notebook). Save the file, of course :slight_smile:
#! /usr/bin/env python
# -*- coding: utf-8 -*-

from smart_grasping_sandbox.smart_grasper import SmartGrasper
from tf.transformations import quaternion_from_euler
from math import pi
import time

sgs = SmartGrasper()
time.sleep(10)
sgs.pick()
  1. Run the code from the command line. You should see the robot doing the grasping.
python ~/catkin_ws/src/sgs.py

Cheers and thanks for your patience.

1 Like

@bayodesegun great thank you!

1 Like