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

Updating youtube-dl throws 'requirement already up-to-date', but 'youtube-dl --version' returns out of date version #25136

Closed
psrpsrpsrpsr opened this issue May 4, 2020 · 4 comments
Labels

Comments

@psrpsrpsrpsr
Copy link

@psrpsrpsrpsr psrpsrpsrpsr commented May 4, 2020

Checklist

  • I'm reporting a broken site support issue
  • [x ] I've verified that I'm running youtube-dl version 2020.05.03
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • [x ] I've searched the bugtracker for similar bug reports including closed ones
  • [x ] I've read bugs section in FAQ

Verbose log

youtube-dl -v https://www.youtube.com/watch?v=4OJDeeyHoK4
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.youtube.com/watch?v=4OJDeeyHoK4']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.06.08
[debug] Python version 3.6.2 (CPython) - Darwin-19.4.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.2.2, ffprobe 4.2.2, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] 4OJDeeyHoK4: Downloading webpage
[youtube] 4OJDeeyHoK4: Downloading video info webpage
WARNING: Unable to extract video title
ERROR: This video is unavailable.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 796, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 2077, in _real_extract
    raise ExtractorError(error_message, expected=True)
youtube_dl.utils.ExtractorError: This video is unavailable.

Description

When trying to download Youtube videos, I'm getting this error:

WARNING: Unable to extract video title 
ERROR: This video is unavailable.

I went to update Youtube-dl by executing:
sudo pip install --upgrade youtube_dl

Which throws:

WARNING: The directory '/Users/[my name]/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already up-to-date: youtube_dl in ./.local/lib/python3.6/site-packages (2020.5.3)

So even though I'm told that 'Requirement up-to-date' for version 2020.5.3, running this command tells me my version is out of date:

youtube-dl --version
2019.06.08

What am I missing here?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 4, 2020

Most likely you have multiple youtube-dl instances installed.

@dstftw dstftw closed this May 4, 2020
@dstftw dstftw added the invalid label May 4, 2020
@psrpsrpsrpsr
Copy link
Author

@psrpsrpsrpsr psrpsrpsrpsr commented May 4, 2020

How do I remedy this? I am new to Python and package managers. Thank you.

@Nathan13888
Copy link

@Nathan13888 Nathan13888 commented Jun 15, 2020

@dstftw

@Nathan13888
Copy link

@Nathan13888 Nathan13888 commented Jun 15, 2020

@psrpsrpsrpsr Either uninstall youtube-dl from APT or from PIP.

Apt: sudo apt remove youtube-dl

You just need to remove one. Follow the instructions in the README for pip.

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
3 participants
You can’t perform that action at this time.