Package Details: autojump 22.5.3-9

Git Clone URL: https://aur.archlinux.org/autojump.git (read-only, click to copy)
Package Base: autojump
Description: A faster way to navigate your filesystem from the command line
Upstream URL: https://github.com/wting/autojump
Licenses: GPL3
Conflicts: shonenjump
Submitter: graysky
Maintainer: graysky
Last Packager: graysky
Votes: 40
Popularity: 0.78
First Submitted: 2019-11-21 20:22 (UTC)
Last Updated: 2022-05-05 18:16 (UTC)

Dependencies (1)

Required by (1)

Sources (1)

Pinned Comments

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

joshm commented on 2020-12-11 13:58 (UTC) (edited on 2020-12-11 14:00 (UTC) by joshm)

Hello. autojump-22.5.3-7 appears to be broken (Manjaro). After installing, the instructions say to add this to .bashrc:

[[ -s /home/josh/.cache/pacaur/autojump/pkg/autojump/etc/profile.d/autojump.sh ]] && source /home/josh/.cache/pacaur/autojump/pkg/autojump/etc/profile.d/autojump.sh

But this file does not exist. I added the line anyway, and opened a new terminal. No errors, but when I try to autojump, I get this:

> autojump proj

Traceback (most recent call last):

File "/usr/bin/autojump", line 39, in <module>

from autojump_argparse import ArgumentParser

ModuleNotFoundError: No module named 'autojump_argparse'

Following this recommendation, I then open a new terminal and try autojump again and this time it appears to work, but does not actually change the directory:

> autojump proj

/home/josh/Projects

> pwd

/home/josh

Not sure what else to try.

graysky commented on 2020-12-02 11:51 (UTC)

@Jake - Nice! Thanks for the tip. See 22.5.3-7.

Jake commented on 2020-12-02 11:40 (UTC) (edited on 2020-12-02 11:40 (UTC) by Jake)

@graysky: Thanks for maintaining this! You don't need to hardcode the the python version (and make manual updates). Instead you can use this trick to get the site-packages path: https://wiki.archlinux.org/index.php/Python_package_guidelines#Using_site-packages

Used for example like this: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=searx

Also the depends should be set back to python>=3.3, like the project actually requires, just in case someone wants to stay on a old python and ignore updates.

graysky commented on 2020-12-02 11:15 (UTC)

@captn3m0 - Yes, fixed in 22.5.3-6

captn3m0 commented on 2020-12-02 07:45 (UTC) (edited on 2020-12-02 07:46 (UTC) by captn3m0)

Broken again with the Python 3.9 release. I did a clean rebuild using yay, and still get the same error. Changing 3.8 to 3.9 in the PKGBUILD fixes it for now.

Traceback (most recent call last):
  File "/usr/sbin/autojump", line 39, in <module>
    from autojump_argparse import ArgumentParser
ModuleNotFoundError: No module named 'autojump_argparse'
autojump: directory 'cal' not found
\n\n
Try `autojump --help` for more information.

graysky commented on 2019-12-22 08:05 (UTC)

@fzerof - Upstream is a bit of a mess, but on a headless system accessed only via ssh with the default set to /bin/zsh (Arch), I do not experience this.

fzerof commented on 2019-12-22 03:55 (UTC) (edited on 2019-12-22 03:58 (UTC) by fzerof)

"/etc/profile" is invoked only for login shells. If I run an interactive shell, like zsh, I still encounter the error "https://github.com/joelthelion/autojump/pull/339". So I have to add "autojump.zsh" to .zshrc manually.

I use manjaro, i3, and zsh.

neng commented on 2019-12-04 18:36 (UTC)

I'm on Manjaro. So take this chance to try another similar package: jump.

graysky commented on 2019-11-27 20:37 (UTC) (edited on 2019-11-27 20:40 (UTC) by graysky)

Why not use python>=3.3(which is the requirement on the project's github page)? Wouldn't it work for both distros?

The problem is that one needs to rebuild this against a major python version release (ie 3.6 to 3.7 or 3.7 to 3.8). If it were in the official repos, the maintainer would just bump the pkgver and change the _python variable but since it's the AUR, I have to force it with the versioned python3 dep.

If there is a smarter way to maintain consistency please share it with me.

For example, if you you build autojump against python v3.7.x, you will get:


% pacman -Ql autojump                                                                                       
...
autojump /usr/lib/python3/site-packages/__pycache__/autojump_argparse.cpython-37.opt-1.pyc
autojump /usr/lib/python3/site-packages/__pycache__/autojump_argparse.cpython-37.pyc
autojump /usr/lib/python3/site-packages/__pycache__/autojump_data.cpython-37.opt-1.pyc
autojump /usr/lib/python3/site-packages/__pycache__/autojump_data.cpython-37.pyc
autojump /usr/lib/python3/site-packages/__pycache__/autojump_match.cpython-37.opt-1.pyc
autojump /usr/lib/python3/site-packages/__pycache__/autojump_match.cpython-37.pyc
autojump /usr/lib/python3/site-packages/__pycache__/autojump_utils.cpython-37.opt-1.pyc
autojump /usr/lib/python3/site-packages/__pycache__/autojump_utils.cpython-37.pyc
...

winicius commented on 2019-11-27 17:18 (UTC) (edited on 2019-11-27 17:18 (UTC) by winicius)

HI @graysky,

Why not use python>=3.3(which is the requirement on the project's github page)? Wouldn't it work for both distros?