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

simple problem on the first step: importing moviepy.editor #852

Closed
fitipe opened this issue Sep 25, 2018 · 8 comments
Closed

simple problem on the first step: importing moviepy.editor #852

fitipe opened this issue Sep 25, 2018 · 8 comments

Comments

@fitipe
Copy link

fitipe commented Sep 25, 2018

hi there!

I'm new to python ( and to any programming languages, actually ). but I'd really like to learn ( already taking online lessons and following tutorials here and there ).

I'm inside a video-art project and would like to create a simple program to edit videos randomly. or, when and if I get the skills for it, a machine learning program which would have reasons to chose one video from another. anyways, that's future.

the present is:

I found this wonderful package that is probably gonna help me a lot into this process. I installed it through pip and tried to do as the first example tutorial says - "from moviepy.editor import *" ( so I should be able to use its commands through python, right? )

but when I do so ( and I tried many times ) I allways get the same:

" Traceback (most recent call last):
File "<pyshell#1>", line 1, in
from moviepy.editor import *
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/moviepy/editor.py", line 31, in
from .video.io.downloader import download_webfile
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/moviepy/video/io/downloader.py", line 7, in
import requests
ModuleNotFoundError: No module named 'requests' "

I tried it running Python 3.6.5 on its IDLE shell, on a Jupyter Notebook and also on the terminal. the return is allways the same ... do someone know what I shoul do?

thanks a lot!!

captura de tela 2018-09-24 as 21 11 58

@Zulko
Copy link
Owner

Zulko commented Sep 25, 2018

Sorry it is an issue with the current version. The error you see means that you should install the "requests" library. It must be installed the same way you installed moviepy, I am not sure which method you used. Once requests is installed it should work.

@fitipe
Copy link
Author

fitipe commented Sep 25, 2018

hi zulko,
thanks a lot for the quick answer!

I installed moviepy simply by writing "pip install moviepy" on the terminal. how would you recomend me to install the "requests" library?

@Zulko
Copy link
Owner

Zulko commented Sep 25, 2018

pip install requests ;)

@fitipe
Copy link
Author

fitipe commented Sep 25, 2018

thanks! hahaha
I'll try that out :)

@fitipe
Copy link
Author

fitipe commented Sep 25, 2018

woooorks! thanks a lot :))

but now I got stuck in something else, lol
when I try to use VideoFileClip, I get this:

captura de tela 2018-09-24 as 22 02 21

is it something I'm doing wrong this time?

( if I'm not asking too much xP )

@keikoro
Copy link
Collaborator

keikoro commented Dec 16, 2018

@fitipe I'm going to close this issue as the original question got solved. Please open a new issue if the problem described later on persists and it's not already being discussed in another open issue.

@keikoro keikoro closed this as completed Dec 16, 2018
@dionathantborges
Copy link

dionathantborges commented Dec 8, 2020

Hello
I have a similar problem, but with a different error message.

I tried to install the "request" but was unsuccessful

>>> from moviepy.editor import *
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    from moviepy.editor import *
  File "C:\PYTHON\lib\site-packages\moviepy\editor.py", line 24, in <module>
    import imageio
  File "C:\PYTHON\lib\site-packages\imageio\__init__.py", line 22, in <module>
    from .core import FormatManager, RETURN_BYTES
  File "C:\PYTHON\lib\site-packages\imageio\core\__init__.py", line 10, in <module>
    from .util import Image, Array, Dict, asarray, image_as_uint, urlopen
  File "C:\PYTHON\lib\site-packages\imageio\core\util.py", line 19, in <module>
    import numpy as np
  File "C:\PYTHON\lib\site-packages\numpy\__init__.py", line 305, in <module>
    _win_os_check()
  File "C:\PYTHON\lib\site-packages\numpy\__init__.py", line 302, in _win_os_check
    raise RuntimeError(msg.format(__file__)) from None
RuntimeError: The current Numpy installation ('C:\\PYTHON\\lib\\site-packages\\numpy\\__init__.py') fails to pass a sanity check due to a bug in the windows runtime. See this issue for more information: https://tinyurl.com/y3dm3h86

@tburrows13
Copy link
Collaborator

tburrows13 commented Dec 8, 2020

@dionathantborges, that is an issue with numpy, not moviepy. Did you try to follow the link and see what was suggested there?

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

5 participants