-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
run yt-dlp, report ImportError: cannot import name 'pbkdf2_hmac' from 'hashlib' #8477
Comments
Do you have OpenSSL >=1.1.1 installed? |
i resloved it, if you upgrade openssl, you should rebuild python below |
I'm sorry I don't know what you mean by this. I have the same issue but do I copy that in my terminal? I am on macOS with OpenSSl 3.2.1 |
@connors89 can you give more details? e.g. when did this start happening for you, how did you install yt-dlp, what version are you trying to run? |
I am trying to package yt-dlp into a standalone GUI using py2app, when I get my application, I double click and get a launch error, when I go into app contents and run the UNIX executable file, it gives the same error as the issue name. I believe I pip installed yt-dlp? (it was some time ago) it is located at /Library/Frameworks/Python.framework/Versions/3.12/bin/yt-dlp and is version 2024.03.10 |
@connors89 Looks like openssl is not being included in your py2app build? This advice might be relevant: ronaldoussoren/py2app#308 (comment) |
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
Region
china
Provide a description that is worded well enough to be understood
when i run yt-dlp,report as fellow:
Traceback (most recent call last):
File "/root/python3-env/bin/yt-dlp", line 5, in
from yt_dlp import main
File "/root/python3-env/lib/python3.12/site-packages/yt_dlp/init.py", line 19, in
from .cookies import SUPPORTED_BROWSERS, SUPPORTED_KEYRINGS
File "/root/python3-env/lib/python3.12/site-packages/yt_dlp/cookies.py", line 19, in
from hashlib import pbkdf2_hmac
ImportError: cannot import name 'pbkdf2_hmac' from 'hashlib' (/usr/local/lib/python3.12/hashlib.py)
pbkdf2_hmac is only added by python2.7,python3.12 is not contain this module,have anyone the same problem, how can i fix it,thanks
system info as fellow:
python version: 3.12
system version:18.04.1-Ubuntu
yt-dlp version:latest
Provide verbose output that clearly demonstrates the problem
yt-dlp -vU <your command line>
)'verbose': True
toYoutubeDL
params instead[debug] Command-line config
) and insert it belowComplete Verbose Output
The text was updated successfully, but these errors were encountered: