ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> image-sig
image-sig
[Image-SIG] compile problem
by Alec Bennett other posts by this author
Mar 30 2006 1:27PM messages near this date
[Image-SIG] Installing PIL into windows ZOPE | [Image-SIG] Image averaging
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.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved