diego1996 / pythonxy

Automatically exported from code.google.com/p/pythonxy
0 stars 0 forks source link

PIL: ImportError("The _imagingft C module is not installed") #213

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Bonjour,
I use Pythonxy 2.6.5.3 on WinXP with the recommended components plus a lot of 
manually selected components. Pythonxy was installed as regular user in 
D:\pythonxy  and Python in C:\Python26.

The following steps reproduce the problem:
-------------------------------------------
from PIL import Image, ImageDraw, ImageFilter, ImageFont
im = Image.new('RGB', (300,300), 'white')
draw = ImageDraw.Draw(im)
font = ImageFont.truetype('arial.ttf', 14)
draw.text((100,100), 'test text', font = font)
(We can also directly try: import _imagingft)

This gives:
-------------
ImportError: The _imagingft C module is not installed

File "D:\Python26\Lib\site-packages\PIL\ImageFont.py", line 34, in getattr 
raise ImportError("The _imagingft C module is not installed")

Additional information
-----------------------
The problem may be due to the compilation history:
http://stackoverflow.com/questions/4011705/python-the-imagingft-c-module-is-not-
installed

For myself I solved the problem with another version of PIL binaries downloaded 
from 
http://www.lfd.uci.edu/~gohlke/pythonlibs/

Thanks,

Denis

Original issue reported on code.google.com by denis.st...@mtq.gouv.qc.ca on 2 Nov 2010 at 3:08

GoogleCodeExporter commented 9 years ago
Please try:
http://code.google.com/p/pythonxy/downloads/detail?name=PIL-1.1.7.1_py26.exe&can
=2&q= 
and report any issues encountered

Original comment by grizzly.nyo on 28 Jan 2011 at 8:46

GoogleCodeExporter commented 9 years ago

Original comment by grizzly.nyo on 3 Feb 2011 at 9:25