[Image-SIG] compile problem

Alec Bennett wrybread at gmail.com
Thu Mar 23 11:41:39 CET 2006


I'm trying to compile a module (VideoCapture.py) that uses a PIL font, and
after compiling (both with PY2EXE and Pyinstaller) I get an error "cannot
find font file".

The offending line is:

self.normalfont = ImageFont.load_path('helvetica-10.pil')
self.boldfont = ImageFont.load_path('helvB08.pil')

I've confirmed that both fonts exist, and the script works fine when
uncompiled.

I tried putting the font files in the same directory as the compiled EXE,
but no improvement.

Any help humungously appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/image-sig/attachments/20060323/288f4ca8/attachment.html 


More information about the Image-SIG mailing list