python-imaging broken in raring
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Phatch |
New
|
Undecided
|
Unassigned | ||
comix (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Raring |
Invalid
|
Undecided
|
Unassigned | ||
gwibber (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Raring |
Invalid
|
Undecided
|
Unassigned | ||
ocrfeeder (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Raring |
Invalid
|
Undecided
|
Unassigned | ||
phatch (Ubuntu) |
Confirmed
|
High
|
Unassigned | ||
Raring |
Won't Fix
|
High
|
Unassigned | ||
python-imaging (Ubuntu) |
Fix Released
|
High
|
Matthias Klose | ||
Raring |
Fix Released
|
High
|
Matthias Klose | ||
simple-image-reducer (Ubuntu) |
Fix Released
|
Undecided
|
ipatrol | ||
Raring |
Invalid
|
Undecided
|
Unassigned | ||
wsjt (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Raring |
Invalid
|
Undecided
|
Unassigned |
Bug Description
python-imaging in raring doesn't include a PIL.pth to point python at the library, so attempts to import modules from the package fail with, eg:
rachel@rarity:/etc$ python -m ImageMode && echo ok
/usr/bin/python: No module named Image
When the PIL.pth file is manually created, so python can find it, the Image module itself still fails to load:
rachel@rarity:/etc$ python -m Image
Traceback (most recent call last):
File "/usr/lib/
"__main__", fname, loader, pkg_name)
File "/usr/lib/
exec code in run_globals
File "/usr/lib/
from . import ImageMode
ValueError: Attempted relative import in non-package
The ImageMode module that line seems to be trying to import, however, seems to import fine by itself:
rachel@rarity:/etc$ python -m ImageMode && echo ok
ok
(I've confirmed that ImageMode comes from the same place, as if I remove PIL.pth again, the above line just returns the "No module named ImageMode" error)
I've tried reinstalling python-imaging already. I note in any case the PIL.pth file is missing on the file list available at packages.ubuntu.com for raring.
This is on Ubuntu Raring as updated from Ubuntu Quantal a few days ago:
rachel@rarity:/etc$ lsb_release -rd
Description: Ubuntu Raring Ringtail (development branch)
Release: 13.04
rachel@rarity:/etc$ apt-cache policy python
python:
Installed: 2.7.3-10ubuntu5
Candidate: 2.7.3-10ubuntu5
Version table:
*** 2.7.3-10ubuntu5 0
500 http://
100 /var/lib/
rachel@rarity:/etc$ apt-cache policy python-imaging
python-imaging:
Installed: 1.1.7+1.
Candidate: 1.1.7+1.
Version table:
*** 1.1.7+1.
500 http://
100 /var/lib/
Affects me as it affects building/packaging XBMC post-frodo for raring. :-)
Related branches
- Matthias Klose: Pending requested
-
Diff: 210 lines (+56/-0)28 files modified.bzrignore (+1/-0)
debian/PILcompat/PILcompat.pth (+1/-0)
debian/PILcompat/PILcompat/Image.py (+1/-0)
debian/PILcompat/PILcompat/ImageChops.py (+1/-0)
debian/PILcompat/PILcompat/ImageColor.py (+1/-0)
debian/PILcompat/PILcompat/ImageCrackCode.py (+1/-0)
debian/PILcompat/PILcompat/ImageDraw.py (+1/-0)
debian/PILcompat/PILcompat/ImageEnhance.py (+1/-0)
debian/PILcompat/PILcompat/ImageFile.py (+1/-0)
debian/PILcompat/PILcompat/ImageFileIO.py (+1/-0)
debian/PILcompat/PILcompat/ImageFilter.py (+1/-0)
debian/PILcompat/PILcompat/ImageFont.py (+1/-0)
debian/PILcompat/PILcompat/ImageGL.py (+1/-0)
debian/PILcompat/PILcompat/ImageGrab.py (+1/-0)
debian/PILcompat/PILcompat/ImageMath.py (+1/-0)
debian/PILcompat/PILcompat/ImageOps.py (+1/-0)
debian/PILcompat/PILcompat/ImagePalette.py (+1/-0)
debian/PILcompat/PILcompat/ImagePath.py (+1/-0)
debian/PILcompat/PILcompat/ImageQt.py (+1/-0)
debian/PILcompat/PILcompat/ImageSequence.py (+1/-0)
debian/PILcompat/PILcompat/ImageStat.py (+1/-0)
debian/PILcompat/PILcompat/ImageTk.py (+1/-0)
debian/PILcompat/PILcompat/ImageWin.py (+1/-0)
debian/PILcompat/PILcompat/PSDraw.py (+1/-0)
debian/PILcompat/setup.py (+11/-0)
debian/changelog (+8/-0)
debian/control (+10/-0)
debian/rules (+3/-0)
tags: | added: raring |
Changed in simple-image-reducer (Ubuntu): | |
status: | New → Confirmed |
Changed in simple-image-reducer (Ubuntu Raring): | |
status: | Confirmed → Invalid |
Changed in phatch (Ubuntu Raring): | |
status: | Confirmed → Invalid |
Changed in ocrfeeder (Ubuntu Raring): | |
status: | Confirmed → Invalid |
Changed in gwibber (Ubuntu Raring): | |
status: | Confirmed → Invalid |
Changed in comix (Ubuntu Raring): | |
status: | Confirmed → Invalid |
no longer affects: | python-imaging |
Status changed to 'Confirmed' because the bug affects multiple users.