Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading