You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
brew gist-logs <formula> link OR brew config AND brew doctor output
duarte@MacBook-Pro-de-Duarte ~ % brew gist-logs [email protected]
https://gist.github.com/Duarte475/b698d765a7afb06faed754ad2eccb195
duarte@MacBook-Pro-de-Duarte ~ % brew gist-logs yt-dlp
Error: No logs.
duarte@MacBook-Pro-de-Duarte ~ % brew doctor
Your system is ready to brew.
Verification
My brew doctor output says Your system is ready to brew. and am still able to reproduce my issue.
I ran brew update and am still able to reproduce my issue.
I have resolved all warnings from brew doctor and that did not fix my problem.
duarte@MacBook-Pro-de-Duarte ~ % yt-dlp --version
Traceback (most recent call last):
File "/opt/homebrew/bin/yt-dlp", line 5, in <module>
from yt_dlp import main
File "/opt/homebrew/Cellar/yt-dlp/2025.1.26/libexec/lib/python3.13/site-packages/yt_dlp/__init__.py", line 17, in <module>
from .cookies import SUPPORTED_BROWSERS, SUPPORTED_KEYRINGS, CookieLoadError
File "/opt/homebrew/Cellar/yt-dlp/2025.1.26/libexec/lib/python3.13/site-packages/yt_dlp/cookies.py", line 23, in <module>
from .aes import (
...<3 lines>...
)
File "/opt/homebrew/Cellar/yt-dlp/2025.1.26/libexec/lib/python3.13/site-packages/yt_dlp/aes.py", line 5, in <module>
from .dependencies import Cryptodome
File "/opt/homebrew/Cellar/yt-dlp/2025.1.26/libexec/lib/python3.13/site-packages/yt_dlp/dependencies/__init__.py", line 65, in <module>
import requests
File "/opt/homebrew/Cellar/yt-dlp/2025.1.26/libexec/lib/python3.13/site-packages/requests/__init__.py", line 164, in <module>
from .api import delete, get, head, options, patch, post, put, request
File "/opt/homebrew/Cellar/yt-dlp/2025.1.26/libexec/lib/python3.13/site-packages/requests/api.py", line 11, in <module>
from . import sessions
File "/opt/homebrew/Cellar/yt-dlp/2025.1.26/libexec/lib/python3.13/site-packages/requests/sessions.py", line 15, in <module>
from .adapters import HTTPAdapter
File "/opt/homebrew/Cellar/yt-dlp/2025.1.26/libexec/lib/python3.13/site-packages/requests/adapters.py", line 81, in <module>
_preloaded_ssl_context.load_verify_locations(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
extract_zipped_paths(DEFAULT_CA_BUNDLE_PATH)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
FileNotFoundError: [Errno 2] No such file or directory
What did you expect to happen?
I wanted yt-dlp to run correctly. It was supposed to output something like
Most common reason for this type of failure is if you incorrectly deleted some etc files like accidentally running rm as mentioned in #177425
Particularly, never delete ca-certificates/openssl@* files unless you are confident it is unused, i.e. you no longer have formula installed.
e.g. to see a similar error:
❯ rm /opt/homebrew/etc/ca-certificates/cert.pem
❯ yt-dlp --version 2>&1| tail -5 extract_zipped_paths(DEFAULT_CA_BUNDLE_PATH) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^FileNotFoundError: [Errno 2] No such file or directory
You are going to have to check your setup to see what is broken.
Without knowing anything else, at best can try brew reinstall ca-certificates certifi to try to restore any files you may have removed, e.g. from above state
Thank you very much for your help
I tried brew reinstall ca-certificates certifi and it worked 🥳
For some reason I had in my head that it was some kind of Python related issue.
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew doctor
output saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
I'm trying to install and run yt-dlp correctly
What happened (include all command output)?
What did you expect to happen?
I wanted yt-dlp to run correctly. It was supposed to output something like
Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: