asweigart/pyscreeze

TypeError: '<' not supported between instances of 'str' and 'int'

iiasceri opened this issue · 3 comments

File "/Users/nick/Documents/antiAfkflorrio/venv/lib/python3.9/site-packages/pyscreeze/init.py", line 527, in _screenshot_osx:
solution:
So you need to click into the reported error file. Replace this code:

if tuple(PIL__version__) < (6, 2, 1):
with this code:

if tuple(map(int, PIL__version__.split("."))) < (6, 2, 1):
works for me

Thanks, this resolved the same bug for me.

Edit: Issue is potential duplicate of #98

cblte commented

And how do I update my version of it as a 0.1.30 is not released yet.

This fix is going into the 1.0.0 release, thanks!