Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run because of deprecated scipy.misc functions #11

Open
Jahsee opened this issue Oct 6, 2020 · 2 comments
Open

Can't run because of deprecated scipy.misc functions #11

Jahsee opened this issue Oct 6, 2020 · 2 comments

Comments

@Jahsee
Copy link

Jahsee commented Oct 6, 2020

Love this project! Python noob, can't get it to work. Working on MacOS Catalina, Python 3.8.

Changed line 7. old: 'from scipy.misc import toimage'
new: 'from PIL import Image'

This affects line 384: 'im=np.array(toimage(out))'
and 398: 'clip = mpy.ImageSequenceClip(frames, fps=22050/frame_length)'

Despite a lot of attempted modification and some beginner Python tutorials, I cannot get this code to run.
Please help!!

@Jessse-del
Copy link

Jessse-del commented Nov 28, 2020

I can't get it running either. Any luck?

@evanheller
Copy link

As explained here: https://stackoverflow.com/questions/57545125/attributeerror-module-scipy-misc-has-no-attribute-toimage

The toimage() function has been deprecated in scipy as of 1.3. So you'd have to either install an older version (<=1.2.0), or supply the function yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants