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.

Can't use yt-dl , _ssl not found

See original GitHub issue

Here is the full error:


JsException(PythonError: Traceback (most recent call last): File "/lib/python3.10/site-packages/_pyodide/_base.py"
, line 429, in eval_code .run(globals, locals) File "/lib/python3.10/site-packages/_pyodide/_base.py"
, line 300, in run coroutine = eval(self.code, globals, locals) File ""
, line 1, in File "/lib/python3.10/site-packages/youtube_dl/__init__.py",
line 15, in from .options import ( File "/lib/python3.10/site-packages/youtube_dl/options.py", line 8, in from .downloader.external import list_external_downloaders File "/lib/python3.10/site-packages/youtube_dl/downloader/__init__.py"
, line 3, in from .common import FileDownloader File "/lib/python3.10/site-packages/youtube_dl/downloader/common.py"
, line 10, in from ..utils import ( File "/lib/python3.10/site-packages/youtube_dl/utils.py", 
line 30, in import ssl File "/lib/python3.10/ssl.py", line 98, in import _ssl # 
if we can't import it, let the error propagate ModuleNotFoundError: No module named '_ssl' )

When trying to use Youtube-dl

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
verhulstmcommented, May 3, 2022

hi,

what you found might be related to this

https://github.com/pyscript/pyscript/issues/91

0reactions
marimeirelescommented, Sep 29, 2022

Yes. It’s a requests issue, you can try to workaround using https://docs.pyscript.net/latest/howtos/http-requests.html Feel free to ask for help if you get stuck!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Youtubedl CERTIFICATE_VERIFY_FAILED - python
I use youtube-dl with ffmeg to download some videos from other sites, which I know are legit, so I use this switch oftem....
Read more >
SSL certificate verify failed #4816 - ytdl-org/youtube-dl - GitHub
After installing python3 and python 2 with nix (on OSX), with the latest version of youtube-dl --no-check-certificate seems to be fixed. If you ......
Read more >
"Certificate verify failed" when downloading from funimation
It looks like you are posting about the youtube-dl error, " certificate verify failed ". As an immediate workaround, you can ignore certificate...
Read more >
Error downloading YouTube video using youtube-dl
For some reason youtube-dl has cert issues. I have always found a solution by using --no-check-certificate argument. From the man page:
Read more >
Can't download YouTube videos [duplicate] - Ask Ubuntu
The protocol it might be violating might just be SSL, try using the --no-check-certificate or --prefer-insecure flags: youtube-dl ...
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