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.

Issue with Windows version YouTube-DL.exe (Cannot see windows Fix)

See original GitHub issue

Checklist

  • [ x ] I’m reporting a broken site support
  • [ x ] I’ve verified that I’m running youtube-dl version 2021.06.06
  • [ x ] I’ve checked that all provided URLs are alive and playable in a browser
  • [ x ] I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
  • [ x ] I’ve searched the bugtracker for similar issues including closed ones

Verbose log

c:\SYS586>youtube-dl "ytsearch10:Elton John Dua Lipa" --get-id --get-title --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['ytsearch10:Elton John Dua Lipa', '--get-id', '--get-title', '--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2018.09.26
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: ffmpeg git-2020-04-26-1128aa8, ffprobe git-2020-04-26-1128aa8
[debug] Proxy map: {}
ERROR: query "Elton John Dua Lipa": Failed to parse JSON  (caused by ValueError('Expecting value: line 1 column 1 (char 0)',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpcaq35cl9\build\youtube_dl\extractor\common.py", line 871, in _parse_json
  File "C:\Python\Python34\lib\json\__init__.py", line 318, in loads
  File "C:\Python\Python34\lib\json\decoder.py", line 343, in decode
  File "C:\Python\Python34\lib\json\decoder.py", line 361, in raw_decode
ValueError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpcaq35cl9\build\youtube_dl\extractor\common.py", line 871, in _parse_json
  File "C:\Python\Python34\lib\json\__init__.py", line 318, in loads
  File "C:\Python\Python34\lib\json\decoder.py", line 343, in decode
  File "C:\Python\Python34\lib\json\decoder.py", line 361, in raw_decode
ValueError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpcaq35cl9\build\youtube_dl\YoutubeDL.py", line 792, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpcaq35cl9\build\youtube_dl\extractor\common.py", line 507, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpcaq35cl9\build\youtube_dl\extractor\common.py", line 2860, in _real_extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpcaq35cl9\build\youtube_dl\extractor\youtube.py", line 2684, in _get_n_results
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpcaq35cl9\build\youtube_dl\extractor\common.py", line 864, in _download_json
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpcaq35cl9\build\youtube_dl\extractor\common.py", line 848, in _download_json_handle
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpcaq35cl9\build\youtube_dl\extractor\common.py", line 875, in _parse_json
youtube_dl.utils.ExtractorError: query "Elton John Dua Lipa": Failed to parse JSON  (caused by ValueError('Expecting value: line 1 column 1 (char 0)',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Description

Hi, please see issue on windows, there is a fix for other platforms but I cannot see any fix for windows.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
lvqclcommented, Dec 16, 2021

[ x ] I’ve verified that I’m running youtube-dl version 2021.06.06 … [debug] youtube-dl version 2018.09.26

lol

1reaction
pukkandancommented, Dec 21, 2021

Yes

➤ where youtube-dl
D:\Programs\Terminal\youtube-dl.exe

➤ pip install https://github.com/ytdl-org/youtube-dl/archive/905d1d281ddfa5d183fc445010d350cefc6a58ec.zip
Collecting https://github.com/ytdl-org/youtube-dl/archive/905d1d281ddfa5d183fc445010d350cefc6a58ec.zip
  Downloading https://github.com/ytdl-org/youtube-dl/archive/905d1d281ddfa5d183fc445010d350cefc6a58ec.zip
     / 2.2 MB 544 kB/s
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: youtube-dl
  Building wheel for youtube-dl (setup.py) ... done
  Created wheel for youtube-dl: filename=youtube_dl-2021.12.17-py2.py3-none-any.whl size=1840680 sha256=6a43ca78aa3d0b4916bb627125fd4bbe24e87d9747ee98bda826b56c4dbbcaad
  Stored in directory: C:\Users\REDACTED\AppData\Local\Temp\pip-ephem-wheel-cache-9xbno022\wheels\9e\d1\8a\0fcad388f4d0c999cc72cb401f70970903996ec883ad9d2d07
Successfully built youtube-dl
Installing collected packages: youtube-dl
Successfully installed youtube-dl-2021.12.17

➤ where youtube-dl
D:\Programs\Portable\Python\Python10\Scripts\youtube-dl.exe
D:\Programs\Terminal\youtube-dl.exe

ofc, assuming “add to path” was ticked when installing python

Read more comments on GitHub >

github_iconTop Results From Across the Web

What to do now that "youtube-dl.exe -U" yields "ERROR: can't ...
Navigate to your Windows CA certstore, by loading the certmgr.msc ... info: youtube-dl -U == ERROR: can't find the current version.
Read more >
Fix, Download, and Update Youtube-dl.exe
Locate your Windows operating system version in the list of below "Download youtube-dl.exe Files". Click the appropriate "Download Now" button ...
Read more >
[Fix] Youtube-dl Error MSVCR100.dll not found in Windows
The youtube-dl.exe msvcr100.dll happens if the VC++ runtime libraries (especially msvcr100.dll) is missing from the computer. The command-line ...
Read more >
ERROR: can't find the current version. Please try again later.
Using Windows 7 x64. Every once in a while, youtube-dl fails to download a YouTube video. I've found that calling youtube-dl.exe -U to ......
Read more >
How to Install Youtube-DL on Windows - Dan Clowry
Restart your computer to force a refresh of the PATH. Double check that the path to Youtube-DL is correct. Make sure that youtube-dl.exe...
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