启动 Linux shell 时出现 asdf 错误
抱歉,这里很难具体说明,但我正在努力使用 asdf
。
我已经在 RHEL 8.5 GNU/Linux 系统上运行了 Fish shell 3.4.0,并且已经安装并使用了 asdf
几个月,没有出现任何问题。我还使用 asdf
通过 direnv
安装和使用 Python 和 R 虚拟环境。
但是,从昨天开始,当我打开 Gnome 终端应用程序来启动 Fish shell 时,我收到此错误:
environment:987: use_asdf: command not find
我仍然可以使用 shell,但我注意到无法再找到我通过 asdf
管理的 Python 安装的 pipx
工具。
另外,如果我启动 Bash shell,则会出现以下错误:
bash:register-python-argcomplete:找不到命令...安装包“python3-argcomplete”以提供命令“register-python-” argcomplete'? [N/y]
如果我选择 N
(“否”),我仍然可以访问 bash shell。
问题是,我不知道这些错误从何而来,也不知道如何找到问题的根源。我该如何开始解决这些错误?
谢谢。
更新:
asdf
及其插件均已完全更新。
这是 asdf info
的输出:
OS:
Linux [hostname] 4.18.0-348.20.1.el8_5.x86_64 #1 SMP Tue Mar 8 12:56:54 EST 2022 x86_64 x86_64 x86_64 GNU/Linux
SHELL:
fish, version 3.4.1
ASDF VERSION:
v0.10.0-77fd510
ASDF ENVIRONMENT VARIABLES:
ASDF_DIR=/home/[username]/.asdf
ASDF INSTALLED PLUGINS:
direnv https://github.com/asdf-community/asdf-direnv.git master 7dcd571
nodejs https://github.com/asdf-vm/asdf-nodejs.git master f9957f3
python https://github.com/danhper/asdf-python.git master 57a4d72
R https://github.com/asdf-community/asdf-r.git master 3eab1a6
Sorry it's hard to be specific here but I'm struggling to pin down the source of various error messages in my Linux shell with asdf
.
I've got Fish shell 3.4.0 running on a RHEL 8.5 GNU/Linux system, and have installed and used asdf
with it for several months with no problems. I've used asdf
to install and use Python and R virtual environments with direnv
as well.
However, starting yesterday, when I open my Gnome Terminal application to start the Fish shell, I get this error:
environment:987: use_asdf: command not found
I can still use the shell, but I noticed the the pipx
tool I installed via my asdf
-managed Python can no longer be found.
Also, if I start a Bash shell instead, I'm presented with this error:
bash: register-python-argcomplete: command not found... Install package 'python3-argcomplete' to provide command 'register-python-argcomplete'? [N/y]
If I choose N
("no"), I can still get to the bash shell.
The problem is, I have no idea where these errors are coming from or how to find the root of the problem. How can I begin to troubleshoot these errors?
Thank you.
UPDATE:
asdf
and its plugins are all fully updated.
There's the output from asdf info
:
OS:
Linux [hostname] 4.18.0-348.20.1.el8_5.x86_64 #1 SMP Tue Mar 8 12:56:54 EST 2022 x86_64 x86_64 x86_64 GNU/Linux
SHELL:
fish, version 3.4.1
ASDF VERSION:
v0.10.0-77fd510
ASDF ENVIRONMENT VARIABLES:
ASDF_DIR=/home/[username]/.asdf
ASDF INSTALLED PLUGINS:
direnv https://github.com/asdf-community/asdf-direnv.git master 7dcd571
nodejs https://github.com/asdf-vm/asdf-nodejs.git master f9957f3
python https://github.com/danhper/asdf-python.git master 57a4d72
R https://github.com/asdf-community/asdf-r.git master 3eab1a6
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不认识
环境:987:USE_ASDF:找不到命令
错误或寄存器python-argcomplete:找不到命令
error。我建议您升级到最新版本的ASDF和您使用的所有ASDF插件的最新版本。如果您仍然有问题,请通过
ASDF信息
的输出来更新问题,以便我们可以更好地了解您的环境的样子。I do not recognize the
environment:987: use_asdf: command not found
error or theregister-python-argcomplete: command not found
error.I'd suggest upgrading to the latest version of asdf and the latest version of all the asdf plugins you are using. If you still have issues please update you r question with the output from
asdf info
so we can get a better understanding of what your environment is like.