DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 7th April 2011
Barakat Barakat is offline
New User
 
Join Date: Apr 2011
Posts: 3
Default Installing python imaging on OpenBSD ? [error _imagingft C module]

Hi all,

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]# 
[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]#
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]# 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
>>>
but when I run my script, I get this error :

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]#
Does anyone know how to solve this problem ?
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Python/GTK/Cairo Problems (ImportError: No module named cairo) whetphish FreeBSD General 2 24th June 2009 11:06 PM
Installing a kernel module afterwards bram85 FreeBSD Installation and Upgrading 1 20th April 2009 11:38 PM
error while installing apache Nk2Network OpenBSD Packages and Ports 4 13th April 2009 08:45 PM
pam_chauthtok(): error in service module KenJackson FreeBSD Installation and Upgrading 1 26th October 2008 11:24 PM
scribes configure error : python + D-bus nORKy FreeBSD Ports and Packages 0 7th October 2008 02:25 PM


All times are GMT. The time now is 11:22 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick