qreader icon indicating copy to clipboard operation
qreader copied to clipboard

AttributeError: width

Open spaceone opened this issue 7 years ago • 0 comments

I get the following traceback for the image: iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAIAAABLixI0AAAA70lEQVR4nI1USxaEMAgrfb3/lZlF\nHUwToLLwKZ8QPjJGJu7u7vFOytCQLLWZGaFU+ShqNfFbGRoz67Oua2aFqGRWBjOLtBVxktV4YHVB\nEGl+4ovzqp5JKaXhz+I7hTXO7qbBARrToAq2THTVJcC6KpoYe2x5uKoGTZiAnfRHwXcaXArk7pNA\ntVKdHfXrNTWDVxSt/aCSVpfSUbIY+GIhF2JUNbShn/gRwa66vVjNQus2pVeIlGWqqxV70t3VFKJi\n8Wj67mj+BGIMd7/f1QE/LBGkZpV3dQtd16BGd3H7lHc1/CIGcf08sJ2k/aJPXcYfgR/k3sjUolAA\nAAAASUVORK5CYII=

  File "<stdin>", line 1, in <module>
  File "qreader/api.py", line 26, in read
    return QRDecoder(data).get_first()
  File "qreader/decoder.py", line 21, in get_first
    return self._decode_next_message()
  File "qreader/decoder.py", line 30, in _decode_next_message
    mode = self.scanner.read_int(4)
  File "qreader/scanner.py", line 60, in read_int
    self.read()
  File "qreader/scanner.py", line 33, in read
    self.read_info()
  File "qreader/scanner.py", line 91, in read_info
    info.canvas = self.get_image_borders()
  File "qreader/scanner.py", line 118, in get_image_borders
    max_dist = min(self.image.width, self.image.height)
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 608, in __getattr__
    raise AttributeError(name)

spaceone avatar Aug 31 '18 13:08 spaceone