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

Embedding youtube-dl: no suitable InfoExtractor #4783

Closed
ghost opened this issue Jan 25, 2015 · 5 comments
Closed

Embedding youtube-dl: no suitable InfoExtractor #4783

ghost opened this issue Jan 25, 2015 · 5 comments

Comments

@ghost
Copy link

@ghost ghost commented Jan 25, 2015

I tried the example for embedding youtube-dl but I always get this error:

ERROR: no suitable InfoExtractor: http://www.youtube.com/watch?v=BaW_jenozKc
Traceback (most recent call last):
File "ydl.py", line 5, in
ydl.download(['http://www.youtube.com/watch?v=BaW_jenozKc'])
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 771, in download
videos = self.extract_info(url)
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 430, in extract_info
self.report_error(u'no suitable InfoExtractor: %s' % url)
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 291, in report_error
self.trouble(error_message, tb)
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 266, in trouble
raise DownloadError(message, exc_info)
youtube_dl.utils.DownloadError: ERROR: no suitable InfoExtractor: http://www.youtube.com/watch?v=BaW_jenozKc

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jan 25, 2015

Could you post the code you are using for calling youtube-dl and the version?
If you are using the code from https://github.com/rg3/youtube-dl/blob/master/README.md#embedding-youtube-dl, you may be using a version too old.

@ghost
Copy link
Author

@ghost ghost commented Jan 25, 2015

I used that code from https://github.com/rg3/youtube-dl/blob/master/README.md#embedding-youtube-dl. My version : 2015.01.23.4

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jan 25, 2015

Ok, what's the output you get if you run these two commands in the python interpreter (you have to run python):

>>> import youtube_dl
>>> youtube_dl.version.__version__
@ghost
Copy link
Author

@ghost ghost commented Jan 25, 2015

Thank You. You were right.
The command-line programm was version 2015.01.23.4, but the python package was an old one.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jan 25, 2015

I'm closing the issue then. If you have any other problem, feel free to open a new issue.

@jaimeMF jaimeMF closed this Jan 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.