← Back to team overview

ubuntu-hams-devel team mailing list archive

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

 

I get this with phatch, no picture traited : I don't know anything about ; is it the same subject ? like in
https://bugs.launchpad.net/phatch/+bug/1156583
?
(I hope not to do anyone in lauchnpad waste time)

~$ phatch
Traceback (most recent call last):
  File "/usr/share/phatch/phatch/lib/pyWx/folderFileBrowser.py", line 246, in on_list_item_selected
    self.show_preview(filename)
  File "/usr/share/phatch/phatch/lib/pyWx/folderFileBrowser.py", line 236, in show_preview
    bitmap = pil_wxBitmap(open_thumb(filename, size=(128,128)))
  File "/usr/share/phatch/phatch/lib/openImage.py", line 94, in open_thumb
    save_cache=save_cache)
  File "/usr/share/phatch/phatch/lib/thumbnail.py", line 428, in open
    size=size, save_cache=save_cache)
  File "/usr/share/phatch/phatch/lib/thumbnail.py", line 206, in _open
    image = open_image(filename)
  File "/usr/share/phatch/phatch/lib/openImage.py", line 87, in open_image_exif_thumb
    return open_image_exif(uri)
  File "/usr/share/phatch/phatch/lib/openImage.py", line 74, in open_image_exif
    return imtools.transpose_exif(open(uri))
  File "/usr/share/phatch/phatch/lib/openImage.py", line 44, in open
    image = open_image_without_pil(uri, WITHOUT_PIL)
  File "/usr/share/phatch/phatch/lib/openImage.py", line 115, in open_image_without_pil
    image = open_method(filename)
  File "/usr/share/phatch/phatch/lib/openImage.py", line 350, in open_xcf
    return open_image_with_command(filename, command, 'xcf2png')
  File "/usr/share/phatch/phatch/lib/openImage.py", line 152, in open_image_with_command
    image = Image.open(temp_file)
  File "/usr/share/phatch/phatch/lib/Image.py", line 2020, in open
    raise IOError("cannot identify image file")
IOError: cannot identify image file
Traceback (most recent call last):
  File "/usr/share/phatch/phatch/lib/pyWx/folderFileBrowser.py", line 246, in on_list_item_selected
    self.show_preview(filename)
  File "/usr/share/phatch/phatch/lib/pyWx/folderFileBrowser.py", line 236, in show_preview
    bitmap = pil_wxBitmap(open_thumb(filename, size=(128,128)))
  File "/usr/share/phatch/phatch/lib/openImage.py", line 94, in open_thumb
    save_cache=save_cache)
  File "/usr/share/phatch/phatch/lib/thumbnail.py", line 428, in open
    size=size, save_cache=save_cache)
  File "/usr/share/phatch/phatch/lib/thumbnail.py", line 206, in _open
    image = open_image(filename)
  File "/usr/share/phatch/phatch/lib/openImage.py", line 87, in open_image_exif_thumb
    return open_image_exif(uri)
  File "/usr/share/phatch/phatch/lib/openImage.py", line 74, in open_image_exif
    return imtools.transpose_exif(open(uri))
  File "/usr/share/phatch/phatch/lib/openImage.py", line 44, in open
    image = open_image_without_pil(uri, WITHOUT_PIL)
  File "/usr/share/phatch/phatch/lib/openImage.py", line 115, in open_image_without_pil
    image = open_method(filename)
  File "/usr/share/phatch/phatch/lib/openImage.py", line 350, in open_xcf
    return open_image_with_command(filename, command, 'xcf2png')
  File "/usr/share/phatch/phatch/lib/openImage.py", line 152, in open_image_with_command
    image = Image.open(temp_file)
  File "/usr/share/phatch/phatch/lib/Image.py", line 2020, in open
    raise IOError("cannot identify image file")
IOError: cannot identify image file

-- 
You received this bug notification because you are a member of Ubuntu
ham developers, which is subscribed to wsjt in Ubuntu.
https://bugs.launchpad.net/bugs/1112496

Title:
  python-imaging broken in raring

Status in Phatch = Photo & Batch!:
  New
Status in “comix” package in Ubuntu:
  Invalid
Status in “gwibber” package in Ubuntu:
  Invalid
Status in “ocrfeeder” package in Ubuntu:
  Invalid
Status in “phatch” package in Ubuntu:
  Confirmed
Status in “python-imaging” package in Ubuntu:
  Fix Released
Status in “simple-image-reducer” package in Ubuntu:
  Invalid
Status in “wsjt” package in Ubuntu:
  Invalid
Status in “comix” source package in Raring:
  Invalid
Status in “gwibber” source package in Raring:
  Invalid
Status in “ocrfeeder” source package in Raring:
  Invalid
Status in “phatch” source package in Raring:
  Confirmed
Status in “python-imaging” source package in Raring:
  Fix Released
Status in “simple-image-reducer” source package in Raring:
  Invalid
Status in “wsjt” source package in Raring:
  Invalid

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/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@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://gb.archive.ubuntu.com/ubuntu/ raring/main amd64 Packages
          100 /var/lib/dpkg/status
  rachel@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/phatch/+bug/1112496/+subscriptions