OpenCV error Assertion failed (ssize.width > 0 && ssize.height > 0) in resize

In Open Cv basics for robotics I try to execute Example3.2 (Unit3, example_video.py)

and I get this error:

OpenCV Error: Assertion failed (ssize.width > 0 && ssize.height > 0) in resize, file /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/imgproc/src/resize.cpp, line 3939
Traceback (most recent call last):
File “/home/user/catkin_ws/src/my_pack/src/example_video.py”, line 84, in
load_video_object.video_detection()
File “/home/user/catkin_ws/src/my_pack/src/example_video.py”, line 38, in video_detection
img_original = cv2.resize(frame,(300,200))
cv2.error: /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/imgproc/src/resize.cpp:3939: error: (-215) ssize.width > 0 && ssize.height > 0 in function resize

I tried to run it on my local computer (kinetic, ubuntu 1604) and I get a similar error:

OpenCV Error: Assertion failed (ssize.width > 0 && ssize.height > 0) in resize, file /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/imgproc/src/resize.cpp, line 3939
Traceback (most recent call last):
File “/home/angelina/catkin_ws/src/unit2/src/example_video.py”, line 84, in
load_video_object.video_detection()
File “/home/angelina/catkin_ws/src/unit2/src/example_video.py”, line 38, in video_detection
img_original = cv2.resize(frame,(300,200))
cv2.error: /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/imgproc/src/resize.cpp:3939: error: (-215) ssize.width > 0 && ssize.height > 0 in function resize

Please help!

That usually happens when you put an incorrect path of the video, in example 3.2 please check if the path is

/home/user/catkin_ws/src/opencv_for_robotics_images/Unit_3/Course_images/chris.mp4