-
Notifications
You must be signed in to change notification settings - Fork 238
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
Unable to import modules #7
Comments
Have you tried uninstalling all numpy instances like the error says? |
Hi @kaletaa, fariss@fariss:~$ ./main.py
Traceback (most recent call last):
File "./main.py", line 3, in <module>
from youtube import Youtube
File "/home/fariss/smd/youtube.py", line 13, in <module>
from moviepy.editor import *
File "/home/fariss/.local/lib/python3.6/site-packages/moviepy/editor.py", line 26, in <module>
imageio.plugins.ffmpeg.download()
File "/home/fariss/.local/lib/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 79, in download
get_remote_file(fname=fname, directory=directory, force_download=force_download)
File "/home/fariss/.local/lib/python3.6/site-packages/imageio/core/fetching.py", line 130, in get_remote_file
_fetch_file(url, filename)
File "/home/fariss/.local/lib/python3.6/site-packages/imageio/core/fetching.py", line 189, in _fetch_file
% os.path.basename(file_name)
OSError: Unable to download 'ffmpeg-linux64-v3.3.1'. Perhaps there is a no internet connection? If there is, please report this problem. So, I tried installing 'ffmpeg-linux64-v3.3.1' manually, and I am getting this: fariss@fariss:~$ python3
Python 3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import imageio
>>> imageio.plugins.ffmpeg.download()
Imageio: 'ffmpeg-linux64-v3.3.1' was not found on your computer; downloading it now.
Try 1. Download from https://github.com/imageio/imageio-binaries/raw/master/ffmpeg/ffmpeg-linux64-v3.3.1 (43.8 MB)
Downloading: 23339008/45929032 bytes (50.8%)Error while fetching file: The read operation timed out.
Try 2. Download from https://github.com/imageio/imageio-binaries/raw/master/ffmpeg/ffmpeg-linux64-v3.3.1 (43.8 MB)
Downloading: 7340032/45929032 bytes (16.0%)Error while fetching file: The read operation timed out.
Try 3. Download from https://github.com/imageio/imageio-binaries/raw/master/ffmpeg/ffmpeg-linux64-v3.3.1 (43.8 MB)
Downloading: 3907584/45929032 bytes (8.5%)Error while fetching file: The read operation timed out.
Try 4. Download from https://github.com/imageio/imageio-binaries/raw/master/ffmpeg/ffmpeg-linux64-v3.3.1 (43.8 MB)
Downloading: 1032192/45929032 bytes (2.2%)Error while fetching file: The read operation timed out.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/fariss/.local/lib/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 79, in download
get_remote_file(fname=fname, directory=directory, force_download=force_download)
File "/home/fariss/.local/lib/python3.6/site-packages/imageio/core/fetching.py", line 130, in get_remote_file
_fetch_file(url, filename)
File "/home/fariss/.local/lib/python3.6/site-packages/imageio/core/fetching.py", line 189, in _fetch_file
% os.path.basename(file_name)
OSError: Unable to download 'ffmpeg-linux64-v3.3.1'. Perhaps there is a no internet connection? If there is, please report this problem.
>>>
>>> imageio.plugins.ffmpeg.download()
Imageio: 'ffmpeg-linux64-v3.3.1' was not found on your computer; downloading it now.
Try 1. Download from https://github.com/imageio/imageio-binaries/raw/master/ffmpeg/ffmpeg-linux64-v3.3.1 (43.8 MB)
Downloading: 25337856/45929032 bytes (55.2%)Error while fetching file: The read operation timed out.
Try 2. Download from https://github.com/imageio/imageio-binaries/raw/master/ffmpeg/ffmpeg-linux64-v3.3.1 (43.8 MB)
Downloading: 17154048/45929032 bytes (37.3%)Error while fetching file: The read operation timed out.
Try 3. Download from https://github.com/imageio/imageio-binaries/raw/master/ffmpeg/ffmpeg-linux64-v3.3.1 (43.8 MB)
Downloading: 32776192/45929032 bytes (71.4%)Error while fetching file: The read operation timed out.
Try 4. Download from https://github.com/imageio/imageio-binaries/raw/master/ffmpeg/ffmpeg-linux64-v3.3.1 (43.8 MB)
Downloading: 4505600/45929032 bytes (9.8%)Error while fetching file: The read operation timed out.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/fariss/.local/lib/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 79, in download
get_remote_file(fname=fname, directory=directory, force_download=force_download)
File "/home/fariss/.local/lib/python3.6/site-packages/imageio/core/fetching.py", line 130, in get_remote_file
_fetch_file(url, filename)
File "/home/fariss/.local/lib/python3.6/site-packages/imageio/core/fetching.py", line 189, in _fetch_file
% os.path.basename(file_name)
OSError: Unable to download 'ffmpeg-linux64-v3.3.1'. Perhaps there is a no internet connection? If there is, please report this problem. |
It can't see the ffmpeg binary, yeah. I'm trying to fix this bug too, I've opened another issue in this repo about it ( #8 ) Edit: I see that you are trying to install it from the REPL, can you try manually getting the binary from that github link and see if it works that way? |
Problem fixed. Thanks. |
Closed issue. |
After successfully installing all the requirements, I am not able to run the script
./main.py
:I also don't know what packages to install manually.
The text was updated successfully, but these errors were encountered: