Making a Gif Movie of Simulation

GROMACS version:
GROMACS modification: Yes/No
Hello I’m a beginner trying to save a video of a simulation using an xtc and gro topology file.
This successfully generates a video in my jupyter notebook:

import nglview as ng
import mdtraj as md
traj = md.load(“hvrwt_pub.xtc”, top=“hvrwt_pub.gro”)
view = ng.show_mdtraj(traj)
view

However when I try to save the video I get a progress bar showing it is rendering, then an error I can’t fully see. (I made it short for testing purposes)

!pip install moviepy==0.2.2.11
!pip install imageio==1.6
from nglview.contrib.movie import MovieMaker
download_folder = ‘/home/thangavelucs/MD_Intro_Tutorial/md-intro-tutorial-main/HVR’
output = ‘hvrwt_movie.gif’
mov = MovieMaker(view, download_folder=download_folder, output=output, start=0, stop=5, step=1)
mov.make()

After rednering completes, this is the output error:

Do you have an working code/tips for saving videos?