zuruoke/watermark-removal

Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/PIL/Image.py", line 2847, in open fp.seek(0) AttributeError: 'str' object has no attribute 'seek'

flbfilhoUSP opened this issue · 1 comments

Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/PIL/Image.py", line 2847, in open
fp.seek(0)
AttributeError: 'str' object has no attribute 'seek'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "main.py", line 31, in
image = Image.open(args.image)
File "/usr/local/lib/python3.7/dist-packages/PIL/Image.py", line 2849, in open
fp = io.BytesIO(fp.read())
AttributeError: 'str' object has no attribute 'read'

Got same issue