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: '<' not supported between instances of 'int' and 'str'

See original GitHub issue

I constantly get the following error in 2.5 and not sure how to resolve

Loading config: /home/loz/.tvnamer.json
####################
# Starting tvnamer
# Found 4 episodes
Traceback (most recent call last):
  File "/usr/local/bin/tvnamer", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/dist-packages/tvnamer/main.py", line 436, in main
    tvnamer(paths = sorted(args))
  File "/usr/local/lib/python3.6/dist-packages/tvnamer/main.py", line 317, in tvnamer
    episodes_found.sort(key = lambda x: x.sortable_info())
TypeError: '<' not supported between instances of 'int' and 'str'

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
dbrcommented, Nov 9, 2020

Released tvnamer 3.0.2 with this fix backported!

1reaction
dbrcommented, Sep 20, 2020

Ah yeh that wasn’t clear - it’s fixed in the latest development code, which will become tvnamer 4.0 (which will support Python 3.x only) which I hope to release sometime in the next couple of weeks

I might do a release of the current tvnamer 3.x release branch with this change backported sometime this week

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: '<=' not supported between instances of 'str' and 'int'
You are getting the input from the console as a string, so you must cast that input string to an int object in...
Read more >
TypeError: < not supported between instances of str and int
The Python "TypeError: '<' not supported between instances of 'str' and 'int'" occurs when we use a comparison operator between values of type...
Read more >
'>' not supported between instances of 'str' and 'int'
The “typeerror: '>' not supported between instances of 'str' and 'int'” error is raised when you try to compare a string to an...
Read more >
Typeerror: '<' not supported between instances of 'str' and 'int ...
Unfortunately, you must be careful with Python because the Typeerror: '<' not supported between instances of 'str' and 'int' will appear extremely easily....
Read more >
' not supported between instances of 'str' and 'int' - Java2Blog
Introduction. Problem: How to fix – TypeError: '<' not supported between instances of 'str' and 'int' in Python ...
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