I have a script with the statement '
from PIL import ImageFont, ImageDraw, Image'.
The scripts runs fine in interpreter mode.
I have compiled it with pyinstaller ('--onedir'). Everything ran smoothly.
However, when I launched the 'exe', I got this error:
Traceback (most recent call last):
File "Palm.py", line 381, in <module>
File "<string>", line 1, in <module>
File "c:\Users\USER\OneDrive\Python\apps\fPitch\fPitch7.py", line 31, in calibrate
from PIL import ImageFont, ImageDraw, Image
ImportError: cannot import name 'ImageFont' from 'PIL' (C:\Users\USER\OneDrive\Python\apps\Palm\version 7\dist\Palm\PIL\__init__.pyc)
Any suggestion for a fix? Thanks.