question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

youtube-dl works when installed by Brew but not pipx

See original GitHub issue

same version of youtube-dl across both

❌ doesn’t work with pipx

$ youtube-dl --extract-audio --audio-format mp3 --audio-quality 0 https://www.youtube.com/watch?v=FFZj_Srj4eU

[youtube] FFZj_Srj4eU: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)> (caused by URLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)'),))

$ pipx list
venvs are in /Users/zach/.local/pipx/venvs
apps are exposed on your $PATH at /Users/zach/.local/bin
   package youtube-dl 2019.9.28, Python 3.6.1
    - youtube-dl

$ pipx uninstall youtube-dl
uninstalled youtube-dl! ✨ 🌟 ✨

✅ does work with brew

$ brew install youtube-dl
==> Summary
🍺  /usr/local/Cellar/youtube-dl/2019.09.28: 12 files, 2.1MB, built in 4 seconds

$ source $HOME/.bash_profile
 updating ~/.bash_profile at: Wed Oct  2 17:29:47 EDT 2019

$ youtube-dl --extract-audio --audio-format mp3 --audio-quality 0 https://www.youtube.com/watch?v=FFZj_Srj4eU
[youtube] FFZj_Srj4eU: Downloading webpage
[youtube] FFZj_Srj4eU: Downloading video info webpage
[download] Destination: The Clipse- Mr. Me Too-FFZj_Srj4eU.webm
[download] 100% of 3.44MiB in 00:01
[ffmpeg] Destination: The Clipse- Mr. Me Too-FFZj_Srj4eU.mp3
Deleting original file The Clipse- Mr. Me Too-FFZj_Srj4eU.webm (pass -k to keep)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
moribellamycommented, Nov 10, 2019

I just got the same error. it’s got something to do with the ssl certs that come with a python install. this stackoverflow links to a package which helps some people by installing extra certs, but it didn’t work for me: https://github.com/ytdl-org/youtube-dl/issues/4816.

maybe this helps too https://stackoverflow.com/questions/39356413/how-to-add-a-custom-ca-root-certificate-to-the-ca-store-used-by-pip-in-windows.

0reactions
cs01commented, Oct 3, 2019

I am pretty sure this is something not directly related to pipx since I was able to run it on my mac, so I will close. Feel free to reopen if you find otherwise.

Read more comments on GitHub >

github_iconTop Results From Across the Web

youtube-dl works when installed by Brew but not pipx #232
My guess is they are using different python/site-packages. How does brew bundle and install youtuble-dl? It is likely not using the same Python ......
Read more >
HOW TO: Install YouTube-DL - FSMdotCOM
But the easiest way to install youtube-dl on macOS is via Homebrew with brew install youtube-dl . INSTALL youtube-dl ON WINDOWS. I said...
Read more >
Youtube-dl not installing on my Mac. : r/youtubedl - Reddit
Hi, I am trying to install YT-DL on my Mac. I have trued Homebrew and no success. and went to GitHub also without...
Read more >
How do I install a Python command line tool or script? (hint: pipx)
Installation on a Mac. Do you have Homebrew? If not, install it with this: /bin/bash -c "$(curl -fsSL ...
Read more >
Trying to install youtube-dl but it shows an error - Stack Overflow
Try brew update first. If the problem persists, please share the output for brew doctor , it shows the problem with solutions.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found