Closed
Description
Hi,
I constantly get a TypeError when trying to run gui.py.
Traceback (most recent call last):
File "/Applications/LaTeX-OCR-main/gui.py", line 266, in mouseReleaseEvent
img = ImageGrab.grab(bbox=(x1, y1, x2, y2), all_screens=True)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PIL/ImageGrab.py", line 42, in grab
im_resized = im.resize((right - left, bottom - top))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PIL/Image.py", line 2040, in resize
im = im.resize(size, resample, box)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PIL/Image.py", line 2062, in resize
return self._new(self.im.resize(size, resample, box))
TypeError: integer argument expected, got float
zsh: abort '/usr/local/bin/python3.8' '/Applications/LaTeX-OCR-main/gui.py'
phil@Air-von-Phil LaTeX-OCR-main %
Pix2Tex works, even though I get an unsupported hardware notification.
I'm on a M1 MacBook Air. Any help would be great.
Kind regards
Activity