Coder Social home page Coder Social logo

Comments (9)

HeroProtagonist avatar HeroProtagonist commented on May 17, 2024 2

Did you install the perquisite?

$ sudo apt-get install graphicsmagick # Ubuntu
$ brew install graphicsmagick         # Mac OS X

from image-to-ascii.

IonicaBizau avatar IonicaBizau commented on May 17, 2024

Is it happening for all the images or for a specific image only? If it's the later, can you please upload the image?

from image-to-ascii.

m59peacemaker avatar m59peacemaker commented on May 17, 2024

Shouldn't the lwip fallback prevent this?

from image-to-ascii.

IonicaBizau avatar IonicaBizau commented on May 17, 2024

@m59peacemaker It should the lwip fallback should prevent the spawn error (ENOENT command not found ..., or so). It's very hard to tell why does this problem appear at all, because we have no example when it fails like that.

The OP seems to have GraphicsMagick already installed.

Did it happen to you as well?

from image-to-ascii.

m59peacemaker avatar m59peacemaker commented on May 17, 2024

I did originally get the same error as the OP. I'm not sure whether I had graphicsmagick installed, but I thought I didn't and so went ahead installed it without checking first (oops). The same error remained. I just purged graphicsmagick and reinstalled image-to-ascii globally, now the error is simply error spawn gm ENOENT. I was just checking out the package. I don't have a stake in getting it working, but I hope my notes help.

from image-to-ascii.

IonicaBizau avatar IonicaBizau commented on May 17, 2024

@m59peacemaker Thanks for that! I will look into that error when getting a little bit of time. Sounds like lwip is not used...

from image-to-ascii.

IonicaBizau avatar IonicaBizau commented on May 17, 2024

I reproduced this error on my machine. I'm on it.

from image-to-ascii.

IonicaBizau avatar IonicaBizau commented on May 17, 2024

@m59peacemaker @abdennour For my information—did you receive any errors during the installation?

You can double-check by running rm -rf node_mdoules && npm install

from image-to-ascii.

IonicaBizau avatar IonicaBizau commented on May 17, 2024

The installation should fail if lwip fails to be installed.

Addressed in IonicaBizau/lwip2#16.

The reason for the error was: in case gm is not available, lwip is installed (and compiled). In case the required tools for compilation are missing (e.g. XCode or so), lwip installation was failing silently. Now that error should block the image-to-ascii installation. 💥

from image-to-ascii.

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.