Code Monkey home page Code Monkey logo

Comments (4)

kddejong avatar kddejong commented on September 28, 2024

Starting in v1 junit is an optional dependency.

You can install it using pip install cfn-lint[junit]

from cfn-lint.

rbpltr avatar rbpltr commented on September 28, 2024

That produces error:

$ pip install cfn-lint[junit]
bash: pip: command not found

$ pip3 install cfn-lint[junit]
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try brew install
    xyz, where xyz is the package you are trying to
    install.
    
    If you wish to install a Python library that isn't in Homebrew,
    use a virtual environment:
    
    python3 -m venv path/to/venv
    source path/to/venv/bin/activate
    python3 -m pip install xyz
    
    If you wish to install a Python application that isn't in Homebrew,
    it may be easiest to use 'pipx install xyz', which will manage a
    virtual environment for you. You can install pipx with
    
    brew install pipx
    
    You may restore the old behavior of pip by passing
    the '--break-system-packages' flag to pip, or by adding
    'break-system-packages = true' to your pip.conf file. The latter
    will permanently disable this error.
    
    If you disable this error, we STRONGLY recommend that you additionally
    pass the '--user' flag to pip, or set 'user = true' in your pip.conf
    file. Failure to do this can result in a broken Homebrew installation.
    
    Read more about this behavior here: <https://peps.python.org/pep-0668/>

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

from cfn-lint.

rbpltr avatar rbpltr commented on September 28, 2024

I had to use the Python binary within the Homebrew package to install this:

/opt/homebrew/Cellar/cfn-lint/1.3.4/libexec/bin/python -m pip install cfn-lint[junit]

A more generic version for the benefit of other people:

"$(brew --cellar cfn-lint)/$(cfn-lint --version | cut -d' ' -f2)/libexec/bin/python" -m pip install cfn-lint[junit]

I'm doubtful that this will persist through Homebrew upgrading the cfn-lint package. Not ideal 😕

from cfn-lint.

rbpltr avatar rbpltr commented on September 28, 2024

Confirmed that the optional dependency is not persisted through upgrade of Homebrew cfn-lint package.

from cfn-lint.

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.