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

NameError: name 'parse_qs' is not defined #28780

Closed
ousta2 opened this issue Apr 17, 2021 · 3 comments
Closed

NameError: name 'parse_qs' is not defined #28780

ousta2 opened this issue Apr 17, 2021 · 3 comments

Comments

@ousta2
Copy link

ousta2 commented Apr 17, 2021

No description provided.

@Vouivre
Copy link

Vouivre commented Apr 18, 2021

@dstftw

I have exactly the same problem. I will report it with more information. Could you reopen this issue or I create a new one ?
I'll report it later today.

@Vouivre
Copy link

Vouivre commented Apr 20, 2021

It seems to be the same problem as reported here.

I assume this commit introduced the error. With the latest version, 2021.04.17 I get the error:

 youtube-dl https://www.youtube.com/watch\?v=3WA34hxlejg
Traceback (most recent call last):
  File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/bin/youtube-dl/__main__.py", line 19, in <module>
  File "/usr/bin/youtube-dl/youtube_dl/__init__.py", line 475, in main
  File "/usr/bin/youtube-dl/youtube_dl/__init__.py", line 465, in _real_main
  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2059, in download
  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 791, in extract_info
  File "/usr/bin/youtube-dl/youtube_dl/extractor/lazy_extractors.py", line 7120, in suitable
NameError: name 'parse_qs' is not defined

I have tested with youtube-dl 2021.04.07 and it works fine. Perhpas some infos on my system:

uname -a 
Linux HOSTNAME 5.7.12 #7 SMP Wed Oct 21 07:21:26 UTC 2020 x86_64 GNU/Linux

And the version of python

python --version
Python 3.9.4

Following the guidelines to report a bug, there is a closed issue related with mine. But it was not solved because it was incomplete. So should we reopen it ?

@xibr
Copy link

xibr commented Apr 20, 2021

It seems to be the same problem as reported here.

The problem that you mentioned is for youtubedl-android and it has been resolved in yausername/youtubedl-lazy#8 and it works without any problems.

@dstftw dstftw reopened this Apr 20, 2021
@dstftw dstftw closed this as completed in 3229030 Apr 20, 2021
github-actions bot added a commit to hellopony/youtube-dl that referenced this issue Apr 21, 2021
* https://github.com/ytdl-org/youtube-dl:
  [youtube] Remove unused code
  [go] Improve video id extraction (closes ytdl-org#25207, closes ytdl-org#25216, closes ytdl-org#26058)
  [test_execution] Add test for lazy extractors (refs ytdl-org#28780)
  [test_youtube_misc] Move YoutubeIE.extract_id test into separate module
  [youtube] Fix lazy extractors (closes ytdl-org#28780)
  [bbc] Extract full description from __INITIAL_DATA__ (refs ytdl-org#28774)
  [bbc] Extract description and timestamp from __INITIAL_DATA__ (ytdl-org#28774)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants