bugranger - Bugs: bug #38623, Error when previewing image

 
 

bug #38623: Error when previewing image

Submitter:  None
Submitted:  Fri 29 Mar 2013 10:17:28 AM UTC
   
 
Severity:  3 - Normal Status:  In Progress
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 02 Apr 2013 03:31:57 AM UTC, comment #1: 

Sorry for the lack of a useful error message.

You need w3m and its image previewing program. How to get it depends on the operating system. First of all, try installing w3m. On debian or ubuntu, additionally try to install "w3m-img" package. On gentoo, you have to write this in your shell config file:

export W3MIMGDISPLAY_PATH=/usr/libexec/w3m/w3mimgdisplay

Roman Z. <hut>
Group administrator
Fri 29 Mar 2013 10:17:28 AM UTC, original submission:  

user@linux ~ $ ranger -d
ranger version: 1.6.0, executed with python 2.7.1+
Locale: en_ZA.UTF8
Current file: /home/user/Firefox_wallpaper.png
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/ranger/core/main.py", line 132, in main
    fm.loop()
  File "/usr/local/lib/python2.7/dist-packages/ranger/core/fm.py", line 272, in loop
    ui.redraw()
  File "/usr/local/lib/python2.7/dist-packages/ranger/gui/ui.py", line 264, in redraw
    self.finalize()
  File "/usr/local/lib/python2.7/dist-packages/ranger/gui/ui.py", line 312, in finalize
    DisplayableContainer.finalize(self)
  File "/usr/local/lib/python2.7/dist-packages/ranger/gui/displayable.py", line 254, in finalize
    displayable.finalize()
  File "/usr/local/lib/python2.7/dist-packages/ranger/gui/widgets/browserview.py", line 121, in finalize
    self.columns[-1].draw_image()
  File "/usr/local/lib/python2.7/dist-packages/ranger/gui/widgets/pager.py", line 104, in draw_image
    self.fm.notify(e, bad=True)
  File "/usr/local/lib/python2.7/dist-packages/ranger/gui/widgets/pager.py", line 96, in draw_image
    self.x, self.y, self.wid, self.hei),
  File "/usr/local/lib/python2.7/dist-packages/ranger/ext/img_display.py", line 58, in generate_w3m_input
    output = _w3mimgdisplay(cmd).split()
  File "/usr/local/lib/python2.7/dist-packages/ranger/ext/img_display.py", line 36, in _w3mimgdisplay
    stdout=PIPE, universal_newlines=True)
  File "/usr/lib/python2.7/subprocess.py", line 672, in _init_
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1213, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

user@linux ~ $

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by hut (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-04-02 hut StatusNone In Progress

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code