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.

'<' not supported between instances of 'float' and 'str' and --throttled-rate error after update?

See original GitHub issue

Checklist

  • I’m reporting a bug unrelated to a specific site
  • I’ve verified that I’m running yt-dlp version 2022.03.08.1. (update instructions)
  • I’ve checked that all provided URLs are alive and playable in a browser
  • I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
  • I’ve searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I’ve read the guidelines for opening an issue

Description

After update I get error

‘<’ not supported between instances of ‘float’ and ‘str’

I found out that it is somewhat related to --throttled-rate setting? When I remove it I can download from YT no issues If I leave it, I get the following message

[download] 0.0% of 714.94MiB at 499.98KiB/s ETA 24:24ERROR: ‘<’ not supported between instances of ‘float’ and ‘str’

Verbose log

Microsoft Windows [Version 6.1.7601]

>yt-dlp https://www.youtube.com/watch?v=XUp9pe1T-UE --throttled-rate 999k
[youtube] XUp9pe1T-UE: Downloading webpage
[youtube] XUp9pe1T-UE: Downloading android player API JSON
[info] XUp9pe1T-UE: Downloading 1 format(s): 571+251
WARNING: Requested formats are incompatible for merge and will be merged into mkv
[download] Destination: 8k VIDEOS _ Beauty of Nature 8K (60 FPS) HDR  UltraHD  _ Sony Demo [XUp9pe1T-UE].f571.mp4
[download]   0.0% of 505.86MiB at 90.90KiB/s ETA 01:34:58ERROR: '<' not supported between instances of 'float' and 'str'

yt>

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
pukkandancommented, Mar 9, 2022

It’s a typo in d1b5f70bc9f9dcda1544b88b42ecc25f7f7aa1c7. You can roll back to https://github.com/yt-dlp/yt-dlp/releases/tag/2022.03.08 for the time-being as a workaround. The 2 releases are almost identical, so it shouldn’t be an issue

2reactions
mkarakicommented, Mar 17, 2022

@madindehead I think you can rollback with following command

pip install -U yt-dlp==2022.03.08
Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError > not supported between instances of float and str
The Python "TypeError: '>' not supported between instances of 'float' and 'str'" occurs when we use a comparison operator between values of type ......
Read more >
TypeError: '<' not supported between instances of 'str' and ...
The error is indicating that there are strings in the dataframe. I'm not clear on why you're getting that error, since the elements...
Read more >
Getting "TypeError: '>' not supported between instances of 'str ...
Getting “TypeError: '>' not supported between instances of 'str' and 'float'” ... I am getting the following error for this particular code:.
Read more >
' not supported between instances of 'str' and 'int' - Java2Blog
Python throws a TypeError when an operation is carried out on an incorrect/unsupported object type. For example, using the < (less than) operator...
Read more >
Syntax Error on Ray RAY TUNE['<' not supported between ...
I got this error : TypeError: '<' not supported between instances of 'Float' and 'float' It's raised by config[“lr”] in “o…
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