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

ModuleNotFoundError: No module named 'youtube_dl.extractor.lazy_extractors' #17

Open
3 tasks done
rivke41levp656 opened this issue Dec 31, 2020 · 2 comments
Open
3 tasks done
Labels
question Further information is requested

Comments

@rivke41levp656
Copy link

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Hello,
I tried the latest commit 469493e via the following process:

Download source --> cd --> type make --> pip install -r requirements.txt
--> run python youtube-dl ...

This results in the following error:

Traceback (most recent call last):
  File "youtube-dl/youtube_dl/extractor/__init__.py", line 4, in <module>
ModuleNotFoundError: No module named 'youtube_dl.extractor.lazy_extractors'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "youtube-dl/__main__.py", line 16, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "youtube-dl/youtube_dl/__init__.py", line 43, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "youtube-dl/youtube_dl/extractor/__init__.py", line 9, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "youtube-dl/youtube_dl/extractor/extractors.py", line 45, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "youtube-dl/youtube_dl/extractor/anvato.py", line 12, in <module>
ModuleNotFoundError: No module named 'youtube_dl.extractor.anvato_token_generator'

Perhaps this happens because I haven't fully installed this fork, but following the above process works without issue on release 2020.08.24m.

I'm trying to use this fork as a python script because I want to to have the original youtube-dl installed simultaneously. I have two questions then

  1. how to fix this error?
  2. how to install this fork without overwriting the original ytdl?
@rivke41levp656 rivke41levp656 added the question Further information is requested label Dec 31, 2020
@scribbledlines
Copy link

In the mean time, I found that using 84f19c0 works splendidly for my needs; this is just before the Avanto code was committed.

@pukkandan
Copy link

The No module named 'youtube_dl.extractor.lazy_extractors' error is expected and is properly handled. The real error here is this:

  File "youtube-dl/__main__.py", line 16, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "youtube-dl/youtube_dl/__init__.py", line 43, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "youtube-dl/youtube_dl/extractor/__init__.py", line 9, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "youtube-dl/youtube_dl/extractor/extractors.py", line 45, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "youtube-dl/youtube_dl/extractor/anvato.py", line 12, in <module>

pukkandan added a commit to yt-dlp/yt-dlp that referenced this issue Jan 28, 2021
This prevents "ModuleNotFoundError: No module named 'youtube_dl.extractor.lazy_extractors'" from appearing in the traceback

Related: animelover1984/youtube-dl#17 (comment)
animelover1984 pushed a commit that referenced this issue Jul 4, 2021
animelover1984 pushed a commit that referenced this issue Jul 4, 2021
animelover1984 pushed a commit that referenced this issue Jul 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants