Comment 4 for bug 75021

Revision history for this message
.:. brainsik (brainsik) wrote : Re: critical missing dependencies (edgy)

Here's an example of how removing libjpeg62 breaks python-imaging. The main problem is libjpeg62 was a dependency in dapper, but is not in edgy, so upgrading via aptitude causes libjpeg62 to be removed as "unused". This broke the web app running on the server being upgraded.

suki2:~/python-imaging-broken$ python
Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02)
[GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Image
>>> im = Image.open("sample.jpg")
>>> im.rotate(90)
<Image.Image instance at 0xb7dd10ec>
>>>
suki2:~/python-imaging-broken$ sudo dpkg -r libjpeg62
(Reading database ... 22109 files and directories currently installed.)
Removing libjpeg62 ...
suki2:~/python-imaging-broken$ python
Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02)
[GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Image
>>> im = Image.open("sample.jpg")
>>> im.rotate(90)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.4/site-packages/PIL/Image.py", line 1225, in rotate
    self.load()
  File "/usr/lib/python2.4/site-packages/PIL/ImageFile.py", line 155, in load
    self.load_prepare()
  File "/usr/lib/python2.4/site-packages/PIL/ImageFile.py", line 221, in load_prepare
    self.im = Image.core.new(self.mode, self.size)
  File "/usr/lib/python2.4/site-packages/PIL/Image.py", line 35, in __getattr__
    raise ImportError("The _imaging C module is not installed")
ImportError: The _imaging C module is not installed
>>>