› Forums › Technical support › Jupyter Notebooks › Unable to run some of the cells
- This topic has 4 replies, 3 voices, and was last updated 3 years, 9 months ago by Catherine Lai.
-
AuthorPosts
-
-
October 12, 2020 at 21:51 #12398
There are four cells which I can’t run in the jupyter notebook, which are in m1-2.6, m1-3.1 and m1-4.2 (two in m1-4.2). Some of them point to the same error: RuntimeError: Requested MovieWriter (ffmpeg) not available. One of them shows AttributeError: ‘NoneType’ object has no attribute ‘plot’
p.s.I’m sure that I run the cell at the top of every notebook.Attachments:
You must be logged in to view attached files. -
October 12, 2020 at 22:04 #12404
-
October 12, 2020 at 22:44 #12405
I have tried to restart and clear output, that doesn’ work. I’m not sure where to set the location that matplotlib looks for ffmpeg or maybe how to install ffmpeg. I try to put it before either top of the code or before anim = FuncAnimation, it returns NameError: name ‘LOCATION_OF_FFMPEG’ is not defined. I try to add quotation marks for LOCATION_OF_FFMPEG, but the error RuntimeError: Requested MovieWriter (ffmpeg) not available appears again.
I also try the !which ffmpeg in macOS terminal, but it just returns a string. I’m not sure if my operation or understanding is correct?Attachments:
You must be logged in to view attached files. -
October 15, 2020 at 17:55 #12491
You’ll need to replace ‘LOCATION_OF_FFMPEG’ in the notebook with an actual path location. To find this, in the terminal try
which ffmpeg
You’ll probably get something like /usr/bin/ffmpeg, but it could vary depending on how you installed ffmpeg.
Note: you don’t need to put “!” at the beginning of this if you run commands in the terminal. the “!” is just if you want to run bash commands with the Jupyter Notebook.
-
October 15, 2020 at 18:00 #12492
You probably also want to check that ffmpeg is actually installed. If you already have a conda enviroment, the easiest way to get it is to run this in the terminal
conda install ffmpeg
You’ll need to have your conda environment active, e.g.
conda activate slp
where slp was the name of the environment you use with the jupyter notebooks.
-
-
AuthorPosts
- You must be logged in to reply to this topic.