asweigart / pyscreeze

PyScreeze is a simple, cross-platform screenshot module for Python 2 and 3.
BSD 3-Clause "New" or "Revised" License
194 stars 96 forks source link

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

Closed iiasceri closed 1 year ago

iiasceri commented 1 year ago

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(PILversion) < (6, 2, 1): with this code:

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

rnbrady commented 1 year ago

Thanks, this resolved the same bug for me.

Edit: Issue is potential duplicate of #98

cblte commented 1 year ago

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

asweigart commented 1 year ago

This fix is going into the 1.0.0 release, thanks!