woefe / ytcc

Command line tool to keep track of your favorite playlists on YouTube and many other places.
GNU General Public License v3.0
178 stars 20 forks source link

ytcc broken on debian #104

Closed myier closed 2 years ago

myier commented 2 years ago

Hi, I know I should report it on debian, but it's easier here... When launching ytcc with argument list or ls, it fails with the following error:

Traceback (most recent call last):
  File "/usr/bin/ytcc", line 33, in <module>
    sys.exit(load_entry_point('ytcc==2.1.0', 'console_scripts', 'ytcc.py')())
  File "/usr/share/ytcc/ytcc/cli.py", line 567, in main
    cli.main(standalone_mode=False)
  File "/usr/lib/python3/dist-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3/dist-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/decorators.py", line 73, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/share/ytcc/ytcc/cli.py", line 369, in list_ids
    list_videos_impl(ytcc, tags, since, till, playlists, ids, ["id"], watched, unwatched, order_by)
  File "/usr/share/ytcc/ytcc/cli.py", line 330, in list_videos_impl
    apply_filters(ytcc, tags, since, till, playlists, ids, watched, unwatched)
  File "/usr/share/ytcc/ytcc/cli.py", line 319, in apply_filters
    ytcc.set_date_end_filter(till)
  File "/usr/share/ytcc/ytcc/core.py", line 209, in set_date_end_filter
    self.date_end_filter = (end.timestamp(), True)
OverflowError: timestamp out of range for platform time_t

Package version is 2.1.0-2 on armhf (32-bit ARM, like the raspberry pi OS).

Thank you!

woefe commented 2 years ago

Can you check the output of the following two commands?

  1. ytcc list --till 2038-01-17
  2. ytcc list --till 2038-01-21

My assumptions is that the first one works and the second one crashes (Year 2038 Problem)

myier commented 2 years ago

You assumption is correct. I didn't know what to try, I guess I can use this option all the time. Thank you!

woefe commented 2 years ago

Fixed in 2.5.2