|
Post by japeral on Jun 3, 2014 6:16:07 GMT -8
Gd2asset is throwing the following error when a try to attach a .TTF font:
Traceback (most recent call last):
File "c:\python27\scripts\gd2asset", line 5, in <module>
pkg_resources.run_script('gameduino2==0.1.2', 'gd2asset')
File "build\bdist.win32\egg\pkg_resources.py", line 534, in run_script
File "build\bdist.win32\egg\pkg_resources.py", line 1441, in run_script
File "c:\python27\lib\site-packages\gameduino2-0.1.2-py2.7.egg\EGG-INFO\scripts\gd2asset", line 121, in <module>
File "build\bdist.win32\egg\gameduino2\prep.py", line 426, in make
File "c:\python27\lib\site-packages\gameduino2-0.1.2-py2.7.egg\EGG-INFO\scripts\gd2asset", line 92, in addall
File "c:\python27\lib\site-packages\gameduino2-0.1.2-py2.7.egg\EGG-INFO\scripts\gd2asset", line 46, in ttf
File "build\bdist.win32\egg\gameduino2\prep.py", line 263, in load_ttf
File "c:\python27\lib\site-packages\PIL\ImageFont.py", line 218, in truetype
return FreeTypeFont(filename, size, index, encoding)
File "c:\python27\lib\site-packages\PIL\ImageFont.py", line 134, in __init__
self.font = core.getfont(file, size, index, encoding)
File "c:\python27\lib\site-packages\PIL\ImageFont.py", line 34, in __getattr__
raise ImportError("The _imagingft C module is not installed")
ImportError: The _imagingft C module is not installed Could someone help me?
|
|
|
Post by jamesbowman on Jun 3, 2014 6:22:40 GMT -8
|
|
|
Post by japeral on Jun 3, 2014 6:40:33 GMT -8
I try to install this precompiled version of PIL with truetypefont support: "Pillow‑2.4.0.win32‑py2.7.exe"
It works if I put only a .ttf font in asset. If I put a .jpg image and .ttf font it throws the following error:
Traceback (most recent call last):
File "c:\python27\scripts\gd2asset", line 5, in <module>
pkg_resources.run_script('gameduino2==0.1.2', 'gd2asset')
File "build\bdist.win32\egg\pkg_resources.py", line 534, in run_script
File "build\bdist.win32\egg\pkg_resources.py", line 1441, in run_script
File "c:\python27\lib\site-packages\gameduino2-0.1.2-py2.7.egg\EGG-INFO\scripts\gd2asset", line 121, in <module>
File "build\bdist.win32\egg\gameduino2\prep.py", line 426, in make
File "c:\python27\lib\site-packages\gameduino2-0.1.2-py2.7.egg\EGG-INFO\scripts\gd2asset", line 92, in addall
File "c:\python27\lib\site-packages\gameduino2-0.1.2-py2.7.egg\EGG-INFO\scripts\gd2asset", line 42, in image
File "c:\python27\lib\site-packages\pil\Image.py", line 2126, in open
% (filename if filename else fp))
IOError: cannot identify image file 'xxx.jpg'
Seems Pillow precompiled version does .jpg support is missing.
I will keep searching for solution.
Thank you for quick response James.
|
|
|
Post by japeral on Jun 4, 2014 0:03:47 GMT -8
|
|
|
Post by japeral on Jun 4, 2014 22:25:33 GMT -8
I can not solve my problem. I can not compile PIL source to enable FREETYPE2 support.
Launching PIL 1.1.7 Selftest .py file I obtain the following:
C:\Imaging>c:\python27\python.exe selftest.py
--------------------------------------------------------------------
PIL 1.1.7 TEST SUMMARY
--------------------------------------------------------------------
Python modules loaded from .\PIL
Binary modules loaded from c:\python27\lib\site-packages\pil-1.1.7-py2.7-win32.egg
--------------------------------------------------------------------
*** PIL CORE support not installed
*** TKINTER support not installed
--- JPEG support ok
--- ZLIB (PNG/ZIP) support ok
*** FREETYPE2 support not installed
*** LITTLECMS support not installed
--------------------------------------------------------------------
Running selftest:
--- 57 tests passed. In fact FREETYPE2 support is NOT INSTALLED!!!
How to solve this in Windows?
Thank you very much.
|
|