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

ERROR: 'NoneType' object has no attribute 'format' #7367

Closed
9 of 11 tasks
JunkFood02 opened this issue Jun 21, 2023 · 5 comments
Closed
9 of 11 tasks

ERROR: 'NoneType' object has no attribute 'format' #7367

JunkFood02 opened this issue Jun 21, 2023 · 5 comments
Labels
bug Bug that is not site-specific regression Works in youtube-dl/older yt-dlp

Comments

@JunkFood02
Copy link

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Region

No response

Provide a description that is worded well enough to be understood

Probably a "regression" issue because it works on previous releases

Original reported on JunkFood02/Seal#878 by @ayesc9000

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

yt-dlp -vU https://twitter.com/EverythingOOC/status/1671088492095348738
[debug] Command-line config: ['-vU', 'https://twitter.com/EverythingOOC/status/1671088492095348738']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.06.21 [42f2d40b4] (pip)
[debug] Python 3.9.16 (CPython arm64 64bit) - macOS-13.2.1-arm64-arm-64bit (OpenSSL 1.1.1u  30 May 2023)
[debug] exe versions: ffmpeg 6.0 (setts), ffprobe 6.0, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2022.06.15, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.3
[debug] Loaded 1848 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version: stable@2023.06.21, Current version: stable@2023.06.21
yt-dlp is up to date (stable@2023.06.21)
ERROR: 'NoneType' object has no attribute 'format'
Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.9/site-packages/yt_dlp/YoutubeDL.py", line 1555, in wrapper
    return func(self, *args, **kwargs)
  File "/opt/homebrew/lib/python3.9/site-packages/yt_dlp/YoutubeDL.py", line 1631, in __extract_info
    ie_result = ie.extract(url)
  File "/opt/homebrew/lib/python3.9/site-packages/yt_dlp/extractor/common.py", line 705, in extract
    self.initialize()
  File "/opt/homebrew/lib/python3.9/site-packages/yt_dlp/extractor/common.py", line 609, in initialize
    username, password = self._get_login_info()
  File "/opt/homebrew/lib/python3.9/site-packages/yt_dlp/extractor/common.py", line 1335, in _get_login_info
    username, password = self._get_netrc_login_info(netrc_machine)
  File "/opt/homebrew/lib/python3.9/site-packages/yt_dlp/extractor/common.py", line 1300, in _get_netrc_login_info
    cmd = self.get_param('netrc_cmd', '').format(netrc_machine)
AttributeError: 'NoneType' object has no attribute 'format'
@JunkFood02 JunkFood02 added site-bug Issue with a specific website triage Untriaged issue labels Jun 21, 2023
@fireattack
Copy link
Contributor

Regression caused by db3ad8a

@pukkandan
Copy link
Member

pukkandan commented Jun 21, 2023

I'll make a quick-fix release soon. Till then, if you cannot use nightly, use --netrc-cmd "" as workaround.

@pukkandan pukkandan changed the title [Twitter] ERROR: 'NoneType' object has no attribute 'format' ERROR: 'NoneType' object has no attribute 'format' Jun 21, 2023
@pukkandan pukkandan added bug Bug that is not site-specific regression Works in youtube-dl/older yt-dlp and removed site-bug Issue with a specific website triage Untriaged issue labels Jun 21, 2023
@pukkandan pukkandan pinned this issue Jun 21, 2023
@antdude
Copy link

antdude commented Jun 21, 2023

FYI. Vimeo has this issue too as shown in my https://www.reddit.com/r/youtubedl/comments/14fddtl/unable_to_download_this_vimeo_video_on_two/ post. I was told this issue was related to this bug.

@alamir12
Copy link

alamir12 commented Jul 6, 2023

I hope to translate this location to Arabic language

@elhaddade
Copy link

Error

@Grub4K Grub4K unpinned this issue Aug 10, 2023
aalsuwaidi pushed a commit to aalsuwaidi/yt-dlp that referenced this issue Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug that is not site-specific regression Works in youtube-dl/older yt-dlp
Projects
None yet
Development

No branches or pull requests

6 participants