[MacPorts] #49212: autojump @22.2.4 : currently broken, perhaps due to recent update
#49212: autojump @22.2.4 : currently broken, perhaps due to recent update --------------------+-------------------------------- Reporter: mk@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: autojump --------------------+-------------------------------- When I try to jump into my Downloads folder I see this: {{{ $ j Dow Traceback (most recent call last): File "/opt/local/bin/autojump", line 41, in <module> from autojump_argparse import ArgumentParser ImportError: No module named autojump_argparse autojump: directory 'Dow' not found Try `autojump --help` for more information. }}} Something broke recently. -- Ticket URL: <https://trac.macports.org/ticket/49212> MacPorts <https://www.macports.org/> Ports system for OS X
#49212: autojump @22.2.4 : currently broken, perhaps due to recent update -----------------------+-------------------------------- Reporter: mk@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: autojump | -----------------------+-------------------------------- Changes (by mk@…): * cc: ryandesign@… (added) Old description:
When I try to jump into my Downloads folder I see this: {{{ $ j Dow Traceback (most recent call last): File "/opt/local/bin/autojump", line 41, in <module> from autojump_argparse import ArgumentParser ImportError: No module named autojump_argparse autojump: directory 'Dow' not found Try `autojump --help` for more information. }}} Something broke recently.
New description: When I try to jump into my Downloads folder I see this: {{{ $ j Dow Traceback (most recent call last): File "/opt/local/bin/autojump", line 41, in <module> from autojump_argparse import ArgumentParser ImportError: No module named autojump_argparse autojump: directory 'Dow' not found Try `autojump --help` for more information. }}} Something broke recently, perhaps due to #49102!? -- -- Ticket URL: <https://trac.macports.org/ticket/49212#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#49212: autojump @22.2.4: ImportError: No module named autojump_argparse -----------------------+-------------------------- Reporter: mk@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: autojump | -----------------------+-------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (removed) * cc: yangyan.ssc@… (added) * status: new => assigned * owner: macports-tickets@… => ryandesign@… Comment: Replying to [ticket:49212 mk@…]:
Something broke recently, perhaps due to #49102!?
Yes. That was also reported by email a couple days ago, but thank you for filing a ticket about it. I have not yet succeed in fixing this. The port currently has a custom destroot block, which was not updated for changes that apparently took place in autojump. I tried to switch the port to using the included installation script, however the script appears to be problematic in various ways that either need to be fixed or possibly we can't use the script after all and have to figure out how to fix the custom destroot block. -- Ticket URL: <https://trac.macports.org/ticket/49212#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#49212: autojump @22.2.4: ImportError: No module named autojump_argparse -----------------------+-------------------------- Reporter: mk@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: autojump | -----------------------+-------------------------- Comment (by mk@…): Replying to [comment:2 ryandesign@…]:
thank you for filing a ticket about it.
You're welcome. OK, good to know that you try to deal with this already. :) Thanks in advance!!! -- Ticket URL: <https://trac.macports.org/ticket/49212#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#49212: autojump @22.2.4: ImportError: No module named autojump_argparse -----------------------+-------------------------- Reporter: mk@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: autojump | -----------------------+-------------------------- Comment (by jpenney@…): I've attached a patch that uses the provided install script to install into destroot, then correct the path in autojump.sh. It's working for me. -- Ticket URL: <https://trac.macports.org/ticket/49212#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X
#49212: autojump @22.2.4: ImportError: No module named autojump_argparse -----------------------+-------------------------- Reporter: mk@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: autojump | -----------------------+-------------------------- Comment (by jowens@…): WFM. Thanks @jpenney! -- Ticket URL: <https://trac.macports.org/ticket/49212#comment:10> MacPorts <https://www.macports.org/> Ports system for OS X
#49212: autojump @22.2.4: ImportError: No module named autojump_argparse -----------------------+-------------------------- Reporter: mk@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: autojump | -----------------------+-------------------------- Comment (by rubendibattista@…): Works also form me. Thanks. -- Ticket URL: <https://trac.macports.org/ticket/49212#comment:11> MacPorts <https://www.macports.org/> Ports system for OS X
#49212: autojump @22.2.4: ImportError: No module named autojump_argparse -----------------------+-------------------------- Reporter: mk@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: autojump | -----------------------+-------------------------- Comment (by rubendibattista@…): No. I was too hasty. {{{ /Users/***/.oh-my-zsh/plugins/autojump/autojump.plugin.zsh:18: command not found: brew /Users/***/.oh-my-zsh/plugins/autojump/autojump.plugin.zsh:[:18: too many arguments}}} -- Ticket URL: <https://trac.macports.org/ticket/49212#comment:12> MacPorts <https://www.macports.org/> Ports system for OS X
#49212: autojump @22.2.4: ImportError: No module named autojump_argparse -----------------------+-------------------------- Reporter: mk@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: autojump | -----------------------+-------------------------- Comment (by mk@…): Committed in r14256, as it works for bash. Keeping it open in the hope that someone will fix it for ruben's zsh... -- Ticket URL: <https://trac.macports.org/ticket/49212#comment:13> MacPorts <https://www.macports.org/> Ports system for OS X
#49212: autojump @22.2.4: ImportError: No module named autojump_argparse -----------------------+-------------------------- Reporter: mk@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: autojump | -----------------------+-------------------------- Comment (by macports.org-acnt@…): Seeing this in zsh using OMZ as well. The OMZ autojump "plugin" is a simple nested if that just aims to automatically select the right profile of autojump depending on whether it was installed manually or one of the various package managers out there. The actual core autojump shell setup called for MacPorts is in {{{/opt/local/etc/profile.d}}}, but that may be an issue here. OMZ is looking for {{{autojump.zsh}}}, and in an earlier MacPorts install {{{profile.d}}} did contain {{{autojump.bash}}}, {{{autojump.sh}}}, and {{{autojump.zsh}}}. However, on a brand new fresh install I'm seeing only {{{autojump.sh}}} and nothing else at all. @rubendibattista, are you seeing that too? -- Ticket URL: <https://trac.macports.org/ticket/49212#comment:14> MacPorts <https://www.macports.org/> Ports system for OS X
#49212: autojump @22.2.4: ImportError: No module named autojump_argparse -----------------------+-------------------------- Reporter: mk@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: autojump | -----------------------+-------------------------- Comment (by jowens@…): I remove my "works for me". It doesn't work for me. Also, oddly, the alias 'j' for autojump appears to have disappeared. {{{ $ autojump foo Please source the correct autojump file in your shell's startup file. For more information, please reinstall autojump and read the post installation instructions. $ if [ -f /opt/local/etc/profile.d/bash_completion.sh ]; then
. /opt/local/etc/profile.d/bash_completion.sh fi
$ ls -l /opt/local/etc/profile.d/bash_completion.sh -rw-r--r-- 1 root admin 675 Nov 7 06:32 /opt/local/etc/profile.d/bash_completion.sh $ autojump foo Please source the correct autojump file in your shell's startup file. For more information, please reinstall autojump and read the post installation instructions. $ }}} -- Ticket URL: <https://trac.macports.org/ticket/49212#comment:16> MacPorts <https://www.macports.org/> Ports system for OS X
#49212: autojump @22.2.4: ImportError: No module named autojump_argparse -----------------------+-------------------------- Reporter: mk@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: autojump | -----------------------+-------------------------- Comment (by jpenney@…): Replying to [comment:16 jowens@…]:
I remove my "works for me" (in bash). It doesn't work for me.
I think you're sourcing the wrong file there (that's for bash_completion, not autojump). {{{ $ port note autojump autojump has the following notes: To use autojump for bash, add the following to the end of your .bashrc: if [ -f /opt/local/etc/profile.d/autojump.sh ]; then . /opt/local/etc/profile.d/autojump.sh fi To use autojump for zsh, add the following to the end of your .zshrc: export FPATH="$FPATH:/opt/local/share/zsh/site-functions/" if [ -f /opt/local/etc/profile.d/autojump.sh ]; then . /opt/local/etc/profile.d/autojump.sh fi To use zsh tab completion, load compinit in your .zshrc: autoload -U compinit; compinit }}} -- Ticket URL: <https://trac.macports.org/ticket/49212#comment:17> MacPorts <https://www.macports.org/> Ports system for OS X
#49212: autojump @22.2.4: ImportError: No module named autojump_argparse -----------------------+-------------------------- Reporter: mk@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: autojump | -----------------------+-------------------------- Comment (by jpenney@…): Replying to [comment:14 macports.org-acnt@…]:
Seeing this in zsh using OMZ as well. The OMZ autojump "plugin" is a simple nested if that just aims to automatically select the right profile of autojump depending on whether it was installed manually or one of the various package managers out there. The actual core autojump shell setup called for MacPorts is in {{{/opt/local/etc/profile.d}}}, but that may be an issue here. OMZ is looking for {{{autojump.zsh}}}, and in an earlier MacPorts install {{{profile.d}}} did contain {{{autojump.bash}}}, {{{autojump.sh}}}, and {{{autojump.zsh}}}. However, on a brand new fresh install I'm seeing only {{{autojump.sh}}} and nothing else at all.
That's all you'll see on a non-macports install of the latest autojump as well. The autojump.sh file detects the current shell and loads the correct file from another location in the current version. This sounds like an OMZ issue, where it needs to be updated for the latest changes to autojump. I just tried using zsh with the instructions autojump shows on install and it works fine for me. -- Ticket URL: <https://trac.macports.org/ticket/49212#comment:18> MacPorts <https://www.macports.org/> Ports system for OS X
#49212: autojump @22.2.4: ImportError: No module named autojump_argparse -----------------------+-------------------------- Reporter: mk@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: autojump | -----------------------+-------------------------- Comment (by mk@…): Can this be considered fixed and the ticket to be closed? -- Ticket URL: <https://trac.macports.org/ticket/49212#comment:19> MacPorts <https://www.macports.org/> Ports system for OS X
#49212: autojump @22.2.4: ImportError: No module named autojump_argparse -----------------------+-------------------------- Reporter: mk@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: autojump | -----------------------+-------------------------- Comment (by macports.org-acnt@…): Replying to [comment:19 mk@…]:
Can this be considered fixed and the ticket to be closed? Yes, issue is not with MacPorts. Confirming jpenny, the problem is OMZ, a pull request should be submitted there because their plugin is out of date wrt autojump. Editing it to refer to autojump.sh seems to make everything function as it should. I think this ticket can be closed unless someone is still seeing unexpected behavior.
-- Ticket URL: <https://trac.macports.org/ticket/49212#comment:20> MacPorts <https://www.macports.org/> Ports system for OS X
#49212: autojump @22.2.4: ImportError: No module named autojump_argparse -----------------------+-------------------------- Reporter: mk@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: autojump | -----------------------+-------------------------- Comment (by mk@…): Will you take care of the pull request there? I guess once that is assured we can close this ticket, right!? -- Ticket URL: <https://trac.macports.org/ticket/49212#comment:21> MacPorts <https://www.macports.org/> Ports system for OS X
#49212: autojump @22.2.4: ImportError: No module named autojump_argparse -----------------------+-------------------------- Reporter: mk@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: autojump | -----------------------+-------------------------- Comment (by jowens@…): a) I'm a moron b) My issue appears to have been sourcing autojump.bash rather than autojump.sh. Problem solved. Replying to [comment:17 jpenney@…]:
Replying to [comment:16 jowens@…]:
I remove my "works for me" (in bash). It doesn't work for me.
I think you're sourcing the wrong file there (that's for bash_completion, not autojump).
{{{ $ port note autojump autojump has the following notes: To use autojump for bash, add the following to the end of your .bashrc:
if [ -f /opt/local/etc/profile.d/autojump.sh ]; then . /opt/local/etc/profile.d/autojump.sh fi
To use autojump for zsh, add the following to the end of your .zshrc:
export FPATH="$FPATH:/opt/local/share/zsh/site-functions/" if [ -f /opt/local/etc/profile.d/autojump.sh ]; then . /opt/local/etc/profile.d/autojump.sh fi
To use zsh tab completion, load compinit in your .zshrc:
autoload -U compinit; compinit
}}}
-- Ticket URL: <https://trac.macports.org/ticket/49212#comment:22> MacPorts <https://www.macports.org/> Ports system for OS X
#49212: autojump @22.2.4: ImportError: No module named autojump_argparse -----------------------+-------------------------- Reporter: mk@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: autojump | -----------------------+-------------------------- Comment (by rubendibattista@…): Replying to [comment:14 macports.org-acnt@…]:
Seeing this in zsh using OMZ as well. The OMZ autojump "plugin" is a simple nested if that just aims to automatically select the right profile of autojump depending on whether it was installed manually or one of the various package managers out there. The actual core autojump shell setup called for MacPorts is in {{{/opt/local/etc/profile.d}}}, but that may be an issue here. OMZ is looking for {{{autojump.zsh}}}, and in an earlier MacPorts install {{{profile.d}}} did contain {{{autojump.bash}}}, {{{autojump.sh}}}, and {{{autojump.zsh}}}. However, on a brand new fresh install I'm seeing only {{{autojump.sh}}} and nothing else at all. @rubendibattista, are you seeing that too?
Sorry. Did not have the time to check. Thanks for helping in any case. -- Ticket URL: <https://trac.macports.org/ticket/49212#comment:23> MacPorts <https://www.macports.org/> Ports system for OS X
#49212: autojump @22.2.4: ImportError: No module named autojump_argparse -----------------------+-------------------------- Reporter: mk@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: autojump | -----------------------+-------------------------- Comment (by rubendibattista@…): Opened an issue on the OMZ Github Repo: https://github.com/robbyrussell /oh-my-zsh/issues/4625 -- Ticket URL: <https://trac.macports.org/ticket/49212#comment:24> MacPorts <https://www.macports.org/> Ports system for OS X
#49212: autojump @22.2.4: ImportError: No module named autojump_argparse -----------------------+-------------------------- Reporter: mk@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: autojump | -----------------------+-------------------------- Comment (by macports.org-acnt@…): Replying to [comment:21 mk@…]:
Will you take care of the pull request there?
I guess once that is assured we can close this ticket, right!? @rubendibattista beat me to opening an issue, I'll try to put together a pull tonight if it hasn't been done already, after I can hit up a few folks on IRC who use other installs. The OMZ plugin refers to nine different installation methods (both manual and other package systems I don't use at all), worth asking around to make sure they're all updated and if it's important to maintain BC with old installations; I don't know what their policy is on breaking changes.
Given that it's a very simple quick edit (or for that matter an OMZ user can just manually include it in their {{{.zshrc}}}) though I'm not sure you need to keep this ticket open in the mean time. However it gets hashed out it doesn't seem like it's MacPort's issue beyond the initial bug that was already patched. Any OMZ user will hit it as they upgrade autojump through whatever method they use. -- Ticket URL: <https://trac.macports.org/ticket/49212#comment:25> MacPorts <https://www.macports.org/> Ports system for OS X
#49212: autojump @22.2.4: ImportError: No module named autojump_argparse -----------------------+-------------------------- Reporter: mk@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: autojump | -----------------------+-------------------------- Changes (by mk@…): * status: assigned => closed * resolution: => fixed -- Ticket URL: <https://trac.macports.org/ticket/49212#comment:26> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts