Ich verwende pip/pipx, um Python-Tools zu installieren. Wenn ich das auf dem Host mache, funktioniert das Tool nicht auf der Toolbox. Wenn ich auf der Toolbox installiere, funktioniert das Tool nicht auf dem Host:
$ 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
Folgen Sie dem gleichen Beispiel auf der pix-Website:
[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]$
Es funktionierte mit dem neuesten Toolbox-Build
Vielleicht ist es ein Problem mit jrnl? (werde ich auch damit testen)
Getestet mit jrnl und es hat funktioniert 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]$
Diese Zeile könnte auch wichtig sein:
Installing to existing venv 'jrnl'
Ich habe das Problem gefunden. Meine Toolbox ist auf Fedora 32, die standardmäßig auf Python2 eingestellt ist. Die Verwendung einer Fedora 34-Toolbox hat keine Probleme.
Hilfreichster Kommentar
Ich habe das Problem gefunden. Meine Toolbox ist auf Fedora 32, die standardmäßig auf Python2 eingestellt ist. Die Verwendung einer Fedora 34-Toolbox hat keine Probleme.