im.show fails in absence of xv

Bug #67755 reported by Wouter van Heyst
30
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-imaging (Debian)
Fix Released
Unknown
python-imaging (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

In PIL/Image.py you'll find _showxv being used to actually throw up an image viewer. This function hardcodes the 'xv' viewer, which afaik has been removed from the (debian) archive a long time ago on account of non-freeness. My personal copy has patched it to use `display` from imagemagick since I use that anyway. Whatever is decided, a Suggests might be in order too.

Revision history for this message
Jason Ribeiro (jrib) wrote :

I can confirm this behavior in latest feisty.

Changed in python-imaging:
status: Unconfirmed → Confirmed
Changed in python-imaging:
status: Unknown → Unconfirmed
Revision history for this message
Jason Ribeiro (jrib) wrote :

still present in latest gutsy

Revision history for this message
Mahendra (mahendra-m) wrote :

Simple solution would be to create a symlink for gqview or eog in /usr/bin/
$ sudo ln -sf /usr/bin/gqview /usr/bin/xv

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-imaging - 1.1.6-1ubuntu4

---------------
python-imaging (1.1.6-1ubuntu4) hardy; urgency=low

  * Search for available image viewers. LP: #67755.

 -- Matthias Klose <email address hidden> Wed, 09 Apr 2008 16:29:57 +0000

Changed in python-imaging:
status: Confirmed → Fix Released
Changed in python-imaging:
status: New → Fix Released
Revision history for this message
miasma (miasma) wrote :

I ran into this problem recently (March 2009) and discovered the PIL Image module's _showxv function (called by the show() function) will also accept eog, gqview or gwenview as viewers besides the nonfree xv. I just installed gqview and it worked fine for my purposes.

Revision history for this message
Dan Halbert (dhalbert) wrote :

Reopening. See next comment.

Changed in python-imaging (Ubuntu):
status: Fix Released → New
status: New → Fix Released
Revision history for this message
Dan Halbert (dhalbert) wrote :

Never mind reopening. Filing a new, more precise bug about issues with eog.

Revision history for this message
Endolith (endolith) wrote :

ln -s /usr/bin/xdg-open ~/bin/xv

Then it opens in whatever viewer you have associated with image files, and you don't need to modify any system files.

Revision history for this message
Endolith (endolith) wrote :

Actually that doesn't work. It was displaying the _showxv error previously, then I added this link, and now it opens in Eye of Gnome no matter what I do, even if I delete the link.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.