[Bug 1112496] Re: python-imaging broken in raring

Matthias Klose doko at ubuntu.com
Mon Feb 4 21:30:17 UTC 2013


as a long-term solution, every rdepends should be patched as:

try:
  from PIL import Image
except ImportError:
  import Image

as a midterm solution, maybe ship a python-imaging-compat which holds
the .pth file

as short-term, maybe let python-imaging depend on python-imaging-compat.

The list of rdependencies is longish:

  yade
  xpra
  xmms2tray
  xbmc
  wsjt
  wotsap
  videoporama
  twms
  trac-wikiprint
  trac-odtexport
  trac-diavisview
  tpclient-pywx
  tilecache
  svgtoipe
  streamtuner2
  snowballz
  smartshine
  simple-image-reducer
  rst2pdf
  remuco-base
  rapid-photo-downloader
  python-weboob-core
  python-trml2pdf
  python-sympy
  python-surfer
  python-stepic
  python-sponge
  python-soya-doc
  python-skimage
  python-seqdiag
  python-scrapy
  python-scipy
  python-schooltool
  python-qrtools
  python-qrencode
  python-pyx
  python-pyepl
  python-plastex
  python-pisa
  python-pgm
  python-nwdiag
  python-numm
  python-mpltoolkits.basemap
  python-libtiff
  python-guiqwt
  python-glitch
  python-gamera
  python-freevo
  python-fabio
  python-enable
  python-djblets
  python-django-mumble
  python-django-filebrowser
  python-django-feincms
  python-dicom
  python-circuits
  python-captcha
  python-blockdiag
  python-actdiag
  python-aalib
  python-aafigure
  pymsnt
  pyicqt
  pyfai
  pyaimt
  psychopy
  plucker
  pkpgcounter
  photon
  photofilmstrip
  phatch-cli
  openshot
  openerp6.1-core
  oboinus
  nml
  nikola
  nautilus-image-manipulator
  moovida-plugins-bad
  mobyle
  mitmproxy
  memaker
  mediawiki-extensions-confirmedit
  mcomix
  mbot
  luciole
  lazygal
  last-align
  impressive
  ibid
  griffith
  grass-gui
  gpsdrive-scripts
  gourmet
  glue-sprite
  fretsonfire-game
  fontypython
  fofix
  fgo
  exaile-plugin-contextinfo
  didjvu
  dicompyler
  comix
  cinnamon
  cfv
  calibre
  bkchem
  beets
  apitrace-gl-frontend
  advene
  ubuntu-sso-client-qt
  python-uniconvertor-dbg
  python-uniconvertor
  python-sphinx
  python-reportlab
  python-htmlgen
  python-docutils
  hplip
  gwibber-service


** Also affects: phatch (Ubuntu)
   Importance: Undecided
       Status: New

-- 
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/1112496

Title:
  python-imaging broken in raring

Status in “gwibber” package in Ubuntu:
  Confirmed
Status in “phatch” package in Ubuntu:
  New
Status in “python-imaging” package in Ubuntu:
  Triaged
Status in “gwibber” source package in Raring:
  Confirmed
Status in “phatch” source package in Raring:
  New
Status in “python-imaging” source package in Raring:
  Triaged

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 at 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 at rarity:/etc$ python -m Image
  Traceback (most recent call last):
    File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
      "__main__", fname, loader, pkg_name)
    File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
      exec code in run_globals
    File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 75, in <module>
      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 at 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 at rarity:/etc$ lsb_release -rd
  Description:	Ubuntu Raring Ringtail (development branch)
  Release:	13.04
  rachel at 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://gb.archive.ubuntu.com/ubuntu/ raring/main amd64 Packages
          100 /var/lib/dpkg/status
  rachel at rarity:/etc$ apt-cache policy python-imaging
  python-imaging:
    Installed: 1.1.7+1.7.8-1ubuntu1
    Candidate: 1.1.7+1.7.8-1ubuntu1
    Version table:
   *** 1.1.7+1.7.8-1ubuntu1 0
          500 http://gb.archive.ubuntu.com/ubuntu/ raring/main amd64 Packages
          100 /var/lib/dpkg/status

  Affects me as it affects building/packaging XBMC post-frodo for
  raring. :-)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gwibber/+bug/1112496/+subscriptions




More information about the foundations-bugs mailing list