You are not logged in.
@progandy, gotcha.
Kiss and side-effect less ^_^
Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery ) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9
Offline
After updating today,
ranger: ImportError: No module named 'ranger'
The error is raised because the package owns files in /usr/lib/python3.4/site-packages/ranger, which is not to be found in /usr/lib/ python3.5/site-packages/ranger.
Git version does not have the issue as it created the needed files in python3.5 (as I understand).
ps Is there a tip to launch ranger (from community) anyway? Like back at the Python2.7 » 3 shift we could launch ranger with `python2 /usr/bin/ranger`
progandy's 'solution' isn't really.
I believe you're using [testing] (since you have python-3.5) but not using [community-testing] (which has ranger rebuilt for python3.5), which is a recipe for breakage whenever there's a lib update in testing. Add [community-testing] to your pacman.conf.
EDIT: Also, hut, I added a new bug report for ranger, there's a FutureWarning obscuring my breadcrumb top bar....
Last edited by ngoonee (2015-09-30 23:53:20)
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
I get this error when starting up ranger: https://ptpb.pw/Pfiz
I know a lot of python packages were updated recently but I have no idea why ranger is throwing this error.
Offline
The error has been reported upstream: https://github.com/hut/ranger/issues/381
Meanwhile, you can redraw the window with Ctrl-L or ':redraw_window'.
Offline
The "future warning" bug has been fixed in the new stable version 1.7.2 which is out as of now. Thanks for reporting it^^
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
PSA: if your image previews don't work after upgrading ranger, please update your ~/.config/ranger/scope.sh configuration file.
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
Thanks for fix, Hut!
I guess now you can safely update the README and the homepage saying it supports Python 3.5!
Offline
Is there a way to view the directory history and selectively navigate in it like 'Meta+H' in mc? It would be a great feature to list with a key combination an enumerated history list in the preview pane and to jump by typing a number to a needed directory.
bing different
Offline
I'd like to use imagemagick's resize function in ranger (with the :shell) with the following command:
convert pic.png -resize 50% pic_resized.png
But I got "Unrecognized named group in pattern" error. I think the % sign is the problem. I tried to escape it with \ or with another %, but it's not working. The command is fine, if I use it in the terminal, it works okay. I think it's maybe a "python->shell" problem.
Can someone tell me, how could I use the command or how to escape the % sign?
Offline
I'd like to use imagemagick's resize function in ranger (with the :shell) with the following command:
convert pic.png -resize 50% pic_resized.png
But I got "Unrecognized named group in pattern" error. I think the % sign is the problem. I tried to escape it with \ or with another %, but it's not working. The command is fine, if I use it in the terminal, it works okay. I think it's maybe a "python->shell" problem.
Can someone tell me, how could I use the command or how to escape the % sign?
Can't you just use 0.50?
Offline
I can't, that way it makes a 1 pixel image.
Last edited by spcmd (2015-11-18 16:34:13)
Offline
I can't, that way it makes a 1 pixel image.
Then maybe put part of the command in quotes?
Last edited by rg_arc (2015-11-18 17:18:59)
Offline
Then maybe put part of the command in quotes?
I tried quoting parts, quoting the 50% only, quoting the full command, with double or single quotes. Not working.
Offline
rg_arc wrote:Then maybe put part of the command in quotes?
I tried quoting parts, quoting the 50% only, quoting the full command, with double or single quotes. Not working.
how about using the full path for the image files?
Offline
how about using the full path for the image files?
Same error.
Offline
I'd like to use imagemagick's resize function in ranger (with the :shell) with the following command:
convert pic.png -resize 50% pic_resized.png
But I got "Unrecognized named group in pattern" error. I think the % sign is the problem. I tried to escape it with \ or with another %, but it's not working. The command is fine, if I use it in the terminal, it works okay. I think it's maybe a "python->shell" problem.
Can someone tell me, how could I use the command or how to escape the % sign?
Hello, you can use
convert pic.png -resize 50%%%% pic_resized.png
Offline
Hello, you can use
convert pic.png -resize 50%%%% pic_resized.png
It works! Thank you!
edit:
If anyone interested, I made this alias in ranger's rc.conf for this:
alias pic-resize eval fm.open_console('shell convert ' + fm.thisfile.basename + ' -resize 50%%%% ' + os.path.splitext(fm.thisfile.basename)[0] +'_resized'+os.path.splitext(fm.thisfile.basename)[1])
Last edited by spcmd (2015-11-19 07:58:54)
Offline
I wonder if there is some method to use the preview column (the right column in the 3-column layout) for outputting some data to it, like a list of files? Maybe writing a plugin or a function?
bing different
Offline
I set update_title to true but ranger is unable to update terminal window title of gnome-terminal and xterm to "ranger:PATH".
It's discussed in post #1237 but I still don't know how to get it to work.
I'm using ranger-stable 1.7.2 (Python 3.5.1)
Offline
I've been tinkering with my ranger colorscheme, and I'd love to be able to colorize files by mime-type and/or extension. The currently available CONTEXT_KEYS are useful, but somewhat limited: broad categories like media, images, and executables are covered, but I can't specify colors for pdfs, latex files, source code, etc.
My ideal approach to this would be if there could be a way for ranger to use `dircolors` settings so I didn't have to replicate those settings - but any other method of being able to set color by filetype or extension would be great.
I'm not proficient in python, but from what I understand of the code in the colorscheme file, the name of the file to be colored doesn't seem to be avialble (for any sort of string comparison) in that scope.
Is there currently anyway of acheiving this type of file-type-specific coloring? Or might this be considered for a future feature?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I've been tinkering with my ranger colorscheme, and I'd love to be able to colorize files by mime-type and/or extension. The currently available CONTEXT_KEYS are useful, but somewhat limited: broad categories like media, images, and executables are covered, but I can't specify colors for pdfs, latex files, source code, etc.
My ideal approach to this would be if there could be a way for ranger to use `dircolors` settings so I didn't have to replicate those settings - but any other method of being able to set color by filetype or extension would be great.
I'm not proficient in python, but from what I understand of the code in the colorscheme file, the name of the file to be colored doesn't seem to be avialble (for any sort of string comparison) in that scope.
Is there currently anyway of acheiving this type of file-type-specific coloring? Or might this be considered for a future feature?
There's a branch in progress that implements a new, more flexible way of specifying color schemes. Sadly, I got exams now and can't dedicate any time to finishing it. So, it'll be a couple of months until it's merged.
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
Great - thanks! There's certainly no rush. I'm glad this goal is somewhere in the pipeline.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
My ideal approach to this would be if there could be a way for ranger to use `dircolors` settings...
That would be pretty handy.
Offline
At some point recently - I'm not sure exactly when, but in the last month or two - ranger stopped showing image previews for gifs. It still shows them for .jpg, .png, .webm, but suddenly not gifs.
If I move to a gif, after about three seconds, I see the message, at the bottom of the ranger window:
('Failed to execute w3mimgdisplay', [])
I switched to the AUR git version, but the problem still exists. I moved my config files and recopied the default configs, and that didn't fix it either. I'm not sure what else to try.
(It's only complicated by the fact that SOMETIMES, under conditions I can't reproduce, it WILL show gif previews. It will show a preview of a gif, and then when I go back to that same gif, it will fail with the above message.)
Any ideas?
Last edited by Sounds_About (2016-02-21 20:12:12)
Offline