I use pip/pipx to install python tools. If I do that on the host, the tool doesn't work on the toolbox. If I install on the toolbox, the tool doesn't work on the 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
Following the same example on pipx website:
[oliver@t480s src]$ pipx install cowsay
installed package cowsay 4.0, Python 3.9.5
These apps are now globally available
- cowsay
done! ✨ 🌟 ✨
[oliver@t480s src]$ cowsay Yeah
____
| Yeah |
====
\
\
^__^
(oo)\_______
(__)\ )\/\
||----w |
|| ||
[oliver@t480s src]$ ./toolbox enter f34
⬢[oliver@toolbox src]$ cowsay moo
___
| moo |
===
\
\
^__^
(oo)\_______
(__)\ )\/\
||----w |
|| ||
⬢[oliver@toolbox src]$
It worked with latest toolbox build
Maybe it is a problem with jrnl? (I will test with it also)
Tested with jrnl and it worked OOB
[oliver@t480s src]$ pipx install jrnl
installed package jrnl 2.8.1, Python 3.9.5
These apps are now globally available
- jrnl
done! ✨ 🌟 ✨
[oliver@t480s src]$ ./toolbox enter f34
⬢[oliver@toolbox src]$
logout
[oliver@t480s 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@t480s src]$ ./toolbox enter f34
⬢[oliver@toolbox 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@toolbox src]$
This line could also be important:
Installing to existing venv 'jrnl'
I found the issue. My toolbox is on Fedora 32, which defaults to python2. Using a Fedora 34 toolbox has no issues.
Most helpful comment
I found the issue. My toolbox is on Fedora 32, which defaults to python2. Using a Fedora 34 toolbox has no issues.