When I run my code from Pyinstaller the tiff reader works fine. After freezing using Pyinstaller I get the following warning:
UserWarning: ImportErr
I think muggy is right about he weirdness with __package__ causing the issue here. I haven't tracked down the exact reason for the fix, but this seems to be resolved using the latest update to pyinstaller. Check your version with:
→ pyinstaller --version
3.2.1
and upgrade with
→ pip3 install --upgrade pyinstaller
The update was only made on January 15, 2017 so this wouldn't have helped when you originally asked, but it sure helps now.