Git Product home page Git Product logo

Comments (5)

barneysowood avatar barneysowood commented on August 16, 2024

Hi,

Thanks for the problem report. The --out option relies on an installed copy of salt to provide the outputters. Can you confirm what version of salt you have installed? Could you please include the output from salt --versions-report?

Thanks,

Barney

from pepper.

ggiesen avatar ggiesen commented on August 16, 2024

Also encountering this issue. Might this be due to OneDir?

from pepper.

ggiesen avatar ggiesen commented on August 16, 2024

FWIW I used a virtualenv to work around this (and installed a separate copy of Salt in it), whatever mechanism pip uses to generate an executable doesn't appear to work in relenv. Example state file:

pkg_python3-virtualenv:
  pkg.installed:
    - name: python3-virtualenv

virtualenv_/opt/pepper:
  virtualenv.managed:
    - name: /opt/pepper
    - user: root
    - pip_upgrade: True
    - pip_pkgs:
        - salt-pepper
        - salt
    - require:
        - pkg_python3-virtualenv

file_symlink_/usr/local/bin/pepper:
  file.symlink:
    - name: /usr/local/bin/pepper
    - target: /opt/pepper/bin/pepper

from pepper.

ggiesen avatar ggiesen commented on August 16, 2024

According to @s0undt3ch, salt-pip should install the pepper script in /opt/saltstack/salt/extras-3.10/bin (it is not), so I've filed a bug in the salt repo: saltstack/salt#64662

from pepper.

Sxderp avatar Sxderp commented on August 16, 2024

I believe this issue has to do with OneDir. The --output flag is only used to reach into Salt's outputters / renderers. It's likely masked since most installs of Pepper already have Salt installed. As OneDir migrations occur and the Salt modules are no longer available globally the issue will come up more often.

It's a bit annoying that the current solutions are:

  1. Install Pepper in the Salt directory with salt-pip (Ew).
  2. Install the entirety of Salt back into a global (or virtualenv) location /just/ for the outputters (Ew).

from pepper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.