Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip-installed python tools don't work inside the toolbox #783

Closed
hferreiro opened this issue Jun 1, 2021 · 4 comments
Closed

pip-installed python tools don't work inside the toolbox #783

hferreiro opened this issue Jun 1, 2021 · 4 comments
Labels
1. Bug Something isn't working 4. Not Toolbox Issue is not caused by Toolbox

Comments

@hferreiro
Copy link

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
@hferreiro hferreiro added the 1. Bug Something isn't working label Jun 1, 2021
@olivergs
Copy link
Collaborator

olivergs commented Jun 16, 2021

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)

@olivergs
Copy link
Collaborator

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]$ 

@HarryMichal
Copy link
Member

This line could also be important:

Installing to existing venv 'jrnl'

@hferreiro
Copy link
Author

I found the issue. My toolbox is on Fedora 32, which defaults to python2. Using a Fedora 34 toolbox has no issues.

@HarryMichal HarryMichal added the 4. Not Toolbox Issue is not caused by Toolbox label Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. Bug Something isn't working 4. Not Toolbox Issue is not caused by Toolbox
Projects
None yet
Development

No branches or pull requests

3 participants