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.

TypeError: can't compare datetime.datetime to unicode

See original GitHub issue

Hello,

I got this after upgrading to v1.2.487.

2016-03-16 13:03 CRITICAL manager                       An unexpected crash has occurred. Writing crash report to /home/osmc/.flexget/crash_report.2016.03.16.130329038603.log. Please verify you are running the latest version of flexget by using "flexget -V" from CLI or by using version_checker plugin at http://flexget.com/wiki/Plugins/version_checker. You are currently using version 1.2.487
2016-03-16 13:03 CRITICAL task_queue                    BUG: Unhandled exception during task queue run loop.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/flexget/task_queue.py", line 47, in run
    self.current_task.execute()
  File "/usr/local/lib/python2.7/dist-packages/flexget/task.py", line 69, in wrapper
    return func(self, *args, **kw)
  File "/usr/local/lib/python2.7/dist-packages/flexget/task.py", line 576, in execute
    self.manager.db_cleanup()
  File "/usr/local/lib/python2.7/dist-packages/flexget/manager.py", line 833, in db_cleanup
    expired = self.persist.get('last_cleanup', datetime(1900, 1, 1)) < datetime.now() - DB_CLEANUP_INTERVAL
TypeError: can't compare datetime.datetime to unicode

Please fix this, thanks!

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
liiightcommented, Mar 16, 2016

It won’t work, since this was caused by a DB upgrade. Hang tight, a fix will probably come soon enough

0reactions
stevezaucommented, Mar 16, 2016

please try again

Read more comments on GitHub >

github_iconTop Results From Across the Web

can't compare datetime.datetime to unicode - Stack Overflow
I am getting TypeError:can't compare datetime.datetime to unicode. How do I convert my_input_tine and five_dys_ago into same format so I can ...
Read more >
[Answered]-can't compare datetime.datetime to unicode-django
I am getting TypeError:can't compare datetime.datetime to unicode. How do I convert my_input_tine and five_dys_ago into same format so I can compare?
Read more >
V12 TypeError: can't compare datetime.date to unicode
Anybody else getting this error and having a solution ? How to create reminder emails. Iulian_Olaru ...
Read more >
TypeError: can't compare datetime ... - Django's bug tracker
R267: When accessing /weblog/.... url, object_detail in date_based.py throws exception:
Read more >
can't compare datetime.datetime to datetime.date
I'm in the begining of django tutorial. I use python3.3 and django1.6. I get error: can't compare datetime ...
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