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
>>>
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 "sample. jpg") /python- imaging- broken$ sudo dpkg -r libjpeg62 /python- imaging- broken$ python "sample. jpg") python2. 4/site- packages/ PIL/Image. py", line 1225, in rotate python2. 4/site- packages/ PIL/ImageFile. py", line 155, in load load_prepare( ) python2. 4/site- packages/ PIL/ImageFile. py", line 221, in load_prepare new(self. mode, self.size) python2. 4/site- packages/ PIL/Image. py", line 35, in __getattr__
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(
>>> im.rotate(90)
<Image.Image instance at 0xb7dd10ec>
>>>
suki2:~
(Reading database ... 22109 files and directories currently installed.)
Removing libjpeg62 ...
suki2:~
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(
>>> im.rotate(90)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/
self.load()
File "/usr/lib/
self.
File "/usr/lib/
self.im = Image.core.
File "/usr/lib/
raise ImportError("The _imaging C module is not installed")
ImportError: The _imaging C module is not installed
>>>