私はpip / pipxを使用してPythonツールをインストールします。 ホストでこれを行うと、ツールはツールボックスで機能しません。 ツールボックスにインストールすると、ツールがホストで機能しません。
$ pipx install jrnl
Installing to existing venv 'jrnl'
installed package jrnl 2.7.1, Python 3.9.5
These apps are now globally available
- jrnl
done! ✨ 🌟 ✨
$ jrnl --version
jrnl version v2.7.1
[..]
$ toolbox enter --container fedora-toolbox-32
$ jrnl
Traceback (most recent call last):
File "/var/home/hferreiro/.local/bin/jrnl", line 5, in <module>
from jrnl.cli import cli
ImportError: No module named jrnl.cli
pipx Webサイトの同じ例に従います。
[oliver<strong i="6">@t480s</strong> src]$ pipx install cowsay
installed package cowsay 4.0, Python 3.9.5
These apps are now globally available
- cowsay
done! ✨ 🌟 ✨
[oliver<strong i="7">@t480s</strong> src]$ cowsay Yeah
____
| Yeah |
====
\
\
^__^
(oo)\_______
(__)\ )\/\
||----w |
|| ||
[oliver<strong i="8">@t480s</strong> src]$ ./toolbox enter f34
⬢[oliver<strong i="9">@toolbox</strong> src]$ cowsay moo
___
| moo |
===
\
\
^__^
(oo)\_______
(__)\ )\/\
||----w |
|| ||
⬢[oliver<strong i="10">@toolbox</strong> src]$
最新のツールボックスビルドで動作しました
多分それはjrnlの問題ですか? (私もそれでテストします)
jrnlでテストし、OOBで動作しました
[oliver<strong i="6">@t480s</strong> src]$ pipx install jrnl
installed package jrnl 2.8.1, Python 3.9.5
These apps are now globally available
- jrnl
done! ✨ 🌟 ✨
[oliver<strong i="7">@t480s</strong> src]$ ./toolbox enter f34
⬢[oliver<strong i="8">@toolbox</strong> src]$
logout
[oliver<strong i="9">@t480s</strong> src]$ jrnl --version
jrnl version v2.8.1
Copyright (C) 2012-2021 jrnl contributors
This is free software, and you are welcome to redistribute it under certain
conditions; for details, see: https://www.gnu.org/licenses/gpl-3.0.html
[oliver<strong i="10">@t480s</strong> src]$ ./toolbox enter f34
⬢[oliver<strong i="11">@toolbox</strong> src]$ jrnl --version
jrnl version v2.8.1
Copyright (C) 2012-2021 jrnl contributors
This is free software, and you are welcome to redistribute it under certain
conditions; for details, see: https://www.gnu.org/licenses/gpl-3.0.html
⬢[oliver<strong i="12">@toolbox</strong> src]$
この行も重要である可能性があります。
Installing to existing venv 'jrnl'
問題を見つけました。 私のツールボックスはFedora32にあり、デフォルトはpython2です。 Fedora34ツールボックスの使用に問題はありません。
最も参考になるコメント
問題を見つけました。 私のツールボックスはFedora32にあり、デフォルトはpython2です。 Fedora34ツールボックスの使用に問題はありません。