Coder Social home page Coder Social logo

Lack of dependencies about badge HOT 9 CLOSED

hazat avatar hazat commented on August 16, 2024 1
Lack of dependencies

from badge.

Comments (9)

HazAT avatar HazAT commented on August 16, 2024

possible duplicate #23

from badge.

HazAT avatar HazAT commented on August 16, 2024

Please update badge to 0.4.1

from badge.

danielpetroianu avatar danielpetroianu commented on August 16, 2024

Issue still reproduces.
I've uninstalled badge and it's dependencies, and reinstalled badge v 0.4.1, and the same error occurs.
I'm I the only one?

env:
os x el capitan
ruby 2.2.1

from badge.

HazAT avatar HazAT commented on August 16, 2024

Can you check you environment for the PATH var

it should contain PATH=$PATH:/usr/local/bin otherwise it will not find imagemagick

from badge.

danielpetroianu avatar danielpetroianu commented on August 16, 2024

/usr/local/bin is in $PATH.
Also uninstalled badge and re-installed it with sudo. Same result as above.
Tried on a fresh environment (os x el capitan, ruby 2.0.0) some deal.

/Library/Ruby/Gems/2.0.0/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:204:in `rescue in validate!': [!] ImageMagick/GraphicsMagick is not installed (MiniMagick::Invalid)
    from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:202:in `validate!'
    from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:113:in `block in create'
    from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:112:in `tap'
    from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:112:in `create'
    from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:34:in `read'
    from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:90:in `block in open'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:36:in `open'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:36:in `open'
    from /Library/Ruby/Gems/2.0.0/gems/mini_magick-4.5.1/lib/mini_magick/image.rb:89:in `open'
    from /Library/Ruby/Gems/2.0.0/gems/badge-0.4.1/lib/badge/runner.rb:128:in `add_badge'
    from /Library/Ruby/Gems/2.0.0/gems/badge-0.4.1/lib/badge/runner.rb:59:in `block in run'
    from /Library/Ruby/Gems/2.0.0/gems/badge-0.4.1/lib/badge/runner.rb:52:in `each'
    from /Library/Ruby/Gems/2.0.0/gems/badge-0.4.1/lib/badge/runner.rb:52:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/badge-0.4.1/bin/badge:53:in `block (2 levels) in run'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.43.1/lib/fastlane_core/ui/fastlane_runner.rb:26:in `run!'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
    from /Library/Ruby/Gems/2.0.0/gems/badge-0.4.1/bin/badge:57:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/badge-0.4.1/bin/badge:63:in `<top (required)>'
    from /usr/local/bin/badge:23:in `load'
    from /usr/local/bin/badge:23:in `<main>'

from badge.

danielpetroianu avatar danielpetroianu commented on August 16, 2024

As the error states, ImageMagick/GraphicsMagick is not installed on my machines.
This is not a bug for badge, but it does not state in the documentation steps to install this dependencies.

minimagick states ImageMagick or GraphicsMagick command-line tool has to be installed.

Maybe the readme should state this. I installed ImageMagick with homebrew brew install imagemagick.
If this is acceptable, I can make a pull request with the update.

from badge.

HazAT avatar HazAT commented on August 16, 2024

OK ... so now it works for you?

from badge.

danielpetroianu avatar danielpetroianu commented on August 16, 2024

Yes. @Gimungagap can you try as well?
Are there any quarks with this steps:

  1. brew install imagemagick
  2. gem install badge [if not already installed]
  3. run badge

from badge.

Gimungagap avatar Gimungagap commented on August 16, 2024

@danielpetroianu yup, that fixes the issue. Thanks a lot.
I also tried MiniMagick installation via gems and that didn't solve the problem but brew installation did the trick.

from badge.

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.