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

TypeError: unsupported operand type(s) for -: 'float' and 'str' #215

Open
dsg-sudo opened this issue Aug 20, 2024 · 4 comments
Open

TypeError: unsupported operand type(s) for -: 'float' and 'str' #215

dsg-sudo opened this issue Aug 20, 2024 · 4 comments

Comments

@dsg-sudo
Copy link

I am getting this error in "Subscriptions" page for a few days.

Error

@user234683
Copy link
Owner

OS and Python version?

Could you insert this here after line 172 of youtube/subscriptions.py:
print(db_video)

image

Then paste the last line of the console output when you get the error

@dsg-sudo
Copy link
Author

this is the last line of the console output:
"TabError: inconsistent use of tabs and spaces in indentation"

after this error I replace tabs with regular spaces and on console error dissappeared. But in browser still there.

I am using NixOS and python version "3.12". I created a container based on #189 this issue and running yt-local in container.

I played around a bit util.py, settings.py but in fact I don't remember that I edit subscription.py. So I have no idea abut this indentation problem. Thanks for help.

@user234683
Copy link
Owner

Use spaces, not tabs. You can copy and paste the spaces verbatim:
print(db_video)
I need this output from the console. The print statement is not supposed to solve the problem. It's just so I can see what the problem is. The print statement prints to the console, not the error page. I need the output from the console, as shown:
image
Redact as needed

I played around a bit util.py, settings.py but in fact I don't remember that I edit subscription.py

Only edit subscription.py

@dsg-sudo
Copy link
Author

Ok. This is the console output after adding "print" statement:

Snapshot_2024-08-22_08-36-39

As I understand this "TRUMPETSIZZLE" channel is the problem. After I unsubscribed, the "subscriptions" page turned to normal. Thanks for time and help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants