noteshrink
noteshrink copied to clipboard
Error: noteshrink.py:132: RuntimeWarning: invalid value encountered in divide
Hi, I receive this error trying to process an image received in whatsapp
:/usr/local/src/noteshrink$ python noteshrink.py /mnt/Large/whats0001.png
opened /mnt/Large/whats0001.png
getting palette...
noteshrink.py:132: RuntimeWarning: invalid value encountered in divide
saturation = delta.astype(np.float32) / cmax.astype(np.float32)
applying palette...
saving page0000.png...
done
running PDF command "convert page0000.png output.pdf"...
wrote output.pdf
You can download the image here: https://www.dropbox.com/s/6a0jwcz53mr0m70/whats0001.jpeg?dl=0
I'm using python 2.7.12 These are the dependencies versions:
Installed /usr/local/lib/python2.7/dist-packages/noteshrink-0.1.1-py2.7.egg
Processing dependencies for noteshrink==0.1.1
Searching for Pillow==3.1.2
Best match: Pillow 3.1.2
Pillow 3.1.2 is already the active version in easy-install.pth
Using /usr/lib/python2.7/dist-packages
Searching for scipy==0.17.0
Best match: scipy 0.17.0
scipy 0.17.0 is already the active version in easy-install.pth
Using /usr/lib/python2.7/dist-packages
Searching for numpy==1.11.0
Best match: numpy 1.11.0
numpy 1.11.0 is already the active version in easy-install.pth
Using /usr/lib/python2.7/dist-packages
Finished processing dependencies for noteshrink==0.1.1
Regards
This is only a warning -- not an error. Should be harmless. Can you verify that output is produced?
I also get this warning and yes, the output is produced.