A silly mistake on my side. All fixed.
Sorry to have bothered you, and thanks to all who have looked.
On Thursday, February 23, 2023 at 5:47:17 PM UTC+2 Yitzhak Weissman wrote:
> 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, ImageImportError: 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.
>
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyinstaller/3b4b87a9-4b15-4f26-b253-6e0e10063e69n%40googlegroups.com.