Package Details: autojump 22.5.3-9

Git Clone URL: (read-only, click to copy)
Package Base: autojump
Description: A faster way to navigate your filesystem from the command line
Upstream URL:
Licenses: GPL3
Conflicts: shonenjump
Submitter: graysky
Maintainer: graysky
Last Packager: graysky
Votes: 28
Popularity: 0.45
First Submitted: 2019-11-21 20:22 (UTC)
Last Updated: 2022-05-05 18:16 (UTC)

Required by (1)

Sources (1)

Pinned Comments

Latest Comments

MithicSpirit commented on 2022-01-05 22:41 (UTC)

@wadouk this may vary if you're using an AUR helper, but with makepkg you can rebuild it by cleaning out the directory with the PKGBUILD of any build artifacts (or delete it altogether and reclone the git repo), then re-run makepkg -sri.

wadouk commented on 2022-01-05 21:44 (UTC)

@graysky what do you mean by "rebuild" ? any post to follow ? some cache directories to clean or pacman command ?

already fixed by (copy python3.9 -> 3.10)

graysky commented on 2022-01-05 11:11 (UTC)

In the future, query ownership of a file with pacman -Qo /path/to/file

morganh commented on 2022-01-05 04:54 (UTC)

@graysky @MithicSpirit, roger, will fix locally. I assumed this was installed by the package, but maybe not. Thanks!

graysky commented on 2021-12-30 21:55 (UTC)

Since is an upstream file, I feel comfortable having this package supply it.

MithicSpirit commented on 2021-12-30 21:09 (UTC)

@morganh you can fix that by deleting the file that is currently in the filesystem (sudo rm /usr/share/fish/functions/ Something else you did on your system must have put it there (maybe manually installing autojump?). If you want to be safe you should also back it up before deleting.

morganh commented on 2021-12-30 20:53 (UTC)

Howdy, On line 49 you probably want to check if the file exists before moving it. Now when upgrading this package, I receive:

error: failed to commit transaction (conflicting files)
autojump: /usr/share/fish/functions/ exists in filesystem

alfredo.ardito commented on 2021-12-13 12:04 (UTC)

@MithicSpirit, @graysky yes u're right. I followed your advice. It worked. thx

MithicSpirit commented on 2021-12-13 11:27 (UTC)

@alfredo.ardito rebuilding it has worked for me. Make sure to clean out the directory of any build artifacts and results since they may cause makepkg to give up since it's already built (or you can just delete and re-clone the repo if you're lazy).

graysky commented on 2021-12-13 11:26 (UTC)

@alfredo - you need to rebuild it against python 3.10.

alfredo.ardito commented on 2021-12-13 10:12 (UTC) (edited on 2021-12-13 10:17 (UTC) by alfredo.ardito)

autojump not working anymore after python upgrade to 3.10.1
it reports this error:
ModuleNotFoundError: No module named 'autojump_argparse'
I tried to uninstall and reinstall but the error persists.

graysky commented on 2021-11-25 09:09 (UTC)

@morganh - thanks for the post, see 22.5.3-9

MithicSpirit commented on 2021-11-24 23:06 (UTC)

Line 47 should also be updated to use /usr/share/fish/functions instead of /usr/share/fish/completions. Currently line 48 is just creating /usr/share/fish/completions as a file rather placing the file in that directory, which makes the package conflict with fish itself.

graysky commented on 2021-11-24 19:47 (UTC)

@morganh - thanks for the post, see 22.5.3-8

morganh commented on 2021-11-24 17:54 (UTC) (edited on 2021-11-24 18:00 (UTC) by morganh)

You spelled "linux" wrong in maintainer line for your email.

Also, the fish configuration is wrong. The symlink should exist in /usr/share/fish/functions, instead of /usr/share/fish/completions.

Lastly, in FISH, for this to work, we need to source it from the fish config, (default is ~/.config/fish/ As seen here:

so something like this:

if test -f /usr/share/autojump/
 source /usr/share/autojump/

Cheers, and ty for the work

joshm commented on 2021-01-07 13:29 (UTC)

@SkywalkerDarren -- thanks! It was a bit different for me, here's how I fixed it on Manjaro:

> locate             

> find /usr/lib -type d -path '*python*' -name 'site-packages'       

> sudo cp /home/josh/.pyenv/versions/3.7.7/lib/python3.7/site-packages/autojump*.py /usr/lib/python2.7/site-packages/
> sudo cp /home/josh/.pyenv/versions/3.7.7/lib/python3.7/site-packages/autojump*.py /usr/lib/python3.9/site-packages/

That is, found where the autojump scripts lives, then found where the python site-packages lived, and copied the autojump scripts to both locations.

graysky commented on 2021-01-05 11:54 (UTC)

I think you just need to rebuild the package.

SkywalkerDarren commented on 2021-01-05 04:17 (UTC)

@joshm - Try to move,,, from /usr/lib/python3.8/site-packages to /usr/lib/python3.9/site-packages

It's work.

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/ ]] && source /home/josh/.cache/pacaur/autojump/pkg/autojump/etc/profile.d/

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


> pwd


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:

Used for example like this:

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
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 "". 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?

bertschneider commented on 2019-11-24 12:14 (UTC)

@graysky - I use ZSH. In the meantime an autojump issue [1] regarding this problem was created. I will try the mentioned solutions now.

Thx for your time and keep up the good work!


graysky commented on 2019-11-22 18:57 (UTC) (edited on 2019-11-22 18:59 (UTC) by graysky)

@bertschneider - I cannot reproduce (works under zsh and bash for me) ... which shell?

bertschneider commented on 2019-11-22 09:04 (UTC)

After the newest update I get the following error message.

Traceback (most recent call last): File "/usr/bin/autojump", line 39, in <module> from autojump_argparse import ArgumentParser ModuleNotFoundError: No module named 'autojump_argparse'

I installed the argparse dependency manually but as I understand the python code the stated module should be included in autojump. Could this be an autojump or more likely an AUR package bug?