Results 1 to 2 of 2
I tried to pkg_add py-Imaging in order to install python Imaging on OpenBSD 4.8 but I got this erorr massege :
Code:
[OpenBSD]#
[OpenBSD]#
[OpenBSD]# python --version
Python 2.5.4
[OpenBSD]#
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-06-2011 #1Just Joined!
- Join Date
- Jul 2010
- Posts
- 26
Problem: Installing python image on OpenBSD whit _imagingft C module
I tried to pkg_add py-Imaging in order to install python Imaging on OpenBSD 4.8 but I got this erorr massege :
I believe that because I haven't installed X, so I decided to download Imaging-1.1.7, I've installed it succsesfuly:Code:[OpenBSD]# [OpenBSD]# [OpenBSD]# python --version Python 2.5.4 [OpenBSD]# [OpenBSD]# [OpenBSD]# pkg_add -ivv py-Imaging Ambiguous: choose package for py-Imaging a 0: <None> 1: py-Imaging-1.1.6p0-python2.4 2: py-Imaging-1.1.6p0-python2.5 Your choice: 2 parsing py-Imaging-1.1.6p0-python2.5 Direct dependencies for py-Imaging-1.1.6p0-python2.5 resolve to: python-tkinter-2.5.4p5 tk-8.4.19p0 jpeg-8b python-2.5.4p5 (todo: python-tkinter-2.5.4p5 tk-8.4.19p0) parsing python-tkinter-2.5.4p5 Direct dependencies for python-tkinter-2.5.4p5 resolve to: tk-8.4.19p0 tcl-8.4.19 python-2.5.4p5 (todo: tk-8.4.19p0) parsing tk-8.4.19p0 Direct dependencies for tk-8.4.19p0 resolve to: tcl-8.4.19 Can't install tk-8.4.19p0 because of libraries |library X11.13.0 not found | not found anywhere |library pthread-stubs.0.0 not found | not found anywhere |library xcb.2.1 not found | not found anywhere Direct dependencies for tk-8.4.19p0 resolve to: tcl-8.4.19 Full dependency tree is tcl-8.4.19 Direct dependencies for python-tkinter-2.5.4p5 resolve to: tk-8.4.19p0 tcl-8.4.19 python-2.5.4p5 Can't use string ("tk-8.4.19p0") as a HASH ref while "strict refs" in use at /usr/libdata/perl5/OpenBSD/PkgAdd.pm line 883. [OpenBSD]# [OpenBSD]#
but when I run my script, I get this error :Code:[OpenBSD]# python Python 2.5.4 (r254:67916, Aug 9 2010, 08:57:51) [GCC 4.2.1 20070719 ] on openbsd4 Type "help", "copyright", "credits" or "license" for more information. >>> import Image >>> import ImageFont >>> import ImageDraw >>>
Does anyone know how to solve this problem ?Code:[OpenBSD]# [OpenBSD]# cat script.py | grep import import Image import ImageFont import ImageDraw import random import time,sys [OpenBSD]# [OpenBSD]# [OpenBSD]# ./script.py Traceback (most recent call last): File "./script.py", line 64, in <module> Main() File "./script.py", line 52, in Main font_image = ImageFont.truetype(FONT_N, FONT_S) File "/usr/local/lib/python2.5/site-packages/PIL/ImageFont.py", line 218, in truetype return FreeTypeFont(filename, size, index, encoding) File "/usr/local/lib/python2.5/site-packages/PIL/ImageFont.py", line 134, in __init__ self.font = core.getfont(file, size, index, encoding) File "/usr/local/lib/python2.5/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 [OpenBSD]# [OpenBSD]#
- 04-08-2011 #2Just Joined!
- Join Date
- Jul 2010
- Posts
- 26
It's solved by installing X


Reply With Quote
