MoviePy: linspace() got an unexpected keyword argument 'dtype'

Python 2.7.16

I want to work with moviepy on an audio file, but I always get this error. For example I want to do anything with moviepy, but without involving audio files, it does it without any problem, but when I want to do something with audio it explodes. It seems to me that the problem is with the numpy library.

Sorry for not putting more information, I have never used python before, what else can I add to complete my question?

enter image description here

>Solution :

The issue has to do with your version of NumPy, as the dtype argument was added to linspace in 1.9.0. As you’ve indicated you’re currently using version 1.8.0rc1.

There are two ways to upgrade NumPy. You can either download the wheel directly from here and install it manually with pip install /path/to/downloaded/wheel, or you can use the pip install --upgrade numpy command. If pip is outdated however, this command may not fetch the latest numpy version.

Leave a Reply