TypeError: '<' not supported between instances of 'int' and 'str'
See original GitHub issueI 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:
- Created 5 years ago
- Reactions:1
- Comments:12 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Released tvnamer 3.0.2 with this fix backported!
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