Traceback (most recent call last):


 "/home/pi/Documents/printer.py", line 3, in <module>

p.qr("This is a test.")


 "/usr/local/lib/python3.7/dist-packages/escpos/escpos.py", line 120, in qr

self._convert_image(im)


 "/usr/local/lib/python3.7/dist-packages/escpos/escpos.py", line 74, in _convert_image

for i in range(im_border[0]):
TypeError: 'float' object cannot be interpreted as an integer

Traceback (most recent call last):


 "/home/letsperf/.local/lib/python2.7/site-packages/keras/utils/data_utils.py", line 635, in data_generator_task

generator_output = next(self._generator)


 "model.py", line 1604, in data_generator

use_mini_mask=config.USE_MINI_MASK)


 "model.py", line 1169, in load_image_gt

padding=config.IMAGE_PADDING)


 "utils.py", line 401, in resize_image

image, (round(h * scale), round(w * scale)))


 "/usr/lib/python2.7/dist-packages/scipy/misc/pilutil.py", line 487, in imresize

imnew = im.resize(size, resample=func[interp])


 "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 1538, in resize

return self._new(self.im.resize(size, resample))
TypeError: integer argument expected, got float
