Giter Site home page Giter Site logo

Comments (15)

enzogain avatar enzogain commented on July 30, 2024 9

Hi,
Any informations about the release date of this buildpack for heroku-16 ? :D

from heroku-buildpack-cairo.

JordanAdams avatar JordanAdams commented on July 30, 2024 7

We've forked this to https://github.com/sky-uk/heroku-buildpack-cairo where we migrated the dependencies on S3 adding support for the following stacks:

  • Cedar 14
  • Heroku 16
  • Heroku 18

from heroku-buildpack-cairo.

frazras avatar frazras commented on July 30, 2024 3

@bsionixxtech just set your stack back to cedar-14, heroku-16 is now the default: Use this command
heroku stack:set cedar-14

from heroku-buildpack-cairo.

bsionixxtech avatar bsionixxtech commented on July 30, 2024 1

THanks for the info.
My app heroku Stack is cedar-14. Do you have any idea how it is searching for heroku-16?

from heroku-buildpack-cairo.

partlyhuman avatar partlyhuman commented on July 30, 2024 1

cedar-14 has been sunset and you can no longer select it.

$ heroku stack:set cedar-14
 !    This version of the API has been Sunset.
 !    Please see https://devcenter.heroku.com/changelog-items/1147 for more information.

from heroku-buildpack-cairo.

olivierlesnicki avatar olivierlesnicki commented on July 30, 2024 1

+1

from heroku-buildpack-cairo.

y-ich avatar y-ich commented on July 30, 2024 1

+1

from heroku-buildpack-cairo.

tigercosmos avatar tigercosmos commented on July 30, 2024 1

+1

from heroku-buildpack-cairo.

yanngv29 avatar yanngv29 commented on July 30, 2024 1

i'm using https://github.com/sky-uk/heroku-buildpack-cairo with Heroku-16.

When switching to Heroku 18, i got an error at runtime :

 catch exception !!! Error: libpng12.so.0: cannot open shared object file: No such file or directory
2018-09-18T14:49:07.645053+00:00 app[web.1]:     at Object.Module._extensions..node (module.js:682:18)
2018-09-18T14:49:07.645055+00:00 app[web.1]:     at Module.load (module.js:566:32)
2018-09-18T14:49:07.645057+00:00 app[web.1]:     at tryModuleLoad (module.js:506:12)
2018-09-18T14:49:07.645058+00:00 app[web.1]:     at Function.Module._load (module.js:498:3)
2018-09-18T14:49:07.645059+00:00 app[web.1]:     at Module.require (module.js:597:17)
2018-09-18T14:49:07.645061+00:00 app[web.1]:     at require (internal/module.js:11:18)
2018-09-18T14:49:07.645062+00:00 app[web.1]:     at Object.<anonymous> (/app/node_modules/canvas/lib/bindings.js:3:18)
2018-09-18T14:49:07.645064+00:00 app[web.1]:     at Module._compile (module.js:653:30)
2018-09-18T14:49:07.645065+00:00 app[web.1]:     at Object.Module._extensions..js (module.js:664:10)
2018-09-18T14:49:07.645066+00:00 app[web.1]:     at Module.load (module.js:566:32)
2018-09-18T14:49:07.645068+00:00 app[web.1]:     at tryModuleLoad (module.js:506:12)
2018-09-18T14:49:07.645069+00:00 app[web.1]:     at Function.Module._load (module.js:498:3)
2018-09-18T14:49:07.645070+00:00 app[web.1]:     at Module.require (module.js:597:17)
2018-09-18T14:49:07.645072+00:00 app[web.1]:     at require (internal/module.js:11:18)
2018-09-18T14:49:07.645074+00:00 app[web.1]:     at Object.<anonymous> (/app/node_modules/canvas/lib/canvas.js:13:14)
2018-09-18T14:49:07.645075+00:00 app[web.1]:     at Module._compile (module.js:653:30)

any idea ?

from heroku-buildpack-cairo.

mojodna avatar mojodna commented on July 30, 2024

This buildpack doesn't yet support the heroku-16 stack.

from heroku-buildpack-cairo.

xavriley avatar xavriley commented on July 30, 2024

The cedar-14 stack is still available and will be supported through to April 2019 https://devcenter.heroku.com/articles/stack

@partlyhuman That error you were receiving above was likely to be a result of using an older version of the heroku command line tools.

from heroku-buildpack-cairo.

marcsyp avatar marcsyp commented on July 30, 2024

+1 for heroku-16.

I actually have a project that depends heavily on text2png and I have been running on a local server with no problems. My heroku instance is borked, however. Tried downgrading to cedar-14, no luck. I've tried every piecemeal solution I can find going all the way back to comments + repos from 2011, with no luck. It seems the elspoono repo is gone, as well.

Does anyone have any intention of getting this back up and running? It's beyond my skill level, so I have to rely on the generous community. But given that I am trying to launch my product in 3 weeks, it looks like I may have to ditch heroku and look into hosting a Windows machine on Azure, unless anyone has any suggestions....

from heroku-buildpack-cairo.

wellcaffeinated avatar wellcaffeinated commented on July 30, 2024

+1

from heroku-buildpack-cairo.

OKNoah avatar OKNoah commented on July 30, 2024

I believe this also happens with herokuish

from heroku-buildpack-cairo.

benpdavison avatar benpdavison commented on July 30, 2024

Just thought I would leave a comment with how I resolved this for myself on heroku-18.

I was receiving errors such as this when upgrading the stack:


 Traceback (most recent call last):
   File "/app/.heroku/python/lib/python3.7/runpy.py", line 193, in _run_module_as_main
     "__main__", mod_spec)
   File "/app/.heroku/python/lib/python3.7/runpy.py", line 85, in _run_code
     exec(code, run_globals)
   File "/app/server.py", line 40, in <module>
     from render_handler import RenderHandler
   File "/app/handlers/render_handler.py", line 6, in <module>
     import cairosvg
   File "/app/.heroku/python/lib/python3.7/site-packages/cairosvg/__init__.py", line 42, in <module>
     from . import surface  # noqa isort:skip
   File "/app/.heroku/python/lib/python3.7/site-packages/cairosvg/surface.py", line 25, in <module>
     import cairocffi as cairo
   File "/app/.heroku/python/lib/python3.7/site-packages/cairocffi/__init__.py", line 50, in <module>
     ('libcairo.so', 'libcairo.2.dylib', 'libcairo-2.dll'))
   File "/app/.heroku/python/lib/python3.7/site-packages/cairocffi/__init__.py", line 45, in dlopen
     raise OSError(error_message)  # pragma: no cover
 OSError: no library called "libcairo-2" was found
 cannot load library 'libcairo.so.2': libpng12.so.0: cannot open shared object file: No such file or directory
 cannot load library 'libcairo.so': libcairo.so: cannot open shared object file: No such file or directory
 cannot load library 'libcairo.2.dylib': libcairo.2.dylib: cannot open shared object file: No such file or directory
 cannot load library 'libcairo-2.dll': libcairo-2.dll: cannot open shared object file: No such file or directory

After a lot of hours of researching I finally decided to try and install the dependencies with apk as heroku-18 is based upon Ubuntu 18.04.

So what I did was:
Delete this buildpack from my buildpacks
Add the heroku-buildpack-apt
Add the Aptfile to the root directory of the code with the following packages

libc6
libcairo2
python-cairo

Redeploy

From then on everything worked

from heroku-buildpack-cairo.

Related Issues (15)

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.