![]() |
|
|||||||
| OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
![]() |
|
|
Thread Tools | Display Modes |
|
|||
|
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]#
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 >>> 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]#
|
|
|||
|
I would think the simple solution is to install X sets. Then python's Tkinter will be installed and you can use pkg_add to install py-Imaging. You don't need to run X server and to have 'machdep.allowaperture=0' in your /etc/sysctl.conf which will prevent X server from running.
|
|
||||
|
See FAQ 4.11 for guidance on how to install the xbase48.tgz fileset for your missing X11 libraries.
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
I thout that there would be another way to install it without X "like imagemagick-no-x11". Anyway it's solved by installing X. bmk1st & jggimi thank you guys
|
|
|||
|
A lot of software requires libraries that are distributed with X these days, it's unfortunate.. but it's difficult to track and maintain all the inter-dependencies.
The X sets add only a couple hundred megabytes, it's not worth avoiding them. |
|
|||
|
@qmemo : Hi qmemo : ) , isn't a small world? :{P
@ BSDfan666 : You are right, I've installed all x* sets so that I will not face X problems in future |
|
|||
|
Note that Section 15.4.1 states that building ports without X installed is not supported.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 10:24 PM |
| scribes configure error : python + D-bus | nORKy | FreeBSD Ports and Packages | 0 | 7th October 2008 02:25 PM |