alchem0x2A / py-wdf-reader

Python package for read-only accessing the wdf Raman spectroscopy from Ranishaw WiRE software
MIT License
40 stars 15 forks source link

Mapping error: 'JpegImageFile' object has no attribute 'getexif' #36

Closed SandLabore closed 3 years ago

SandLabore commented 3 years ago

Hallo,

thank you very much for all your effort in programming the wdf reader. I have a problem in opening files based on a mapping. In this case, the following error occurs: 'JpegImageFile' object has no attribute 'getexif'. I'm using files which were generated with Wire 4.3 to 5.2, and Python 3.7 Environment in Windows. Single spectra and depth files are working fine.

Best regards, SandLabore

alchem0x2A commented 3 years ago

I believe the issue is similar to https://github.com/Tessellate-Imaging/monk_v1/issues/60 which can be a bug in the Pillow package. I'm not sure whether that's caused by implementation on windows or not but you may try if downgrading the pillow version works.

SandLabore commented 3 years ago

I tried to solve the problem, but only destroyed my Anaconda. However, after reinstallation with everything in the newest version, it is now working :-) Thank you for your fast answer.

alchem0x2A commented 3 years ago

you're welcome!