[Bug 806661] Re: [oneiric] IOError: decoder zip not available
Marc Tardif
marc.tardif at ubuntu.com
Wed Jul 6 21:00:39 UTC 2011
Modifying setup.py to know about the new architecture specific lib
directories seems to fix the problem. Here is an example diff where the
architecture is hard coded, I'm sure there's precedent in other packages
to patch the file properly:
=== modified file 'setup.py'
--- setup.py 2009-11-20 19:22:59 +0000
+++ setup.py 2011-07-06 20:56:04 +0000
@@ -147,6 +147,9 @@
add_directory(library_dirs, "/opt/local/lib")
add_directory(include_dirs, "/opt/local/include")
+ elif sys.platform == "linux2":
+ add_directory(library_dirs, "/usr/lib/x86_64-linux-gnu")
+
add_directory(library_dirs, "/usr/local/lib")
# FIXME: check /opt/stuff directories here?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-imaging in Ubuntu.
https://bugs.launchpad.net/bugs/806661
Title:
[oneiric] IOError: decoder zip not available
Status in “python-imaging” package in Ubuntu:
New
Bug description:
This is the content of the _imaging compiled module from Oneiric
desktop amd64 [20110624]:
>>> import _imaging
>>> dir(_imaging)
['__doc__', '__file__', '__name__', '__package__', 'bit_decoder', 'blend', 'convert', 'copy', 'crc32', 'draw', 'effect_mandelbrot', 'effect_noise', 'eps_encoder', 'fill', 'fli_decoder', 'font', 'getcodecstatus', 'getcount', 'gif_decoder', 'gif_encoder', 'hex_decoder', 'hex_encoder', 'jpeg_decoder', 'jpeg_encoder', 'jpeglib_version', 'linear_gradient', 'map_buffer', 'msp_decoder', 'new', 'open_ppm', 'outline', 'packbits_decoder', 'path', 'pcd_decoder', 'pcx_decoder', 'pcx_encoder', 'radial_gradient', 'raw_decoder', 'raw_encoder', 'sun_rle_decoder', 'tga_rle_decoder', 'tiff_lzw_decoder', 'wedge', 'xbm_decoder', 'xbm_encoder', 'zip_decoder', 'zip_encoder', 'zlib_version']
And, this is the content after I dist-upgrade:
['__doc__', '__file__', '__name__', '__package__', 'bit_decoder',
'blend', 'convert', 'copy', 'crc32', 'draw', 'effect_mandelbrot',
'effect_noise', 'eps_encoder', 'fill', 'fli_decoder', 'font',
'getcodecstatus', 'getcount', 'gif_decoder', 'gif_encoder',
'hex_decoder', 'hex_encoder', 'linear_gradient', 'map_buffer',
'msp_decoder', 'new', 'open_ppm', 'outline', 'packbits_decoder',
'path', 'pcd_decoder', 'pcx_decoder', 'pcx_encoder',
'radial_gradient', 'raw_decoder', 'raw_encoder', 'sun_rle_decoder',
'tga_rle_decoder', 'tiff_lzw_decoder', 'wedge', 'xbm_decoder',
'xbm_encoder']
Notice how the latter no longer contains the zip encoder and
decoder... this is causing some dependent projects to fail building,
like Launchpad itself, with the exception: IOError: decoder zip not
available
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-imaging/+bug/806661/+subscriptions
More information about the foundations-bugs
mailing list